aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index a9e43f7a23f6..fa4c6e74f977 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1327,7 +1327,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc)
1327 */ 1327 */
1328 ath_read_cachesize(sc, &csz); 1328 ath_read_cachesize(sc, &csz);
1329 /* XXX assert csz is non-zero */ 1329 /* XXX assert csz is non-zero */
1330 sc->cachelsz = csz << 2; /* convert to bytes */ 1330 sc->common.cachelsz = csz << 2; /* convert to bytes */
1331 1331
1332 ah = kzalloc(sizeof(struct ath_hw), GFP_KERNEL); 1332 ah = kzalloc(sizeof(struct ath_hw), GFP_KERNEL);
1333 if (!ah) { 1333 if (!ah) {
@@ -2140,6 +2140,7 @@ static void ath9k_stop(struct ieee80211_hw *hw)
2140 /* disable HAL and put h/w to sleep */ 2140 /* disable HAL and put h/w to sleep */
2141 ath9k_hw_disable(sc->sc_ah); 2141 ath9k_hw_disable(sc->sc_ah);
2142 ath9k_hw_configpcipowersave(sc->sc_ah, 1); 2142 ath9k_hw_configpcipowersave(sc->sc_ah, 1);
2143 ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP);
2143 2144
2144 sc->sc_flags |= SC_OP_INVALID; 2145 sc->sc_flags |= SC_OP_INVALID;
2145 2146
@@ -2214,8 +2215,7 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
2214 if ((conf->type == NL80211_IFTYPE_STATION) || 2215 if ((conf->type == NL80211_IFTYPE_STATION) ||
2215 (conf->type == NL80211_IFTYPE_ADHOC) || 2216 (conf->type == NL80211_IFTYPE_ADHOC) ||
2216 (conf->type == NL80211_IFTYPE_MESH_POINT)) { 2217 (conf->type == NL80211_IFTYPE_MESH_POINT)) {
2217 if (ath9k_hw_phycounters(sc->sc_ah)) 2218 sc->imask |= ATH9K_INT_MIB;
2218 sc->imask |= ATH9K_INT_MIB;
2219 sc->imask |= ATH9K_INT_TSFOOR; 2219 sc->imask |= ATH9K_INT_TSFOOR;
2220 } 2220 }
2221 2221
@@ -2380,6 +2380,7 @@ skip_chan_change:
2380 (FIF_PROMISC_IN_BSS | \ 2380 (FIF_PROMISC_IN_BSS | \
2381 FIF_ALLMULTI | \ 2381 FIF_ALLMULTI | \
2382 FIF_CONTROL | \ 2382 FIF_CONTROL | \
2383 FIF_PSPOLL | \
2383 FIF_OTHER_BSS | \ 2384 FIF_OTHER_BSS | \
2384 FIF_BCN_PRBRESP_PROMISC | \ 2385 FIF_BCN_PRBRESP_PROMISC | \
2385 FIF_FCSFAIL) 2386 FIF_FCSFAIL)