diff options
author | James Ketrenos <jketreno@linux.intel.com> | 2005-10-13 05:26:48 -0400 |
---|---|---|
committer | James Ketrenos <jketreno@linux.intel.com> | 2005-11-07 18:52:02 -0500 |
commit | 991d1cc5963f4926478f3139ec0b0dd26a2c888c (patch) | |
tree | dcfb9b32f23be2c8952797fd81174219abd76c85 /drivers/net/wireless | |
parent | e758256104c3c2475f7746bc1b348c99cdb207f2 (diff) |
Removed warning about TKIP not being configured if countermeasures are
configured.
Countermeasures default to being turned off when wpa_supplicant runs,
regardless of if TKIP is being used. They are only turned on if a TKIP
is running. The warning we were printing is therefore not needed.
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index ed4f1a5e6b0a..76841cb8301b 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -5866,11 +5866,8 @@ static int ipw2100_wpa_set_param(struct net_device *dev, u8 name, u32 value) | |||
5866 | 5866 | ||
5867 | case IPW2100_PARAM_TKIP_COUNTERMEASURES: | 5867 | case IPW2100_PARAM_TKIP_COUNTERMEASURES: |
5868 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; | 5868 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; |
5869 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) { | 5869 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) |
5870 | IPW_DEBUG_WARNING("Can't set TKIP countermeasures: " | ||
5871 | "crypt not set!\n"); | ||
5872 | break; | 5870 | break; |
5873 | } | ||
5874 | 5871 | ||
5875 | flags = crypt->ops->get_flags(crypt->priv); | 5872 | flags = crypt->ops->get_flags(crypt->priv); |
5876 | 5873 | ||
@@ -7935,11 +7932,8 @@ static int ipw2100_wx_set_auth(struct net_device *dev, | |||
7935 | 7932 | ||
7936 | case IW_AUTH_TKIP_COUNTERMEASURES: | 7933 | case IW_AUTH_TKIP_COUNTERMEASURES: |
7937 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; | 7934 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; |
7938 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) { | 7935 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) |
7939 | IPW_DEBUG_WARNING("Can't set TKIP countermeasures: " | ||
7940 | "crypt not set!\n"); | ||
7941 | break; | 7936 | break; |
7942 | } | ||
7943 | 7937 | ||
7944 | flags = crypt->ops->get_flags(crypt->priv); | 7938 | flags = crypt->ops->get_flags(crypt->priv); |
7945 | 7939 | ||
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 894192964c0b..750e43e9310a 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -6357,11 +6357,8 @@ static int ipw_wx_set_auth(struct net_device *dev, | |||
6357 | 6357 | ||
6358 | case IW_AUTH_TKIP_COUNTERMEASURES: | 6358 | case IW_AUTH_TKIP_COUNTERMEASURES: |
6359 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; | 6359 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; |
6360 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) { | 6360 | if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) |
6361 | IPW_WARNING("Can't set TKIP countermeasures: " | ||
6362 | "crypt not set!\n"); | ||
6363 | break; | 6361 | break; |
6364 | } | ||
6365 | 6362 | ||
6366 | flags = crypt->ops->get_flags(crypt->priv); | 6363 | flags = crypt->ops->get_flags(crypt->priv); |
6367 | 6364 | ||
@@ -6453,11 +6450,8 @@ static int ipw_wx_get_auth(struct net_device *dev, | |||
6453 | 6450 | ||
6454 | case IW_AUTH_TKIP_COUNTERMEASURES: | 6451 | case IW_AUTH_TKIP_COUNTERMEASURES: |
6455 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; | 6452 | crypt = priv->ieee->crypt[priv->ieee->tx_keyidx]; |
6456 | if (!crypt || !crypt->ops->get_flags) { | 6453 | if (!crypt || !crypt->ops->get_flags) |
6457 | IPW_WARNING("Can't get TKIP countermeasures: " | ||
6458 | "crypt not set!\n"); | ||
6459 | break; | 6454 | break; |
6460 | } | ||
6461 | 6455 | ||
6462 | param->value = (crypt->ops->get_flags(crypt->priv) & | 6456 | param->value = (crypt->ops->get_flags(crypt->priv) & |
6463 | IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) ? 1 : 0; | 6457 | IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) ? 1 : 0; |