Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150419
b: refs/heads/master
c: 3019667
h: refs/heads/master
i:
  150417: d2c7eff
  150415: 32c6836
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed May 20, 2009
1 parent 681020d commit 774e6ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: dc8c4585d2e6f3bf5c9d8c0a6036b591bd3baf2e
refs/heads/master: 30196673fe17934617b5d5bfd456a0edf057a0b9
19 changes: 10 additions & 9 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1951,16 +1951,13 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
directed_tim = ieee80211_check_tim(elems.tim, elems.tim_len,
ifmgd->aid);

ncrc = crc32_be(ncrc, (void *)&directed_tim, sizeof(directed_tim));
if (ncrc != ifmgd->beacon_crc) {
ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, &elems,
true);

if (ncrc == ifmgd->beacon_crc)
return;
ifmgd->beacon_crc = ncrc;

ieee80211_rx_bss_info(sdata, mgmt, len, rx_status, &elems, true);

ieee80211_sta_wmm_params(local, ifmgd, elems.wmm_param,
elems.wmm_param_len);
ieee80211_sta_wmm_params(local, ifmgd, elems.wmm_param,
elems.wmm_param_len);
}

if (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) {
if (directed_tim) {
Expand All @@ -1985,6 +1982,10 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
}
}

if (ncrc == ifmgd->beacon_crc)
return;
ifmgd->beacon_crc = ncrc;

if (elems.erp_info && elems.erp_info_len >= 1) {
erp_valid = true;
erp_value = elems.erp_info[0];
Expand Down

0 comments on commit 774e6ca

Please sign in to comment.