diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 818367b57bab..e4c2e1e448ad 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1258,7 +1258,15 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
1258 | /* Ack/clear/reset pending uCode interrupts. | 1258 | /* Ack/clear/reset pending uCode interrupts. |
1259 | * Note: Some bits in CSR_INT are "OR" of bits in CSR_FH_INT_STATUS, | 1259 | * Note: Some bits in CSR_INT are "OR" of bits in CSR_FH_INT_STATUS, |
1260 | */ | 1260 | */ |
1261 | iwl_write32(priv, CSR_INT, priv->inta); | 1261 | /* There is a hardware bug in the interrupt mask function that some |
1262 | * interrupts (i.e. CSR_INT_BIT_SCD) can still be generated even if | ||
1263 | * they are disabled in the CSR_INT_MASK register. Furthermore the | ||
1264 | * ICT interrupt handling mechanism has another bug that might cause | ||
1265 | * these unmasked interrupts fail to be detected. We workaround the | ||
1266 | * hardware bugs here by ACKing all the possible interrupts so that | ||
1267 | * interrupt coalescing can still be achieved. | ||
1268 | */ | ||
1269 | iwl_write32(priv, CSR_INT, priv->inta | ~priv->inta_mask); | ||
1262 | 1270 | ||
1263 | inta = priv->inta; | 1271 | inta = priv->inta; |
1264 | 1272 | ||
@@ -2644,7 +2652,7 @@ static int iwl_mac_setup_register(struct iwl_priv *priv) | |||
2644 | BIT(NL80211_IFTYPE_STATION) | | 2652 | BIT(NL80211_IFTYPE_STATION) | |
2645 | BIT(NL80211_IFTYPE_ADHOC); | 2653 | BIT(NL80211_IFTYPE_ADHOC); |
2646 | 2654 | ||
2647 | hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY | | 2655 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY | |
2648 | WIPHY_FLAG_DISABLE_BEACON_HINTS; | 2656 | WIPHY_FLAG_DISABLE_BEACON_HINTS; |
2649 | 2657 | ||
2650 | /* | 2658 | /* |