diff options
Diffstat (limited to 'drivers')
-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 aebaa0af008a..4faafbde1d0b 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1849,6 +1849,8 @@ bad_free_hw: | |||
1849 | 1849 | ||
1850 | void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) | 1850 | void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) |
1851 | { | 1851 | { |
1852 | struct ath_hw *ah = sc->sc_ah; | ||
1853 | |||
1852 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | | 1854 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | |
1853 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | | 1855 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | |
1854 | IEEE80211_HW_SIGNAL_DBM | | 1856 | IEEE80211_HW_SIGNAL_DBM | |
@@ -1866,7 +1868,8 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
1866 | BIT(NL80211_IFTYPE_ADHOC) | | 1868 | BIT(NL80211_IFTYPE_ADHOC) | |
1867 | BIT(NL80211_IFTYPE_MESH_POINT); | 1869 | BIT(NL80211_IFTYPE_MESH_POINT); |
1868 | 1870 | ||
1869 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | 1871 | if (AR_SREV_5416(ah)) |
1872 | hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; | ||
1870 | 1873 | ||
1871 | hw->queues = 4; | 1874 | hw->queues = 4; |
1872 | hw->max_rates = 4; | 1875 | hw->max_rates = 4; |