aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index fcfb410aca90..baaf48616cc7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2770,15 +2770,6 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw,
2770 2770
2771 mutex_lock(&priv->shrd->mutex); 2771 mutex_lock(&priv->shrd->mutex);
2772 2772
2773 /*
2774 * TODO: Remove this hack! Firmware needs to be updated
2775 * to allow longer off-channel periods in scanning for
2776 * this use case, based on a flag (and we'll need an API
2777 * flag in the firmware when it has that).
2778 */
2779 if (iwl_is_associated(priv, IWL_RXON_CTX_BSS) && duration > 80)
2780 duration = 80;
2781
2782 if (test_bit(STATUS_SCAN_HW, &priv->shrd->status)) { 2773 if (test_bit(STATUS_SCAN_HW, &priv->shrd->status)) {
2783 err = -EBUSY; 2774 err = -EBUSY;
2784 goto out; 2775 goto out;
@@ -2787,6 +2778,7 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw,
2787 priv->hw_roc_channel = channel; 2778 priv->hw_roc_channel = channel;
2788 priv->hw_roc_chantype = channel_type; 2779 priv->hw_roc_chantype = channel_type;
2789 priv->hw_roc_duration = duration; 2780 priv->hw_roc_duration = duration;
2781 priv->hw_roc_start_notified = false;
2790 cancel_delayed_work(&priv->hw_roc_disable_work); 2782 cancel_delayed_work(&priv->hw_roc_disable_work);
2791 2783
2792 if (!ctx->is_active) { 2784 if (!ctx->is_active) {