mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
wl12xx: don't remove key if hlid was already deleted
When wep key was removed after disconnection, sta_hlid was invalid, and it resulted in a fw crash. Signed-off-by: Eliad Peller <[email protected]> Signed-off-by: Luciano Coelho <[email protected]>
This commit is contained in:
parent
7f97b487c4
commit
010d3d30a2
1 changed files with 5 additions and 0 deletions
|
|
@ -2625,6 +2625,11 @@ static int wl1271_set_key(struct wl1271 *wl, u16 action, u8 id, u8 key_type,
|
|||
if (action == KEY_REMOVE && !is_broadcast_ether_addr(addr))
|
||||
return 0;
|
||||
|
||||
/* don't remove key if hlid was already deleted */
|
||||
if (action == KEY_REMOVE &&
|
||||
wl->sta_hlid == WL12XX_INVALID_LINK_ID)
|
||||
return 0;
|
||||
|
||||
ret = wl1271_cmd_set_sta_key(wl, action,
|
||||
id, key_type, key_size,
|
||||
key, addr, tx_seq_32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue