From: Michael Buesch <[EMAIL PROTECTED]>
ieee80211_update_hw should return a proper error code
instead of hardcoded -1.
Signed-off-by: Michael Buesch <[EMAIL PROTECTED]>
Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>
---
net/d80211/ieee80211.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
cca5b9bc1f21e1d9a616e0f8e2fea04140a51a07
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index 8d543f2..9e7e1b3 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4635,7 +4635,7 @@ int ieee80211_update_hw(struct ieee80211
if (!hw->modes || !hw->modes->channels || !hw->modes->rates ||
!hw->modes->num_channels || !hw->modes->num_rates)
- return -1;
+ return -EINVAL;
ieee80211_precalc_modes(local);
local->hw.conf.phymode = hw->modes[0].mode;
--
1.3.0
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html