aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/scan.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c b/drivers/net/wireless/iwlwifi/mvm/scan.c
index acdff6b67e04..9a7ab8495300 100644
--- a/drivers/net/wireless/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/iwlwifi/mvm/scan.c
@@ -301,10 +301,12 @@ int iwl_mvm_scan_request(struct iwl_mvm *mvm,
301 */ 301 */
302 if (req->n_ssids > 0) { 302 if (req->n_ssids > 0) {
303 cmd->passive2active = cpu_to_le16(1); 303 cmd->passive2active = cpu_to_le16(1);
304 cmd->scan_flags |= SCAN_FLAGS_PASSIVE2ACTIVE;
304 ssid = req->ssids[0].ssid; 305 ssid = req->ssids[0].ssid;
305 ssid_len = req->ssids[0].ssid_len; 306 ssid_len = req->ssids[0].ssid_len;
306 } else { 307 } else {
307 cmd->passive2active = 0; 308 cmd->passive2active = 0;
309 cmd->scan_flags &= ~SCAN_FLAGS_PASSIVE2ACTIVE;
308 } 310 }
309 311
310 iwl_mvm_scan_fill_ssids(cmd, req); 312 iwl_mvm_scan_fill_ssids(cmd, req);