aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.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/util.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/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 79bce870ad78..471fb0516c99 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1163,12 +1163,12 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
1163void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, 1163void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst,
1164 const u8 *ssid, size_t ssid_len, 1164 const u8 *ssid, size_t ssid_len,
1165 const u8 *ie, size_t ie_len, 1165 const u8 *ie, size_t ie_len,
1166 u32 ratemask, bool directed, bool no_cck) 1166 u32 ratemask, bool directed, bool no_cck,
1167 struct ieee80211_channel *channel)
1167{ 1168{
1168 struct sk_buff *skb; 1169 struct sk_buff *skb;
1169 1170
1170 skb = ieee80211_build_probe_req(sdata, dst, ratemask, 1171 skb = ieee80211_build_probe_req(sdata, dst, ratemask, channel,
1171 sdata->local->hw.conf.channel,
1172 ssid, ssid_len, 1172 ssid, ssid_len,
1173 ie, ie_len, directed); 1173 ie, ie_len, directed);
1174 if (skb) { 1174 if (skb) {