mwifiex: fix bugs in event handling code
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 21 Jun 2012 03:21:12 +0000 (20:21 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Jun 2012 17:59:50 +0000 (13:59 -0400)
commite80c81dc1416e326482c601af3a19d0f9989638e
treef7e73db805d9ab285f03206dbbf17c1b2be581ab
parentf03ba7e9a24e5e9efaad56bd1713b994ea556b16
mwifiex: fix bugs in event handling code

This patch ensures uniformity in event skb sent by interface code
(USB/PCIe/SDIO) which automatically fixes following bugs.

1) For USB interface, same buffer is reused for receiving cmd and
events from firmware. While handling events, we perform
skb_pull(skb, 4) to remove event header. Corresponding skb_push()
call is missing while submitting the buffer.
2) For PCIe interface, event skb is passed with event header.
Recently added uAP events EVENT_UAP_STA_ASSOC, EVENT_UAP_STA_DEAUTH
will not work for PCIe, as they assume event skb points to event body.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sdio.c
drivers/net/wireless/mwifiex/sta_event.c
drivers/net/wireless/mwifiex/usb.c