mwifiex: handle extended scan event for AP interface
authorAvinash Patil <patila@marvell.com>
Wed, 19 Mar 2014 05:19:16 +0000 (22:19 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Mar 2014 19:15:47 +0000 (15:15 -0400)
Stations associated to mwifiex AP would not be able to ping AP
after scan was issued on AP interface. This happened because
there was no handling of extended scan event in AP. This patch
adds this handling and fixes ping failure issue.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/uap_event.c

index ae50e916d8f2da09f0f57f446dae80d1cbcf4982..92e77a398ecfcaa0f7bf3493864f4823eb30394d 100644 (file)
@@ -166,6 +166,12 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv)
                        mwifiex_11n_ba_stream_timeout(priv, ba_timeout);
                }
                break;
+       case EVENT_EXT_SCAN_REPORT:
+               dev_dbg(adapter->dev, "event: EXT_SCAN Report\n");
+               if (adapter->ext_scan)
+                       return mwifiex_handle_event_ext_scan_report(priv,
+                                               adapter->event_skb->data);
+               break;
        default:
                dev_dbg(adapter->dev, "event: unknown event id: %#x\n",
                        eventcause);