Commit 2a84ee86 authored by Karl Beldan's avatar Karl Beldan Committed by Johannes Berg

cfg80211: set the rates mask in connection probes over specified freq

ATM, specifying the frequency when connecting sends a void 'supported
rates' EID.
Signed-off-by: default avatarKarl Beldan <>
[fix memory leak in error path]
Signed-off-by: default avatarJohannes Berg <>
parent 486cf4c0
......@@ -80,9 +80,18 @@ static int cfg80211_conn_scan(struct wireless_dev *wdev)
if (!request)
return -ENOMEM;
if (wdev->conn->
if (wdev->conn-> {
enum ieee80211_band band = wdev->conn->>band;
struct ieee80211_supported_band *sband =
if (!sband) {
return -EINVAL;
request->channels[0] = wdev->conn->;
else {
request->rates[band] = (1 << sband->n_bitrates) - 1;
} else {
int i = 0, j;
enum ieee80211_band band;
struct ieee80211_supported_band *bands;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment