diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/virtual.c | 2 |
5 files changed, 17 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index cb352daf2dc7..721b0c9e3eab 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -4024,17 +4024,17 @@ void ath9k_hw_setmcastfilter(struct ath_hw *ah, u32 filter0, u32 filter1) | |||
4024 | REG_WRITE(ah, AR_MCAST_FIL1, filter1); | 4024 | REG_WRITE(ah, AR_MCAST_FIL1, filter1); |
4025 | } | 4025 | } |
4026 | 4026 | ||
4027 | void ath9k_hw_setbssidmask(struct ath_softc *sc) | 4027 | void ath9k_hw_setbssidmask(struct ath_hw *ah) |
4028 | { | 4028 | { |
4029 | REG_WRITE(sc->sc_ah, AR_BSSMSKL, get_unaligned_le32(sc->bssidmask)); | 4029 | REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(ah->ah_sc->bssidmask)); |
4030 | REG_WRITE(sc->sc_ah, AR_BSSMSKU, get_unaligned_le16(sc->bssidmask + 4)); | 4030 | REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(ah->ah_sc->bssidmask + 4)); |
4031 | } | 4031 | } |
4032 | 4032 | ||
4033 | void ath9k_hw_write_associd(struct ath_softc *sc) | 4033 | void ath9k_hw_write_associd(struct ath_hw *ah) |
4034 | { | 4034 | { |
4035 | REG_WRITE(sc->sc_ah, AR_BSS_ID0, get_unaligned_le32(sc->curbssid)); | 4035 | REG_WRITE(ah, AR_BSS_ID0, get_unaligned_le32(ah->ah_sc->curbssid)); |
4036 | REG_WRITE(sc->sc_ah, AR_BSS_ID1, get_unaligned_le16(sc->curbssid + 4) | | 4036 | REG_WRITE(ah, AR_BSS_ID1, get_unaligned_le16(ah->ah_sc->curbssid + 4) | |
4037 | ((sc->curaid & 0x3fff) << AR_BSS_ID1_AID_S)); | 4037 | ((ah->ah_sc->curaid & 0x3fff) << AR_BSS_ID1_AID_S)); |
4038 | } | 4038 | } |
4039 | 4039 | ||
4040 | u64 ath9k_hw_gettsf64(struct ath_hw *ah) | 4040 | u64 ath9k_hw_gettsf64(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 2432edcabafb..c0c22dfd3065 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -641,8 +641,8 @@ void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit); | |||
641 | void ath9k_hw_setmac(struct ath_hw *ah, const u8 *mac); | 641 | void ath9k_hw_setmac(struct ath_hw *ah, const u8 *mac); |
642 | void ath9k_hw_setopmode(struct ath_hw *ah); | 642 | void ath9k_hw_setopmode(struct ath_hw *ah); |
643 | void ath9k_hw_setmcastfilter(struct ath_hw *ah, u32 filter0, u32 filter1); | 643 | void ath9k_hw_setmcastfilter(struct ath_hw *ah, u32 filter0, u32 filter1); |
644 | void ath9k_hw_setbssidmask(struct ath_softc *sc); | 644 | void ath9k_hw_setbssidmask(struct ath_hw *ah); |
645 | void ath9k_hw_write_associd(struct ath_softc *sc); | 645 | void ath9k_hw_write_associd(struct ath_hw *ah); |
646 | u64 ath9k_hw_gettsf64(struct ath_hw *ah); | 646 | u64 ath9k_hw_gettsf64(struct ath_hw *ah); |
647 | void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64); | 647 | void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64); |
648 | void ath9k_hw_reset_tsf(struct ath_hw *ah); | 648 | void ath9k_hw_reset_tsf(struct ath_hw *ah); |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 216b72f9c85c..f2c1feb7d491 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -975,14 +975,15 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc, | |||
975 | struct ieee80211_vif *vif, | 975 | struct ieee80211_vif *vif, |
976 | struct ieee80211_bss_conf *bss_conf) | 976 | struct ieee80211_bss_conf *bss_conf) |
977 | { | 977 | { |
978 | struct ath_hw *ah = sc->sc_ah; | ||
978 | 979 | ||
979 | if (bss_conf->assoc) { | 980 | if (bss_conf->assoc) { |
980 | DPRINTF(sc->sc_ah, ATH_DBG_CONFIG, "Bss Info ASSOC %d, bssid: %pM\n", | 981 | DPRINTF(ah, ATH_DBG_CONFIG, "Bss Info ASSOC %d, bssid: %pM\n", |
981 | bss_conf->aid, sc->curbssid); | 982 | bss_conf->aid, sc->curbssid); |
982 | 983 | ||
983 | /* New association, store aid */ | 984 | /* New association, store aid */ |
984 | sc->curaid = bss_conf->aid; | 985 | sc->curaid = bss_conf->aid; |
985 | ath9k_hw_write_associd(sc); | 986 | ath9k_hw_write_associd(ah); |
986 | 987 | ||
987 | /* | 988 | /* |
988 | * Request a re-configuration of Beacon related timers | 989 | * Request a re-configuration of Beacon related timers |
@@ -999,7 +1000,7 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc, | |||
999 | 1000 | ||
1000 | ath_start_ani(sc); | 1001 | ath_start_ani(sc); |
1001 | } else { | 1002 | } else { |
1002 | DPRINTF(sc->sc_ah, ATH_DBG_CONFIG, "Bss Info DISASSOC\n"); | 1003 | DPRINTF(ah, ATH_DBG_CONFIG, "Bss Info DISASSOC\n"); |
1003 | sc->curaid = 0; | 1004 | sc->curaid = 0; |
1004 | /* Stop ANI */ | 1005 | /* Stop ANI */ |
1005 | del_timer_sync(&sc->ani.timer); | 1006 | del_timer_sync(&sc->ani.timer); |
@@ -2801,7 +2802,7 @@ static void ath9k_bss_info_changed(struct ieee80211_hw *hw, | |||
2801 | ath9k_hw_setopmode(ah); | 2802 | ath9k_hw_setopmode(ah); |
2802 | memcpy(sc->curbssid, sc->sc_ah->macaddr, ETH_ALEN); | 2803 | memcpy(sc->curbssid, sc->sc_ah->macaddr, ETH_ALEN); |
2803 | sc->curaid = 0; | 2804 | sc->curaid = 0; |
2804 | ath9k_hw_write_associd(sc); | 2805 | ath9k_hw_write_associd(ah); |
2805 | /* Request full reset to get hw opmode changed properly */ | 2806 | /* Request full reset to get hw opmode changed properly */ |
2806 | sc->sc_flags |= SC_OP_FULL_RESET; | 2807 | sc->sc_flags |= SC_OP_FULL_RESET; |
2807 | } | 2808 | } |
@@ -2816,7 +2817,7 @@ static void ath9k_bss_info_changed(struct ieee80211_hw *hw, | |||
2816 | memcpy(sc->curbssid, bss_conf->bssid, ETH_ALEN); | 2817 | memcpy(sc->curbssid, bss_conf->bssid, ETH_ALEN); |
2817 | memcpy(avp->bssid, bss_conf->bssid, ETH_ALEN); | 2818 | memcpy(avp->bssid, bss_conf->bssid, ETH_ALEN); |
2818 | sc->curaid = 0; | 2819 | sc->curaid = 0; |
2819 | ath9k_hw_write_associd(sc); | 2820 | ath9k_hw_write_associd(ah); |
2820 | 2821 | ||
2821 | /* Set aggregation protection mode parameters */ | 2822 | /* Set aggregation protection mode parameters */ |
2822 | sc->config.ath_aggr_prot = 0; | 2823 | sc->config.ath_aggr_prot = 0; |
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index ee1e8b47496a..529cab6bfe66 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -280,7 +280,7 @@ static void ath_opmode_init(struct ath_softc *sc) | |||
280 | 280 | ||
281 | /* configure bssid mask */ | 281 | /* configure bssid mask */ |
282 | if (ah->caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) | 282 | if (ah->caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) |
283 | ath9k_hw_setbssidmask(sc); | 283 | ath9k_hw_setbssidmask(ah); |
284 | 284 | ||
285 | /* configure operational mode */ | 285 | /* configure operational mode */ |
286 | ath9k_hw_setopmode(ah); | 286 | ath9k_hw_setopmode(ah); |
diff --git a/drivers/net/wireless/ath/ath9k/virtual.c b/drivers/net/wireless/ath/ath9k/virtual.c index 19b88f8177fd..52becd32ad8c 100644 --- a/drivers/net/wireless/ath/ath9k/virtual.c +++ b/drivers/net/wireless/ath/ath9k/virtual.c | |||
@@ -93,7 +93,7 @@ void ath9k_set_bssid_mask(struct ieee80211_hw *hw) | |||
93 | sc->bssidmask[4] = ~mask[4]; | 93 | sc->bssidmask[4] = ~mask[4]; |
94 | sc->bssidmask[5] = ~mask[5]; | 94 | sc->bssidmask[5] = ~mask[5]; |
95 | 95 | ||
96 | ath9k_hw_setbssidmask(sc); | 96 | ath9k_hw_setbssidmask(sc->sc_ah); |
97 | } | 97 | } |
98 | 98 | ||
99 | int ath9k_wiphy_add(struct ath_softc *sc) | 99 | int ath9k_wiphy_add(struct ath_softc *sc) |