mwifiex: add missing skb_push() in mwifiex_check_uap_capabilties
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 27 Jul 2015 12:02:27 +0000 (05:02 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Aug 2015 07:19:23 +0000 (10:19 +0300)
For PCIe/USB chipsets, preallocated skb buffers are reused for
event handling. mwifiex_check_uap_capabilties() performs
skb_pull(). This patch adds missing skb_push() to restore skb's
data pointer/length.

This bug was introduced by commit debfc6008169 ("mwifiex: update
AP WMM settings from BSS_START event")

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/uap_event.c

index 492a8b3c636e2bcaac9b0fb81620bbf1d1327cd2..46c972a650a43c2918bb7703c98eeb877ccb79e6 100644 (file)
@@ -41,6 +41,8 @@ static int mwifiex_check_uap_capabilties(struct mwifiex_private *priv,
        mwifiex_dbg_dump(priv->adapter, EVT_D, "uap capabilties:",
                         event->data, event->len);
 
+       skb_push(event, MWIFIEX_BSS_START_EVT_FIX_SIZE);
+
        while ((evt_len >= sizeof(tlv_hdr->header))) {
                tlv_hdr = (struct mwifiex_ie_types_data *)curr;
                tlv_len = le16_to_cpu(tlv_hdr->header.len);