diff options
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index c08df334b9d5..b0607f6e4e4e 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -2557,8 +2557,9 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed) | |||
2557 | * frames, such as the deauth. To make sure those frames reach the air, | 2557 | * frames, such as the deauth. To make sure those frames reach the air, |
2558 | * wait here until the TX queue is fully flushed. | 2558 | * wait here until the TX queue is fully flushed. |
2559 | */ | 2559 | */ |
2560 | if ((changed & IEEE80211_CONF_CHANGE_IDLE) && | 2560 | if ((changed & IEEE80211_CONF_CHANGE_CHANNEL) || |
2561 | (conf->flags & IEEE80211_CONF_IDLE)) | 2561 | ((changed & IEEE80211_CONF_CHANGE_IDLE) && |
2562 | (conf->flags & IEEE80211_CONF_IDLE))) | ||
2562 | wl1271_tx_flush(wl); | 2563 | wl1271_tx_flush(wl); |
2563 | 2564 | ||
2564 | mutex_lock(&wl->mutex); | 2565 | mutex_lock(&wl->mutex); |