diff options
-rw-r--r-- | net/mac80211/ieee80211_i.h | 3 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 6 | ||||
-rw-r--r-- | net/mac80211/scan.c | 3 | ||||
-rw-r--r-- | net/mac80211/util.c | 6 |
4 files changed, 11 insertions, 7 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 0b81fa807179..204bfedba306 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -1472,7 +1472,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata, | |||
1472 | void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, | 1472 | void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, |
1473 | const u8 *ssid, size_t ssid_len, | 1473 | const u8 *ssid, size_t ssid_len, |
1474 | const u8 *ie, size_t ie_len, | 1474 | const u8 *ie, size_t ie_len, |
1475 | u32 ratemask, bool directed, bool no_cck); | 1475 | u32 ratemask, bool directed, bool no_cck, |
1476 | struct ieee80211_channel *channel); | ||
1476 | 1477 | ||
1477 | void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata, | 1478 | void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata, |
1478 | const size_t supp_rates_len, | 1479 | const size_t supp_rates_len, |
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; |
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 4b75ddeef6b1..ef1d69306315 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -416,7 +416,8 @@ static void ieee80211_scan_state_send_probe(struct ieee80211_local *local, | |||
416 | local->scan_req->ssids[i].ssid_len, | 416 | local->scan_req->ssids[i].ssid_len, |
417 | local->scan_req->ie, local->scan_req->ie_len, | 417 | local->scan_req->ie, local->scan_req->ie_len, |
418 | local->scan_req->rates[band], false, | 418 | local->scan_req->rates[band], false, |
419 | local->scan_req->no_cck); | 419 | local->scan_req->no_cck, |
420 | local->hw.conf.channel); | ||
420 | 421 | ||
421 | /* | 422 | /* |
422 | * After sending probe requests, wait for probe responses | 423 | * After sending probe requests, wait for probe responses |
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, | |||
1163 | void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, | 1163 | void 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) { |