diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 30194c0f36a9..8e55cf8d509d 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -948,9 +948,7 @@ static void wl1271_op_remove_interface(struct ieee80211_hw *hw, | |||
948 | ieee80211_enable_dyn_ps(wl->vif); | 948 | ieee80211_enable_dyn_ps(wl->vif); |
949 | 949 | ||
950 | if (wl->scan.state != WL1271_SCAN_STATE_IDLE) { | 950 | if (wl->scan.state != WL1271_SCAN_STATE_IDLE) { |
951 | mutex_unlock(&wl->mutex); | ||
952 | ieee80211_scan_completed(wl->hw, true); | 951 | ieee80211_scan_completed(wl->hw, true); |
953 | mutex_lock(&wl->mutex); | ||
954 | wl->scan.state = WL1271_SCAN_STATE_IDLE; | 952 | wl->scan.state = WL1271_SCAN_STATE_IDLE; |
955 | kfree(wl->scan.scanned_ch); | 953 | kfree(wl->scan.scanned_ch); |
956 | wl->scan.scanned_ch = NULL; | 954 | wl->scan.scanned_ch = NULL; |