iwlwifi: mvm: Allow schedule scan while connected
authorAlexander Bondar <alexander.bondar@intel.com>
Wed, 30 Jul 2014 14:40:28 +0000 (17:40 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 16 Sep 2014 09:57:51 +0000 (12:57 +0300)
In the past when schedule scan was started while connected on one of
interfaces FW crashes were observed. In the newest FW this issue is
solved, so remove limitaion after examining corresponding TLV flag.

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c

index bd12f8e6840c9e3d7aa48cd959bf85db8e1a43af..412a8a05d481c97bcde960b03f4529f5d8b374ca 100644 (file)
@@ -2152,7 +2152,13 @@ static int iwl_mvm_mac_sched_scan_start(struct ieee80211_hw *hw,
 
        mutex_lock(&mvm->mutex);
 
-       if (!iwl_mvm_is_idle(mvm)) {
+       /* Newest FW fixes sched scan while connected on another interface */
+       if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_API_LMAC_SCAN) {
+               if (!vif->bss_conf.idle) {
+                       ret = -EBUSY;
+                       goto out;
+               }
+       } else if (!iwl_mvm_is_idle(mvm)) {
                ret = -EBUSY;
                goto out;
        }