diff options
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 30c66dfcd7a0..4f18a6be0c7d 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
| @@ -974,9 +974,8 @@ void ath9k_calculate_iter_data(struct ath_softc *sc, | |||
| 974 | struct ath_vif *avp; | 974 | struct ath_vif *avp; |
| 975 | 975 | ||
| 976 | /* | 976 | /* |
| 977 | * Pick the MAC address of the first interface as the new hardware | 977 | * The hardware will use primary station addr together with the |
| 978 | * MAC address. The hardware will use it together with the BSSID mask | 978 | * BSSID mask when matching addresses. |
| 979 | * when matching addresses. | ||
| 980 | */ | 979 | */ |
| 981 | memset(iter_data, 0, sizeof(*iter_data)); | 980 | memset(iter_data, 0, sizeof(*iter_data)); |
| 982 | memset(&iter_data->mask, 0xff, ETH_ALEN); | 981 | memset(&iter_data->mask, 0xff, ETH_ALEN); |
| @@ -1205,6 +1204,8 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, | |||
| 1205 | list_add_tail(&avp->list, &avp->chanctx->vifs); | 1204 | list_add_tail(&avp->list, &avp->chanctx->vifs); |
| 1206 | } | 1205 | } |
| 1207 | 1206 | ||
| 1207 | ath9k_calculate_summary_state(sc, avp->chanctx); | ||
| 1208 | |||
| 1208 | ath9k_assign_hw_queues(hw, vif); | 1209 | ath9k_assign_hw_queues(hw, vif); |
| 1209 | 1210 | ||
| 1210 | an->sc = sc; | 1211 | an->sc = sc; |
| @@ -1274,6 +1275,8 @@ static void ath9k_remove_interface(struct ieee80211_hw *hw, | |||
| 1274 | 1275 | ||
| 1275 | ath_tx_node_cleanup(sc, &avp->mcast_node); | 1276 | ath_tx_node_cleanup(sc, &avp->mcast_node); |
| 1276 | 1277 | ||
| 1278 | ath9k_calculate_summary_state(sc, avp->chanctx); | ||
| 1279 | |||
| 1277 | mutex_unlock(&sc->mutex); | 1280 | mutex_unlock(&sc->mutex); |
| 1278 | } | 1281 | } |
| 1279 | 1282 | ||
