aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/work.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
commit83163244f845c296a118ce85c653872dbff6abfe (patch)
treece2eac695a1c198f23d537e20ed86c16ece21f7e /net/mac80211/work.c
parent0a12761bcd5646691c5d16dd93df84d1b8849285 (diff)
parentadfba3c7c026a6a5560d2a43fefc9b198cb74462 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: drivers/net/wireless/libertas_tf/cmd.c drivers/net/wireless/libertas_tf/main.c
Diffstat (limited to 'net/mac80211/work.c')
-rw-r--r--net/mac80211/work.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/net/mac80211/work.c b/net/mac80211/work.c
index bdb1d05b16f..3dd07600199 100644
--- a/net/mac80211/work.c
+++ b/net/mac80211/work.c
@@ -213,15 +213,25 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
213 213
214 sband = local->hw.wiphy->bands[wk->chan->band]; 214 sband = local->hw.wiphy->bands[wk->chan->band];
215 215
216 /* 216 if (wk->assoc.supp_rates_len) {
217 * Get all rates supported by the device and the AP as 217 /*
218 * some APs don't like getting a superset of their rates 218 * Get all rates supported by the device and the AP as
219 * in the association request (e.g. D-Link DAP 1353 in 219 * some APs don't like getting a superset of their rates
220 * b-only mode)... 220 * in the association request (e.g. D-Link DAP 1353 in
221 */ 221 * b-only mode)...
222 rates_len = ieee80211_compatible_rates(wk->assoc.supp_rates, 222 */
223 wk->assoc.supp_rates_len, 223 rates_len = ieee80211_compatible_rates(wk->assoc.supp_rates,
224 sband, &rates); 224 wk->assoc.supp_rates_len,
225 sband, &rates);
226 } else {
227 /*
228 * In case AP not provide any supported rates information
229 * before association, we send information element(s) with
230 * all rates that we support.
231 */
232 rates = ~0;
233 rates_len = sband->n_bitrates;
234 }
225 235
226 skb = alloc_skb(local->hw.extra_tx_headroom + 236 skb = alloc_skb(local->hw.extra_tx_headroom +
227 sizeof(*mgmt) + /* bit too much but doesn't matter */ 237 sizeof(*mgmt) + /* bit too much but doesn't matter */