diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-09-15 05:42:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-16 15:32:11 -0400 |
commit | 3965ac00204e0ccd89e1e73ead4d2098dc8f7bd1 (patch) | |
tree | b3d2ade77df83657ec06c778ebbcca49e910dfc2 /net | |
parent | daabead1c32f331edcfb255fd973411c667977e8 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/sme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index b7b6ff8be553..dec0fa28372e 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c | |||
@@ -118,6 +118,8 @@ static int cfg80211_conn_scan(struct wireless_dev *wdev) | |||
118 | i++, j++) | 118 | i++, j++) |
119 | request->channels[i] = | 119 | request->channels[i] = |
120 | &wdev->wiphy->bands[band]->channels[j]; | 120 | &wdev->wiphy->bands[band]->channels[j]; |
121 | request->rates[band] = | ||
122 | (1 << wdev->wiphy->bands[band]->n_bitrates) - 1; | ||
121 | } | 123 | } |
122 | } | 124 | } |
123 | request->n_channels = n_channels; | 125 | request->n_channels = n_channels; |