aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/cmd.c')
-rw-r--r--drivers/net/wireless/wl12xx/cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/cmd.c b/drivers/net/wireless/wl12xx/cmd.c
index e0d217979485..25990bd38be6 100644
--- a/drivers/net/wireless/wl12xx/cmd.c
+++ b/drivers/net/wireless/wl12xx/cmd.c
@@ -1835,6 +1835,9 @@ int wl12xx_stop_dev(struct wl1271 *wl, struct wl12xx_vif *wlvif)
1835 wlvif->bss_type == BSS_TYPE_IBSS))) 1835 wlvif->bss_type == BSS_TYPE_IBSS)))
1836 return -EINVAL; 1836 return -EINVAL;
1837 1837
1838 /* flush all pending packets */
1839 wl1271_tx_work_locked(wl);
1840
1838 if (test_bit(wlvif->dev_role_id, wl->roc_map)) { 1841 if (test_bit(wlvif->dev_role_id, wl->roc_map)) {
1839 ret = wl12xx_croc(wl, wlvif->dev_role_id); 1842 ret = wl12xx_croc(wl, wlvif->dev_role_id);
1840 if (ret < 0) 1843 if (ret < 0)