aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-05-12 06:33:12 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-06-06 02:14:23 -0400
commit3a0b9aad0a8166e9fb23d420fdc08ee2820d4c39 (patch)
treece483eae4ab981f5b24645b791c71a0f94d07643 /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent7684c4083114e0f0cc02f3a7cbef27b1e29381cd (diff)
iwlwifi: use virtual interface address for scan
For probe request frames sent during scan, we should use the virtual interface's mac address that the scan was initiated on to avoid issues when the wrong address is used. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 5976166cb92d..35471cfc7de0 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2967,14 +2967,16 @@ void iwl3945_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
2967 scan->tx_cmd.len = cpu_to_le16( 2967 scan->tx_cmd.len = cpu_to_le16(
2968 iwl_fill_probe_req(priv, 2968 iwl_fill_probe_req(priv,
2969 (struct ieee80211_mgmt *)scan->data, 2969 (struct ieee80211_mgmt *)scan->data,
2970 vif->addr,
2970 priv->scan_request->ie, 2971 priv->scan_request->ie,
2971 priv->scan_request->ie_len, 2972 priv->scan_request->ie_len,
2972 IWL_MAX_SCAN_SIZE - sizeof(*scan))); 2973 IWL_MAX_SCAN_SIZE - sizeof(*scan)));
2973 } else { 2974 } else {
2975 /* use bcast addr, will not be transmitted but must be valid */
2974 scan->tx_cmd.len = cpu_to_le16( 2976 scan->tx_cmd.len = cpu_to_le16(
2975 iwl_fill_probe_req(priv, 2977 iwl_fill_probe_req(priv,
2976 (struct ieee80211_mgmt *)scan->data, 2978 (struct ieee80211_mgmt *)scan->data,
2977 NULL, 0, 2979 iwl_bcast_addr, NULL, 0,
2978 IWL_MAX_SCAN_SIZE - sizeof(*scan))); 2980 IWL_MAX_SCAN_SIZE - sizeof(*scan)));
2979 } 2981 }
2980 /* select Rx antennas */ 2982 /* select Rx antennas */