aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-07-30 06:26:34 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-08-20 08:13:45 -0400
commitfe94fe05e9fb7c1bea482d1b0fd09029a711cce2 (patch)
tree3ce8972df96c159116ecf384af549f272dc66a48 /net/mac80211/mlme.c
parentc0af07340aae5db9f976bfe71e2e9bcab3169409 (diff)
mac80211: pass channel to ieee80211_send_probe_req
In multi-channel scenarios, the channel that we will transmit a probe request on isn't always the current channel (which will be NULL anyway) but will instead be the channel that the AP is on. Pass the channel to the ieee80211_send_probe_req() function so it can be used in the different scenarios. The scan code continues to pass the current channel, of course. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ddb2db5c5b05..b65b2149b23b 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1577,7 +1577,8 @@ static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata)
1577 ssid_len = ssid[1]; 1577 ssid_len = ssid[1];
1578 1578
1579 ieee80211_send_probe_req(sdata, dst, ssid + 2, ssid_len, NULL, 1579 ieee80211_send_probe_req(sdata, dst, ssid + 2, ssid_len, NULL,
1580 0, (u32) -1, true, false); 1580 0, (u32) -1, true, false,
1581 ifmgd->associated->channel);
1581 } 1582 }
1582 1583
1583 ifmgd->probe_timeout = jiffies + msecs_to_jiffies(probe_wait_ms); 1584 ifmgd->probe_timeout = jiffies + msecs_to_jiffies(probe_wait_ms);
@@ -2704,7 +2705,8 @@ static int ieee80211_probe_auth(struct ieee80211_sub_if_data *sdata)
2704 * will not answer to direct packet in unassociated state. 2705 * will not answer to direct packet in unassociated state.
2705 */ 2706 */
2706 ieee80211_send_probe_req(sdata, NULL, ssidie + 2, ssidie[1], 2707 ieee80211_send_probe_req(sdata, NULL, ssidie + 2, ssidie[1],
2707 NULL, 0, (u32) -1, true, false); 2708 NULL, 0, (u32) -1, true, false,
2709 auth_data->bss->channel);
2708 } 2710 }
2709 2711
2710 auth_data->timeout = jiffies + IEEE80211_AUTH_TIMEOUT; 2712 auth_data->timeout = jiffies + IEEE80211_AUTH_TIMEOUT;