]> err.no Git - linux-2.6/commitdiff
Removed warning about TKIP not being configured if countermeasures are
authorJames Ketrenos <jketreno@linux.intel.com>
Thu, 13 Oct 2005 09:26:48 +0000 (09:26 +0000)
committerJames Ketrenos <jketreno@linux.intel.com>
Mon, 7 Nov 2005 23:52:02 +0000 (17:52 -0600)
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>
drivers/net/wireless/ipw2100.c
drivers/net/wireless/ipw2200.c

index ed4f1a5e6b0a68e771edef986c1466931e8375d7..76841cb8301b764a267526ec081d8c95d8df85ac 100644 (file)
@@ -5866,11 +5866,8 @@ static int ipw2100_wpa_set_param(struct net_device *dev, u8 name, u32 value)
 
        case IPW2100_PARAM_TKIP_COUNTERMEASURES:
                crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];
-               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) {
-                       IPW_DEBUG_WARNING("Can't set TKIP countermeasures: "
-                                         "crypt not set!\n");
+               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags)
                        break;
-               }
 
                flags = crypt->ops->get_flags(crypt->priv);
 
@@ -7935,11 +7932,8 @@ static int ipw2100_wx_set_auth(struct net_device *dev,
 
        case IW_AUTH_TKIP_COUNTERMEASURES:
                crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];
-               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) {
-                       IPW_DEBUG_WARNING("Can't set TKIP countermeasures: "
-                                         "crypt not set!\n");
+               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags)
                        break;
-               }
 
                flags = crypt->ops->get_flags(crypt->priv);
 
index 894192964c0b92c54088ec9fd1c0d6e323a9d368..750e43e9310aa0405eebfea1c278884d8129045b 100644 (file)
@@ -6357,11 +6357,8 @@ static int ipw_wx_set_auth(struct net_device *dev,
 
        case IW_AUTH_TKIP_COUNTERMEASURES:
                crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];
-               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) {
-                       IPW_WARNING("Can't set TKIP countermeasures: "
-                                   "crypt not set!\n");
+               if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags)
                        break;
-               }
 
                flags = crypt->ops->get_flags(crypt->priv);
 
@@ -6453,11 +6450,8 @@ static int ipw_wx_get_auth(struct net_device *dev,
 
        case IW_AUTH_TKIP_COUNTERMEASURES:
                crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];
-               if (!crypt || !crypt->ops->get_flags) {
-                       IPW_WARNING("Can't get TKIP countermeasures: "
-                                   "crypt not set!\n");
+               if (!crypt || !crypt->ops->get_flags)
                        break;
-               }
 
                param->value = (crypt->ops->get_flags(crypt->priv) &
                                IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) ? 1 : 0;