mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
wireless: Fix rate mask for scan request
The scan request received from cfg80211_connect do not have proper rate mast. So the probe request sent on each channel do not have proper the supported rates ie. Cc: stable@kernel.org Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
daabead1c3
commit
3965ac0020
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ static int cfg80211_conn_scan(struct wireless_dev *wdev)
|
||||||
i++, j++)
|
i++, j++)
|
||||||
request->channels[i] =
|
request->channels[i] =
|
||||||
&wdev->wiphy->bands[band]->channels[j];
|
&wdev->wiphy->bands[band]->channels[j];
|
||||||
|
request->rates[band] =
|
||||||
|
(1 << wdev->wiphy->bands[band]->n_bitrates) - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request->n_channels = n_channels;
|
request->n_channels = n_channels;
|
||||||
|
|
Loading…
Reference in a new issue