iwl4965: fix return code indicating one interface is supported

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 1, 2008 - 3:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=75849d...
Commit:     75849d287ce5d75f3c79f153eaf74759ae95511f
Parent:     d986bcd1ca76e033543a97f8a3ff806530b1c805
Author:     Reinette Chatre <reinette.chatre@intel.com>
AuthorDate: Wed Jan 23 10:15:17 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jan 31 19:26:40 2008 -0800

    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 <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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index f9f387f..ac8967b 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iwl4965: fix return code indicating one interface is supported, Linux Kernel Mailing ..., (Fri Feb 1, 3:59 am)