diff options
| author | Amitkumar Karwar <akarwar@marvell.com> | 2012-08-08 22:02:56 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-08-10 15:27:04 -0400 |
| commit | 9c7ff737b6a783a6641dca71fab4f94aaab4bb2a (patch) | |
| tree | c3c95c1f2b0f8dfded972a98c2315397254f405a | |
| parent | 641c869d40c7ec6a34930843f41e95bf1f53f29f (diff) | |
mwifiex: notify cfg80211 about MIC failures
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>
| -rw-r--r-- | drivers/net/wireless/mwifiex/sta_event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_event.c b/drivers/net/wireless/mwifiex/sta_event.c index 4758d3064887..dff51d55271c 100644 --- a/drivers/net/wireless/mwifiex/sta_event.c +++ b/drivers/net/wireless/mwifiex/sta_event.c | |||
| @@ -278,10 +278,16 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv) | |||
| 278 | 278 | ||
| 279 | case EVENT_MIC_ERR_UNICAST: | 279 | case EVENT_MIC_ERR_UNICAST: |
| 280 | dev_dbg(adapter->dev, "event: UNICAST MIC ERROR\n"); | 280 | dev_dbg(adapter->dev, "event: UNICAST MIC ERROR\n"); |
| 281 | cfg80211_michael_mic_failure(priv->netdev, priv->cfg_bssid, | ||
| 282 | NL80211_KEYTYPE_PAIRWISE, | ||
| 283 | -1, NULL, GFP_KERNEL); | ||
| 281 | break; | 284 | break; |
| 282 | 285 | ||
| 283 | case EVENT_MIC_ERR_MULTICAST: | 286 | case EVENT_MIC_ERR_MULTICAST: |
| 284 | dev_dbg(adapter->dev, "event: MULTICAST MIC ERROR\n"); | 287 | dev_dbg(adapter->dev, "event: MULTICAST MIC ERROR\n"); |
| 288 | cfg80211_michael_mic_failure(priv->netdev, priv->cfg_bssid, | ||
| 289 | NL80211_KEYTYPE_GROUP, | ||
| 290 | -1, NULL, GFP_KERNEL); | ||
| 285 | break; | 291 | break; |
| 286 | case EVENT_MIB_CHANGED: | 292 | case EVENT_MIB_CHANGED: |
| 287 | case EVENT_INIT_DONE: | 293 | case EVENT_INIT_DONE: |
