diff options
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index c05be03907e4..51d519f93d79 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -1859,7 +1859,6 @@ static void wl1271_op_stop(struct ieee80211_hw *hw) | |||
1859 | wl->tx_results_count = 0; | 1859 | wl->tx_results_count = 0; |
1860 | wl->tx_packets_count = 0; | 1860 | wl->tx_packets_count = 0; |
1861 | wl->time_offset = 0; | 1861 | wl->time_offset = 0; |
1862 | wl->vif = NULL; | ||
1863 | wl->tx_spare_blocks = TX_HW_BLOCK_SPARE_DEFAULT; | 1862 | wl->tx_spare_blocks = TX_HW_BLOCK_SPARE_DEFAULT; |
1864 | wl->ap_fw_ps_map = 0; | 1863 | wl->ap_fw_ps_map = 0; |
1865 | wl->ap_ps_map = 0; | 1864 | wl->ap_ps_map = 0; |
@@ -2211,6 +2210,8 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl, | |||
2211 | if (!test_and_clear_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) | 2210 | if (!test_and_clear_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) |
2212 | return; | 2211 | return; |
2213 | 2212 | ||
2213 | wl->vif = NULL; | ||
2214 | |||
2214 | /* because of hardware recovery, we may get here twice */ | 2215 | /* because of hardware recovery, we may get here twice */ |
2215 | if (wl->state != WL1271_STATE_ON) | 2216 | if (wl->state != WL1271_STATE_ON) |
2216 | return; | 2217 | return; |