Skip to content

Commit

Permalink
wl1271: Fix warning when disconnecting and ad-hoc network
Browse files Browse the repository at this point in the history
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Jul 8, 2010
1 parent 8d2ef7b commit 9a547bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,8 @@ 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) */
ieee80211_disable_dyn_ps(wl->vif, false);
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)) {
mutex_unlock(&wl->mutex);
Expand Down

0 comments on commit 9a547bf

Please sign in to comment.