mac80211: fix current vs. operating channel in preq/beacon
When sending probe requests, e.g. during software scanning, these will go out on the *current* channel, so their IEs need to be built from the current channel. At other times, e.g. for beacons or probe request templates, the IEs will be used on the *operating* channel and using the current channel instead might result in errors. Add the appropriate parameters to respect the difference. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -1683,7 +1683,9 @@ struct sk_buff *ieee80211_ap_probereq_get(struct ieee80211_hw *hw,
|
||||
ssid_len = ssid[1];
|
||||
|
||||
skb = ieee80211_build_probe_req(sdata, cbss->bssid,
|
||||
(u32) -1, ssid + 2, ssid_len,
|
||||
(u32) -1,
|
||||
sdata->local->oper_channel,
|
||||
ssid + 2, ssid_len,
|
||||
NULL, 0, true);
|
||||
|
||||
return skb;
|
||||
|
Reference in New Issue
Block a user