diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index c03949eb37c8..4b08a3d3195d 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -558,8 +558,7 @@ struct ath_ant_comb { | |||
558 | #define SC_OP_BT_PRIORITY_DETECTED BIT(12) | 558 | #define SC_OP_BT_PRIORITY_DETECTED BIT(12) |
559 | #define SC_OP_BT_SCAN BIT(13) | 559 | #define SC_OP_BT_SCAN BIT(13) |
560 | #define SC_OP_ANI_RUN BIT(14) | 560 | #define SC_OP_ANI_RUN BIT(14) |
561 | #define SC_OP_ENABLE_APM BIT(15) | 561 | #define SC_OP_PRIM_STA_VIF BIT(15) |
562 | #define SC_OP_PRIM_STA_VIF BIT(16) | ||
563 | 562 | ||
564 | /* Powersave flags */ | 563 | /* Powersave flags */ |
565 | #define PS_WAIT_FOR_BEACON BIT(0) | 564 | #define PS_WAIT_FOR_BEACON BIT(0) |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3c5db3063877..2af4a1c2e2d6 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -565,7 +565,6 @@ set_timer: | |||
565 | static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta) | 565 | static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta) |
566 | { | 566 | { |
567 | struct ath_node *an; | 567 | struct ath_node *an; |
568 | struct ath_hw *ah = sc->sc_ah; | ||
569 | an = (struct ath_node *)sta->drv_priv; | 568 | an = (struct ath_node *)sta->drv_priv; |
570 | 569 | ||
571 | #ifdef CONFIG_ATH9K_DEBUGFS | 570 | #ifdef CONFIG_ATH9K_DEBUGFS |
@@ -574,9 +573,6 @@ static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta) | |||
574 | spin_unlock(&sc->nodes_lock); | 573 | spin_unlock(&sc->nodes_lock); |
575 | an->sta = sta; | 574 | an->sta = sta; |
576 | #endif | 575 | #endif |
577 | if ((ah->caps.hw_caps) & ATH9K_HW_CAP_APM) | ||
578 | sc->sc_flags |= SC_OP_ENABLE_APM; | ||
579 | |||
580 | if (sc->sc_flags & SC_OP_TXAGGR) { | 576 | if (sc->sc_flags & SC_OP_TXAGGR) { |
581 | ath_tx_node_init(sc, an); | 577 | ath_tx_node_init(sc, an); |
582 | an->maxampdu = 1 << (IEEE80211_HT_MAX_AMPDU_FACTOR + | 578 | an->maxampdu = 1 << (IEEE80211_HT_MAX_AMPDU_FACTOR + |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index feef0135515c..20626729795d 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1584,9 +1584,9 @@ u8 ath_txchainmask_reduction(struct ath_softc *sc, u8 chainmask, u32 rate) | |||
1584 | { | 1584 | { |
1585 | struct ath_hw *ah = sc->sc_ah; | 1585 | struct ath_hw *ah = sc->sc_ah; |
1586 | struct ath9k_channel *curchan = ah->curchan; | 1586 | struct ath9k_channel *curchan = ah->curchan; |
1587 | if ((sc->sc_flags & SC_OP_ENABLE_APM) && | 1587 | if ((ah->caps.hw_caps & ATH9K_HW_CAP_APM) && |
1588 | (curchan->channelFlags & CHANNEL_5GHZ) && | 1588 | (curchan->channelFlags & CHANNEL_5GHZ) && |
1589 | (chainmask == 0x7) && (rate < 0x90)) | 1589 | (chainmask == 0x7) && (rate < 0x90)) |
1590 | return 0x3; | 1590 | return 0x3; |
1591 | else | 1591 | else |
1592 | return chainmask; | 1592 | return chainmask; |