aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorJay Sternberg <jay.e.sternberg@intel.com>2009-11-20 15:05:06 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-23 17:05:37 -0500
commit644c77f0cfa333e58fd4a09450434e89a52d8931 (patch)
treeb3140f85827f81eed5024dd4bc9152bcd11a3c5d /drivers/net/wireless/iwlwifi/iwl-core.c
parent3a3ff72c18085563ce64f7456ae3afff3a83397e (diff)
iwlwifi: Tell the ucode immediately when association state changes
When we get a state change of associated or not, we need to tell the ucode via the RX_ON command using the filter flags. This will prevent the ucode from sending any packets when not associated, specifically not sending NULL QOS packets after a deauthentication which causes the AP to repeatedly send deauth's in some situations. Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 05a0c413cdf..2e0fb2804ad 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -2478,6 +2478,16 @@ void iwl_bss_info_changed(struct ieee80211_hw *hw,
2478 } else { 2478 } else {
2479 priv->assoc_id = 0; 2479 priv->assoc_id = 0;
2480 iwl_led_disassociate(priv); 2480 iwl_led_disassociate(priv);
2481
2482 /*
2483 * inform the ucode that there is no longer an
2484 * association and that no more packets should be
2485 * send
2486 */
2487 priv->staging_rxon.filter_flags &=
2488 ~RXON_FILTER_ASSOC_MSK;
2489 priv->staging_rxon.assoc_id = 0;
2490 iwlcore_commit_rxon(priv);
2481 } 2491 }
2482 } 2492 }
2483 2493