aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2013-02-11 01:50:45 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-18 14:18:20 -0500
commitd91b06d214de610807456839d543c1c2e622e9b5 (patch)
tree2f0ed900b0cf5290286e43ec71d105b833302bbd /drivers
parente372282241316209b44ee6a7c40b9b465744fc0d (diff)
iwlwifi: mvm: Set the scan type according to the vif type
The FW can differentiate between scans, according to the interface type on which the scan was issues. Supply the interfaces type information to the FW. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/scan.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c b/drivers/net/wireless/iwlwifi/mvm/scan.c
index 406c53ad0a49..9b21b92aa8d1 100644
--- a/drivers/net/wireless/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/iwlwifi/mvm/scan.c
@@ -292,7 +292,12 @@ int iwl_mvm_scan_request(struct iwl_mvm *mvm,
292 cmd->rxon_flags = iwl_mvm_scan_rxon_flags(req); 292 cmd->rxon_flags = iwl_mvm_scan_rxon_flags(req);
293 cmd->filter_flags = cpu_to_le32(MAC_FILTER_ACCEPT_GRP | 293 cmd->filter_flags = cpu_to_le32(MAC_FILTER_ACCEPT_GRP |
294 MAC_FILTER_IN_BEACON); 294 MAC_FILTER_IN_BEACON);
295 cmd->type = SCAN_TYPE_FORCED; 295
296 if (vif->type == NL80211_IFTYPE_P2P_DEVICE)
297 cmd->type = cpu_to_le32(SCAN_TYPE_DISCOVERY_FORCED);
298 else
299 cmd->type = cpu_to_le32(SCAN_TYPE_FORCED);
300
296 cmd->repeats = cpu_to_le32(1); 301 cmd->repeats = cpu_to_le32(1);
297 302
298 /* 303 /*