diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 79fbbda15493..3777b8449789 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1838,6 +1838,8 @@ bad_free_hw: | |||
1838 | 1838 | ||
1839 | void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) | 1839 | void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) |
1840 | { | 1840 | { |
1841 | struct ath_hw *ah = sc->sc_ah; | ||
1842 | |||
1841 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | | 1843 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | |
1842 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | | 1844 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | |
1843 | IEEE80211_HW_SIGNAL_DBM | | 1845 | IEEE80211_HW_SIGNAL_DBM | |
@@ -1855,7 +1857,8 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
1855 | BIT(NL80211_IFTYPE_ADHOC) | | 1857 | BIT(NL80211_IFTYPE_ADHOC) | |
1856 | BIT(NL80211_IFTYPE_MESH_POINT); | 1858 | BIT(NL80211_IFTYPE_MESH_POINT); |
1857 | 1859 | ||
1858 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | 1860 | if (AR_SREV_5416(ah)) |
1861 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | ||
1859 | 1862 | ||
1860 | hw->queues = 4; | 1863 | hw->queues = 4; |
1861 | hw->max_rates = 4; | 1864 | hw->max_rates = 4; |