From: Michael Buesch <mb@bu3sch.de>
To: Jiri Benc <jbenc@suse.cz>, linville@tuxdriver.com
Cc: netdev@vger.kernel.org
Subject: [PATCH] d80211: Fix errorcode in ieee80211_update_hw
Date: Sat, 9 Dec 2006 23:09:43 +0100 [thread overview]
Message-ID: <200612092309.44166.mb@bu3sch.de> (raw)
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.
reply other threads:[~2006-12-09 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200612092309.44166.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).