From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:52197 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129Ab1IVHyd (ORCPT ); Thu, 22 Sep 2011 03:54:33 -0400 Subject: Re: [RFC 3/5] nl80211/cfg80211: adding intermediate scan result event. From: Johannes Berg To: victorg@ti.com Cc: Luciano Coelho , Jouni Malinen , linux-wireless@vger.kernel.org In-Reply-To: <4E7ADFFC.8080903@ti.com> References: <1315224151-16552-1-git-send-email-VictorG@ti.com> <1315224151-16552-4-git-send-email-VictorG@ti.com> <1315224512.4075.10.camel@jlt3.sipsolutions.net> <4E6736D9.3070804@ti.com> <1315387619.4002.3.camel@jlt3.sipsolutions.net> <4E686125.5050208@ti.com> <20110921153102.GA32374@jm.kir.nu> <1316619903.2157.546.camel@cumari> <4E7A109C.2010701@ti.com> <1316623133.3940.55.camel@jlt3.sipsolutions.net> <4E7AD88C.4020806@ti.com> <1316674177.2157.563.camel@cumari> <4E7ADFFC.8080903@ti.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 22 Sep 2011 09:54:28 +0200 Message-ID: <1316678068.3899.0.camel@jlt3.sipsolutions.net> (sfid-20110922_095436_972191_9E7A339C) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2011-09-22 at 10:13 +0300, Victor Goldenshtein wrote: > On 22/09/2011 09:49, Luciano Coelho wrote: > > > 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. ;) > > > > ;) > > Well I already did, and it's not working, when you"ll try to send genl > messages while atomic, you will get kernel warning regarding "sleeping > function called from invalid context". Where? We do that a lot, e.g. nl80211_send_mlme_event(). johannes