* [PATCH] d80211: Fix errorcode in ieee80211_update_hw
@ 2006-12-09 22:09 Michael Buesch
0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2006-12-09 22:09 UTC (permalink / raw)
To: Jiri Benc, linville; +Cc: netdev
ieee80211_update_hw should return a proper error code
instead of hardcoded -1.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Index: wireless-dev/net/d80211/ieee80211.c
===================================================================
--- wireless-dev.orig/net/d80211/ieee80211.c 2006-12-07 17:25:19.000000000 +0100
+++ wireless-dev/net/d80211/ieee80211.c 2006-12-09 23:07:43.000000000 +0100
@@ -4644,7 +4644,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;
--
Greetings Michael.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-09 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 22:09 [PATCH] d80211: Fix errorcode in ieee80211_update_hw Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).