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-Url: https://git.stricted.de/?a=commitdiff_plain;h=75849d287ce5d75f3c79f153eaf74759ae95511f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 f9f387fff55c..ac8967bc7c59 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);