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