From: reinette chatre <reinette.chatre@intel.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] mac80211: remove WARN_ON() from ieee80211_hw_config
Date: Thu, 04 Dec 2008 14:24:22 -0800 [thread overview]
Message-ID: <1228429462.28477.77.camel@rc-desk> (raw)
In-Reply-To: <1228427824.5692.52.camel@johannes.berg>
On Thu, 2008-12-04 at 13:57 -0800, Johannes Berg wrote:
> On Thu, 2008-12-04 at 13:25 -0800, Reinette Chatre wrote:
> > ieee80211_hw_config can return an error when the hardware
> > has rfkill enabled. A WARN_ON() is too harsh for this
> > failure as it is a valid scenario. Only comment this warning
> > as we would like to have it back when rfkill is integrated into
> > mac80211.
> >
> > Also reintroduce number of printks that will happen in this case.
> >
> > This patch essentially reverts patch:
> > 5f0387fc3337ca26f0745f945f550f0c3734960f
> > "mac80211: clean up ieee80211_hw_config errors"
> >
> > Things not reverted is the reintroduction of a comment
> > and debug statement.
> >
> > Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
> > ---
> > There are several places where ieee80211_hw_config's return code is not
> > checked. I did not change those as it appears to be intended considering
> > that the patch being reverted had nothing to do with them not using the
> > return code.
> >
> > It may also be that in this patch only the second hunk be necessary. Please
> > provide feedback in this regard.
>
> I suppose the probability of the beacon interval changing is rather low,
> but should we propagate the error in that case rather than just using
> -EINVAL?
I do not understand. By returning -EINVAL the error is propagated up to
nl80211 from where the call came.
>
> The scanning hunks I don't really care about, though it does seem a
> little pointless to print something when changing channel fails, that
> must be one of the most obvious failure modes and also rather unlikely.
> Also, that might actually trigger with iwlwifi too in which case every
> scan would log it, and there can be lots of scans with NM over time.
I will remove these hunks.
Thank you
Reinette
next prev parent reply other threads:[~2008-12-04 22:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 21:25 [RFC] mac80211: remove WARN_ON() from ieee80211_hw_config Reinette Chatre
2008-12-04 21:57 ` Johannes Berg
2008-12-04 22:24 ` reinette chatre [this message]
2008-12-04 22:29 ` Johannes Berg
2008-12-04 22:40 ` reinette chatre
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=1228429462.28477.77.camel@rc-desk \
--to=reinette.chatre@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@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