]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mwifiex: notify cfg80211 about MIC failures
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 9 Aug 2012 02:02:56 +0000 (19:02 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:27:04 +0000 (15:27 -0400)
Call cfg80211_michael_mic_failure() handler when there is a MIC error
event from firmware.

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/sta_event.c

index 4758d3064887b6e0620a560b8b340ceb8c2a0be3..dff51d55271c20267097245b079235f5882a1522 100644 (file)
@@ -278,10 +278,16 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
 
        case EVENT_MIC_ERR_UNICAST:
                dev_dbg(adapter->dev, "event: UNICAST MIC ERROR\n");
+               cfg80211_michael_mic_failure(priv->netdev, priv->cfg_bssid,
+                                            NL80211_KEYTYPE_PAIRWISE,
+                                            -1, NULL, GFP_KERNEL);
                break;
 
        case EVENT_MIC_ERR_MULTICAST:
                dev_dbg(adapter->dev, "event: MULTICAST MIC ERROR\n");
+               cfg80211_michael_mic_failure(priv->netdev, priv->cfg_bssid,
+                                            NL80211_KEYTYPE_GROUP,
+                                            -1, NULL, GFP_KERNEL);
                break;
        case EVENT_MIB_CHANGED:
        case EVENT_INIT_DONE: