iwl4965: fix return code indicating one interface is supported
authorReinette Chatre <reinette.chatre@intel.com>
Wed, 23 Jan 2008 18:15:17 +0000 (10:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:40 +0000 (19:26 -0800)
This is a fix to patch "iwlwifi: fix iwl_mac_add_interface handler".
In that patch the return code was corrected for iwl3945, but not for
iwl4965.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Cc: Tomas Carnecky <tom@dbservice.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/iwlwifi/iwl4965-base.c

index f9f387fff55c736aeca0853cd9a4f9ec655e7f1c..ac8967bc7c5947dfe0722212612b45978ff8bff3 100644 (file)
@@ -7448,7 +7448,7 @@ static int iwl4965_mac_add_interface(struct ieee80211_hw *hw,
 
        if (priv->vif) {
                IWL_DEBUG_MAC80211("leave - vif != NULL\n");
-               return 0;
+               return -EOPNOTSUPP;
        }
 
        spin_lock_irqsave(&priv->lock, flags);