diff options
author | David S. Miller <davem@davemloft.net> | 2015-09-24 18:36:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-24 18:36:20 -0400 |
commit | deccbe80be947fa89bca18510699893c38856f38 (patch) | |
tree | 3b46d855020651982da6857a310d927b63a8bd92 /net | |
parent | a46496ce38eeb401344d5623c1960dbf2f1769be (diff) | |
parent | babc305e21ea3811d98b67437299360904ac1b6a (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/cfg.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 17b1fe961c5d..7a77a1470f25 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2474,6 +2474,7 @@ static int ieee80211_set_cqm_rssi_config(struct wiphy *wiphy, | |||
2474 | 2474 | ||
2475 | bss_conf->cqm_rssi_thold = rssi_thold; | 2475 | bss_conf->cqm_rssi_thold = rssi_thold; |
2476 | bss_conf->cqm_rssi_hyst = rssi_hyst; | 2476 | bss_conf->cqm_rssi_hyst = rssi_hyst; |
2477 | sdata->u.mgd.last_cqm_event_signal = 0; | ||
2477 | 2478 | ||
2478 | /* tell the driver upon association, unless already associated */ | 2479 | /* tell the driver upon association, unless already associated */ |
2479 | if (sdata->u.mgd.associated && | 2480 | if (sdata->u.mgd.associated && |
@@ -2518,15 +2519,17 @@ static int ieee80211_set_bitrate_mask(struct wiphy *wiphy, | |||
2518 | continue; | 2519 | continue; |
2519 | 2520 | ||
2520 | for (j = 0; j < IEEE80211_HT_MCS_MASK_LEN; j++) { | 2521 | for (j = 0; j < IEEE80211_HT_MCS_MASK_LEN; j++) { |
2521 | if (~sdata->rc_rateidx_mcs_mask[i][j]) | 2522 | if (~sdata->rc_rateidx_mcs_mask[i][j]) { |
2522 | sdata->rc_has_mcs_mask[i] = true; | 2523 | sdata->rc_has_mcs_mask[i] = true; |
2524 | break; | ||
2525 | } | ||
2526 | } | ||
2523 | 2527 | ||
2524 | if (~sdata->rc_rateidx_vht_mcs_mask[i][j]) | 2528 | for (j = 0; j < NL80211_VHT_NSS_MAX; j++) { |
2529 | if (~sdata->rc_rateidx_vht_mcs_mask[i][j]) { | ||
2525 | sdata->rc_has_vht_mcs_mask[i] = true; | 2530 | sdata->rc_has_vht_mcs_mask[i] = true; |
2526 | |||
2527 | if (sdata->rc_has_mcs_mask[i] && | ||
2528 | sdata->rc_has_vht_mcs_mask[i]) | ||
2529 | break; | 2531 | break; |
2532 | } | ||
2530 | } | 2533 | } |
2531 | } | 2534 | } |
2532 | 2535 | ||