From: Johannes Berg <johannes@sipsolutions.net>
To: reinette chatre <reinette.chatre@intel.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
"Guy, Wey-Yi W" <wey-yi.w.guy@intel.com>
Subject: Re: [RFC/RFT] mac80211: turn off radio when idle
Date: Thu, 23 Apr 2009 19:17:49 +0200 [thread overview]
Message-ID: <1240507069.30082.242.camel@johannes.local> (raw)
In-Reply-To: <1240507096.27723.14.camel@rc-desk>
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
Hi Reinette,
> > This totally messes up iwlwifi: http://paste.pocoo.org/show/113789/
> >
> > You'll see:
> > [ 1455.006896] phy0: turning off radio - idle
> > ...
> > [ 1455.020180] phy0: turning on radio - scan
> > [ 1455.020202] ieee80211 phy0: U iwl_mac_config enter to channel 1 changed 0x1
> > [ 1455.031724] ieee80211 phy0: U iwl_mac_config leave - RF-KILL - waiting for uCode
> > [ 1455.031739] ieee80211 phy0: U iwl_mac_config leave
> > [ 1455.031752] ieee80211 phy0: U iwl_mac_hw_scan enter
> > [ 1455.031764] ieee80211 phy0: U iwl_mac_hw_scan leave - not ready or exit pending
> > [ 1455.031798] phy0: turning off radio - idle
> >
> > at that point, things get so confused that you can't even scan any more
> > because something isn't properly reporting to cfg80211 that the scan
> > ended (but wasn't successful.)
>
> This seems related to the discussion about a patch we tried to submit.
> See
> http://thread.gmane.org/gmane.linux.kernel.wireless.general/30196/focus=30280
Related, but a different situation. Also see the patch I sent to
iwlwifi. In the mail you quoted, mac80211 certainly handles an error if
it's returned directly, but if ->hw_scan() returns 0 (and only then) you
need to call the ieee80211_scan_completed() function at some point.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2009-04-23 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 0:22 [RFC/RFT] mac80211: turn off radio when idle Johannes Berg
2009-04-23 17:18 ` reinette chatre
2009-04-23 17:17 ` Johannes Berg [this message]
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=1240507069.30082.242.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=reinette.chatre@intel.com \
--cc=wey-yi.w.guy@intel.com \
/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