Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'mac80211-for-davem-2015-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211

Johannes Berg says:

====================
Just two small fixes:
* VHT MCS mask array overrun, reported by Dan Carpenter
* reset CQM history to always get a notification, from Sara Sharon
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

+10 -7
+10 -7
net/mac80211/cfg.c
··· 2474 2474 2475 2475 bss_conf->cqm_rssi_thold = rssi_thold; 2476 2476 bss_conf->cqm_rssi_hyst = rssi_hyst; 2477 + sdata->u.mgd.last_cqm_event_signal = 0; 2477 2478 2478 2479 /* tell the driver upon association, unless already associated */ 2479 2480 if (sdata->u.mgd.associated && ··· 2519 2518 continue; 2520 2519 2521 2520 for (j = 0; j < IEEE80211_HT_MCS_MASK_LEN; j++) { 2522 - if (~sdata->rc_rateidx_mcs_mask[i][j]) 2521 + if (~sdata->rc_rateidx_mcs_mask[i][j]) { 2523 2522 sdata->rc_has_mcs_mask[i] = true; 2524 - 2525 - if (~sdata->rc_rateidx_vht_mcs_mask[i][j]) 2526 - sdata->rc_has_vht_mcs_mask[i] = true; 2527 - 2528 - if (sdata->rc_has_mcs_mask[i] && 2529 - sdata->rc_has_vht_mcs_mask[i]) 2530 2523 break; 2524 + } 2525 + } 2526 + 2527 + for (j = 0; j < NL80211_VHT_NSS_MAX; j++) { 2528 + if (~sdata->rc_rateidx_vht_mcs_mask[i][j]) { 2529 + sdata->rc_has_vht_mcs_mask[i] = true; 2530 + break; 2531 + } 2531 2532 } 2532 2533 } 2533 2534