From: "Tomas Winkler" <tomasw@gmail.com>
To: "Chatre, Reinette" <reinette.chatre@intel.com>
Cc: "Johannes Berg" <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: Re: mac80211: ieee80211_ops.bss_info_changed question
Date: Sat, 5 Apr 2008 10:43:42 +0300 [thread overview]
Message-ID: <1ba2fa240804050043v247e1485x7a8af55e55cc40b2@mail.gmail.com> (raw)
In-Reply-To: <D936D925018D154694D8A362EEB08920041CCC73@orsmsx416.amr.corp.intel.com>
On Sat, Apr 5, 2008 at 2:11 AM, Chatre, Reinette
<reinette.chatre@intel.com> wrote:
>
> On Friday, April 04, 2008 7:43 AM, Johannes Berg wrote:
>
> > Reinette,
> >
> >> In the comments about bss_info_changed it is said that the callback
> >> has to be atomic. I was looking at it and could only find that it is
> >> called either from the workqueue or an ioctl. It thus seems that we
> >> may be able to sleep in there. I likely missed the spot where it
> >> needs to be atomic ... could you please direct me to it?
> >
> > I think you may be right, I can't find any spots either. I was likely
> > mislead when writing that by the fact that much of the code in
> > ieee80211_sta.c uses GFP_ATOMIC while it actually runs from a
> > workqueue, which is actually confusing me still.
>
> My mistake ... it can be called from tasklet during scanning
> (ieee80211_sta_rx_scan). The comment that requires it to be atomic is
> correct.
>
Haven't look at the code but IMHO this function should not be called
from scanning, Only beacons from
connected AP should affect the driver behavior. These beacons are
received even without scanning.
Tomas
>
> Reinette
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2008-04-05 7:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 0:02 mac80211: ieee80211_ops.bss_info_changed question Chatre, Reinette
2008-04-04 14:43 ` Johannes Berg
2008-04-04 23:11 ` Chatre, Reinette
2008-04-05 7:43 ` Tomas Winkler [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=1ba2fa240804050043v247e1485x7a8af55e55cc40b2@mail.gmail.com \
--to=tomasw@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=reinette.chatre@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