diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-05-12 06:33:12 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-06-06 02:14:23 -0400 |
commit | 3a0b9aad0a8166e9fb23d420fdc08ee2820d4c39 (patch) | |
tree | ce483eae4ab981f5b24645b791c71a0f94d07643 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |
parent | 7684c4083114e0f0cc02f3a7cbef27b1e29381cd (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/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index 57c122d4d806..42e62191f9f6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -1462,13 +1462,15 @@ void iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
1462 | if (!priv->is_internal_short_scan) { | 1462 | if (!priv->is_internal_short_scan) { |
1463 | cmd_len = iwl_fill_probe_req(priv, | 1463 | cmd_len = iwl_fill_probe_req(priv, |
1464 | (struct ieee80211_mgmt *)scan->data, | 1464 | (struct ieee80211_mgmt *)scan->data, |
1465 | vif->addr, | ||
1465 | priv->scan_request->ie, | 1466 | priv->scan_request->ie, |
1466 | priv->scan_request->ie_len, | 1467 | priv->scan_request->ie_len, |
1467 | IWL_MAX_SCAN_SIZE - sizeof(*scan)); | 1468 | IWL_MAX_SCAN_SIZE - sizeof(*scan)); |
1468 | } else { | 1469 | } else { |
1470 | /* use bcast addr, will not be transmitted but must be valid */ | ||
1469 | cmd_len = iwl_fill_probe_req(priv, | 1471 | cmd_len = iwl_fill_probe_req(priv, |
1470 | (struct ieee80211_mgmt *)scan->data, | 1472 | (struct ieee80211_mgmt *)scan->data, |
1471 | NULL, 0, | 1473 | iwl_bcast_addr, NULL, 0, |
1472 | IWL_MAX_SCAN_SIZE - sizeof(*scan)); | 1474 | IWL_MAX_SCAN_SIZE - sizeof(*scan)); |
1473 | 1475 | ||
1474 | } | 1476 | } |