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

Commit 9a547bf9 authored by Juuso Oikarinen's avatar Juuso Oikarinen Committed by John W. Linville
Browse files

wl1271: Fix warning when disconnecting and ad-hoc network

parent 8d2ef7bd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -938,6 +938,7 @@ static void wl1271_op_remove_interface(struct ieee80211_hw *hw,
	WARN_ON(wl->state != WL1271_STATE_ON);

	/* enable dyn ps just in case (if left on due to fw crash etc) */
	if (wl->bss_type == BSS_TYPE_STA_BSS)
		ieee80211_disable_dyn_ps(wl->vif, false);

	if (test_and_clear_bit(WL1271_FLAG_SCANNING, &wl->flags)) {