69621c59fea5fca1aeccabc7bee4bb76d5739bfe
[openwrt.git] / package / kernel / mac80211 / patches / 913-wlcore-don-t-handle-unsetting-of-default-wep-key.patch
1 mac80211 unsets the default wep key on disassoc.
2 The fw doesn't support this notification, so simply
3 ignore it.
4
5 The actual flow actually triggers fw recovery in some
6 cases, as mac80211 unsets the default key only after
7 disassoc, when wlvif->sta.hlid, resulting in invalid
8 hlid being passed to the fw.
9
10 Signed-off-by: Eliad Peller <eliad@wizery.com>
11
12 ---
13 drivers/net/wireless/ti/wlcore/main.c | 4 ++++
14  1 file changed, 4 insertions(+)
15
16 --- a/drivers/net/wireless/ti/wlcore/main.c
17 +++ b/drivers/net/wireless/ti/wlcore/main.c
18 @@ -3505,6 +3505,10 @@ static void wl1271_op_set_default_key_id
19         wl1271_debug(DEBUG_MAC80211, "mac80211 set default key idx %d",
20                      key_idx);
21  
22 +       /* we don't handle unsetting of default key */
23 +       if (key_idx == -1)
24 +               return;
25 +
26         mutex_lock(&wl->mutex);
27  
28         if (unlikely(wl->state != WLCORE_STATE_ON)) {