Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf4e5f1a authored by Eliad Peller's avatar Eliad Peller Committed by John W. Linville
Browse files

wlcore: don't handle unsetting of default wep key



mac80211 unsets the default wep key on disassoc.
The fw doesn't support this notification, so simply
ignore it.

The actual flow actually triggers fw recovery in some
cases, as mac80211 unsets the default key only after
disassoc, when wlvif->sta.hlid, resulting in invalid
hlid being passed to the fw.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bc566f92
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -3472,6 +3472,10 @@ static void wl1271_op_set_default_key_idx(struct ieee80211_hw *hw,
	wl1271_debug(DEBUG_MAC80211, "mac80211 set default key idx %d",
	wl1271_debug(DEBUG_MAC80211, "mac80211 set default key idx %d",
		     key_idx);
		     key_idx);


	/* we don't handle unsetting of default key */
	if (key_idx == -1)
		return;

	mutex_lock(&wl->mutex);
	mutex_lock(&wl->mutex);


	if (unlikely(wl->state != WLCORE_STATE_ON)) {
	if (unlikely(wl->state != WLCORE_STATE_ON)) {