aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index aeb65b3d2295..aedbaaa067e6 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -872,13 +872,14 @@ void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata,
872} 872}
873 873
874int ieee80211_build_preq_ies(struct ieee80211_local *local, u8 *buffer, 874int ieee80211_build_preq_ies(struct ieee80211_local *local, u8 *buffer,
875 const u8 *ie, size_t ie_len) 875 const u8 *ie, size_t ie_len,
876 enum ieee80211_band band)
876{ 877{
877 struct ieee80211_supported_band *sband; 878 struct ieee80211_supported_band *sband;
878 u8 *pos, *supp_rates_len, *esupp_rates_len = NULL; 879 u8 *pos, *supp_rates_len, *esupp_rates_len = NULL;
879 int i; 880 int i;
880 881
881 sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; 882 sband = local->hw.wiphy->bands[band];
882 883
883 pos = buffer; 884 pos = buffer;
884 885
@@ -966,7 +967,8 @@ void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst,
966 memcpy(pos, ssid, ssid_len); 967 memcpy(pos, ssid, ssid_len);
967 pos += ssid_len; 968 pos += ssid_len;
968 969
969 skb_put(skb, ieee80211_build_preq_ies(local, pos, ie, ie_len)); 970 skb_put(skb, ieee80211_build_preq_ies(local, pos, ie, ie_len,
971 local->hw.conf.channel->band));
970 972
971 ieee80211_tx_skb(sdata, skb, 0); 973 ieee80211_tx_skb(sdata, skb, 0);
972} 974}