iwlwifi: mvm: fix OOC priority in scans
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 13 Apr 2018 10:17:16 +0000 (13:17 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Apr 2018 07:57:16 +0000 (10:57 +0300)
The code that sets the correct out-of-channel priority depending on
the scan type was accidentally removed during a rebase.  Add it back.

Fixes: c1a7515393e4 ("iwlwifi: mvm: add adaptive dwell support")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c

index 8c5f4f96d6d42386c0ae0714bb079a203a3c1e31..4b3753d78d03dfa3983e3e2991e8fa4106fcbeea 100644 (file)
@@ -1297,6 +1297,11 @@ static void iwl_mvm_scan_umac_dwell(struct iwl_mvm *mvm,
                                cpu_to_le32(timing->suspend_time);
                }
        }
+
+       if (iwl_mvm_is_regular_scan(params))
+               cmd->ooc_priority = cpu_to_le32(IWL_SCAN_PRIORITY_EXT_6);
+       else
+               cmd->ooc_priority = cpu_to_le32(IWL_SCAN_PRIORITY_EXT_2);
 }
 
 static void