diff options
author | Kalle Valo <kvalo@codeaurora.org> | 2016-08-29 14:39:04 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-08-29 14:39:04 -0400 |
commit | bb87f02b7e4ccdb614a83cbf840524de81e9b321 (patch) | |
tree | 9906c75e8b80913dec4a216029ab9965566a9871 | |
parent | b64abcb7dae6060c67ab0e548da3ef923c49641d (diff) | |
parent | 7711aaf08ad3fc4d0e937eec1de0a63620444ce7 (diff) |
Merge ath-current from ath.git
ath.git fixes for 4.8. Major changes:
ath9k
* fix regression in client mode beacon configuration
* fix a station pointer which resulted in spurious crashes
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index a394622c9022..6ca4337a98c4 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1154,6 +1154,7 @@ void ath9k_calculate_summary_state(struct ath_softc *sc, | |||
1154 | bool changed = (iter_data.primary_sta != ctx->primary_sta); | 1154 | bool changed = (iter_data.primary_sta != ctx->primary_sta); |
1155 | 1155 | ||
1156 | if (iter_data.primary_sta) { | 1156 | if (iter_data.primary_sta) { |
1157 | iter_data.primary_beacon_vif = iter_data.primary_sta; | ||
1157 | iter_data.beacons = true; | 1158 | iter_data.beacons = true; |
1158 | ath9k_set_assoc_state(sc, iter_data.primary_sta, | 1159 | ath9k_set_assoc_state(sc, iter_data.primary_sta, |
1159 | changed); | 1160 | changed); |
@@ -1563,13 +1564,13 @@ static int ath9k_sta_state(struct ieee80211_hw *hw, | |||
1563 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 1564 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); |
1564 | int ret = 0; | 1565 | int ret = 0; |
1565 | 1566 | ||
1566 | if (old_state == IEEE80211_STA_AUTH && | 1567 | if (old_state == IEEE80211_STA_NOTEXIST && |
1567 | new_state == IEEE80211_STA_ASSOC) { | 1568 | new_state == IEEE80211_STA_NONE) { |
1568 | ret = ath9k_sta_add(hw, vif, sta); | 1569 | ret = ath9k_sta_add(hw, vif, sta); |
1569 | ath_dbg(common, CONFIG, | 1570 | ath_dbg(common, CONFIG, |
1570 | "Add station: %pM\n", sta->addr); | 1571 | "Add station: %pM\n", sta->addr); |
1571 | } else if (old_state == IEEE80211_STA_ASSOC && | 1572 | } else if (old_state == IEEE80211_STA_NONE && |
1572 | new_state == IEEE80211_STA_AUTH) { | 1573 | new_state == IEEE80211_STA_NOTEXIST) { |
1573 | ret = ath9k_sta_remove(hw, vif, sta); | 1574 | ret = ath9k_sta_remove(hw, vif, sta); |
1574 | ath_dbg(common, CONFIG, | 1575 | ath_dbg(common, CONFIG, |
1575 | "Remove station: %pM\n", sta->addr); | 1576 | "Remove station: %pM\n", sta->addr); |