* mac80211: ieee80211_ops.bss_info_changed question
@ 2008-04-04 0:02 Chatre, Reinette
2008-04-04 14:43 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Chatre, Reinette @ 2008-04-04 0:02 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
Johannes,
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?
Thanks
Reinette
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mac80211: ieee80211_ops.bss_info_changed question
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
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-04-04 14:43 UTC (permalink / raw)
To: Chatre, Reinette; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
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.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: mac80211: ieee80211_ops.bss_info_changed question
2008-04-04 14:43 ` Johannes Berg
@ 2008-04-04 23:11 ` Chatre, Reinette
2008-04-05 7:43 ` Tomas Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Chatre, Reinette @ 2008-04-04 23:11 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
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.
Reinette
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mac80211: ieee80211_ops.bss_info_changed question
2008-04-04 23:11 ` Chatre, Reinette
@ 2008-04-05 7:43 ` Tomas Winkler
0 siblings, 0 replies; 4+ messages in thread
From: Tomas Winkler @ 2008-04-05 7:43 UTC (permalink / raw)
To: Chatre, Reinette; +Cc: Johannes Berg, linux-wireless
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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-05 7:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox