diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-04-15 17:38:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:21 -0400 |
commit | 3448f912c64bac4431b657b47b4e6e57565b656f (patch) | |
tree | 8b1d1e7c18cf8b1dd895c363197fc756ad90bbfe /drivers/net/wireless/ath/ath9k/main.c | |
parent | 31a0bd3c7564ec79cf86a3eb9f9aaa3c47099d9b (diff) |
ath9k: disable the MIB interrupt if ANI is disabled
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index f7ef11407e2..494456cd1da 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1436,7 +1436,8 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, | |||
1436 | if ((vif->type == NL80211_IFTYPE_STATION) || | 1436 | if ((vif->type == NL80211_IFTYPE_STATION) || |
1437 | (vif->type == NL80211_IFTYPE_ADHOC) || | 1437 | (vif->type == NL80211_IFTYPE_ADHOC) || |
1438 | (vif->type == NL80211_IFTYPE_MESH_POINT)) { | 1438 | (vif->type == NL80211_IFTYPE_MESH_POINT)) { |
1439 | ah->imask |= ATH9K_INT_MIB; | 1439 | if (ah->config.enable_ani) |
1440 | ah->imask |= ATH9K_INT_MIB; | ||
1440 | ah->imask |= ATH9K_INT_TSFOOR; | 1441 | ah->imask |= ATH9K_INT_TSFOOR; |
1441 | } | 1442 | } |
1442 | 1443 | ||