Search Linux Wireless

Re: [RFC 3/5] nl80211/cfg80211: adding intermediate scan result event.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-09-22 at 09:41 +0300, Victor Goldenshtein wrote: 
> On 21/09/2011 19:38, Johannes Berg wrote:
> 
> >> This could be a little bit problematic, since we need the
> >> rdev->event_work, for the queue_work(), and wdev->event_list to save a
> >> copy of the BSS, or just the mac which will be used to fetch the BSS
> >> before the transmission (still not sure about it ..), and it seems like
> >> these two can be obtained form sdata->dev, so it's look like that we
> >> need this function and it should be in ieee80211_scan_rx.
> >
> > It is not an issue to send a genl message with GFP_ATOMIC.
> >
> 
> 
> The GFP_ATOMIC is for the event info allocation, and not for the genl 
> message, it have to be "GFP_ATOMIC" otherwise we will get kernel warnings.

I guess what Johannes meant is that you can send the genl message in
atomic context, so you don't need to save stuff and use the event work.
You can just send it immediately when cfg80211_inform_bss() and
cfg80211_inform_bss_frame() are called.

I'm not really sure you can send genl messages while atomic, I think I
had problems with that earlier, but you can try. ;)

-- 
Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux