]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
iwlwifi: change WARN_ON to IWL_WARN in iwl_mac_add_interface
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 30 Sep 2010 14:27:35 +0000 (16:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:35:22 +0000 (13:35 -0400)
We can start restarting firmware or RF kill switch can be turned on
during call to iwl_mac_add_interface(). That are normal working
conditions, so do not print call trace, just print simple message
instead.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c

index 5c568933ce48f521e24ef868b70f6e7c74d47c7b..b7adcf87280dd1772e377bebe505640eb78556a2 100644 (file)
@@ -2003,7 +2003,8 @@ int iwl_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
        mutex_lock(&priv->mutex);
 
-       if (WARN_ON(!iwl_is_ready_rf(priv))) {
+       if (!iwl_is_ready_rf(priv)) {
+               IWL_WARN(priv, "Try to add interface when device not ready\n");
                err = -EINVAL;
                goto out;
        }