From: Reinette Chatre Date: Wed, 23 Jan 2008 18:15:17 +0000 (-0800) Subject: iwl4965: fix return code indicating one interface is supported X-Git-Tag: v2.6.25-rc1~1089^2~163 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=75849d287ce5d75f3c79f153eaf74759ae95511f;p=linux-2.6-omap-h63xx.git iwl4965: fix return code indicating one interface is supported 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 Cc: Tomas Carnecky Signed-off-by: John W. Linville Signed-off-by: David S. Miller --- diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index f9f387fff55..ac8967bc7c5 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c @@ -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);