Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121816
b: refs/heads/master
c: d61272c
h: refs/heads/master
v: v3
  • Loading branch information
Tomas Winkler authored and John W. Linville committed Nov 10, 2008
1 parent e066f7c commit 0392907
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab1ef980504ca7f17b675b3a53a88956f800fce3
refs/heads/master: d61272cbb35fa1c08fe94898583d880256f2dbd3
18 changes: 12 additions & 6 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,29 +1291,35 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,

for (i = 0; i < elems.supp_rates_len; i++) {
int rate = (elems.supp_rates[i] & 0x7f) * 5;
bool is_basic = !!(elems.supp_rates[i] & 0x80);

if (rate > 110)
have_higher_than_11mbit = true;

for (j = 0; j < sband->n_bitrates; j++) {
if (sband->bitrates[j].bitrate == rate)
if (sband->bitrates[j].bitrate == rate) {
rates |= BIT(j);
if (elems.supp_rates[i] & 0x80)
basic_rates |= BIT(j);
if (is_basic)
basic_rates |= BIT(j);
break;
}
}
}

for (i = 0; i < elems.ext_supp_rates_len; i++) {
int rate = (elems.ext_supp_rates[i] & 0x7f) * 5;
bool is_basic = !!(elems.supp_rates[i] & 0x80);

if (rate > 110)
have_higher_than_11mbit = true;

for (j = 0; j < sband->n_bitrates; j++) {
if (sband->bitrates[j].bitrate == rate)
if (sband->bitrates[j].bitrate == rate) {
rates |= BIT(j);
if (elems.ext_supp_rates[i] & 0x80)
basic_rates |= BIT(j);
if (is_basic)
basic_rates |= BIT(j);
break;
}
}
}

Expand Down

0 comments on commit 0392907

Please sign in to comment.