diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 92d1b2e312d4..fe603191c12c 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -970,7 +970,7 @@ static int iwl3945_full_rxon_required(struct iwl3945_priv *priv) | |||
970 | { | 970 | { |
971 | 971 | ||
972 | /* These items are only settable from the full RXON command */ | 972 | /* These items are only settable from the full RXON command */ |
973 | if (!(priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) || | 973 | if (!(iwl3945_is_associated(priv)) || |
974 | compare_ether_addr(priv->staging_rxon.bssid_addr, | 974 | compare_ether_addr(priv->staging_rxon.bssid_addr, |
975 | priv->active_rxon.bssid_addr) || | 975 | priv->active_rxon.bssid_addr) || |
976 | compare_ether_addr(priv->staging_rxon.node_addr, | 976 | compare_ether_addr(priv->staging_rxon.node_addr, |
@@ -6836,7 +6836,7 @@ static void iwl3945_config_ap(struct iwl3945_priv *priv) | |||
6836 | return; | 6836 | return; |
6837 | 6837 | ||
6838 | /* The following should be done only at AP bring up */ | 6838 | /* The following should be done only at AP bring up */ |
6839 | if ((priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) == 0) { | 6839 | if (!(iwl3945_is_associated(priv))) { |
6840 | 6840 | ||
6841 | /* RXON - unassoc (to set timing command) */ | 6841 | /* RXON - unassoc (to set timing command) */ |
6842 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; | 6842 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 1558b9af544c..a2dffe401c78 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -192,7 +192,7 @@ static int iwl4965_full_rxon_required(struct iwl_priv *priv) | |||
192 | { | 192 | { |
193 | 193 | ||
194 | /* These items are only settable from the full RXON command */ | 194 | /* These items are only settable from the full RXON command */ |
195 | if (!(priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) || | 195 | if (!(iwl_is_associated(priv)) || |
196 | compare_ether_addr(priv->staging_rxon.bssid_addr, | 196 | compare_ether_addr(priv->staging_rxon.bssid_addr, |
197 | priv->active_rxon.bssid_addr) || | 197 | priv->active_rxon.bssid_addr) || |
198 | compare_ether_addr(priv->staging_rxon.node_addr, | 198 | compare_ether_addr(priv->staging_rxon.node_addr, |
@@ -3008,7 +3008,7 @@ static void iwl4965_config_ap(struct iwl_priv *priv) | |||
3008 | return; | 3008 | return; |
3009 | 3009 | ||
3010 | /* The following should be done only at AP bring up */ | 3010 | /* The following should be done only at AP bring up */ |
3011 | if ((priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) == 0) { | 3011 | if (!(iwl_is_associated(priv))) { |
3012 | 3012 | ||
3013 | /* RXON - unassoc (to set timing command) */ | 3013 | /* RXON - unassoc (to set timing command) */ |
3014 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; | 3014 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; |