[PATCH, take 3] libertas: convert RSSI to a direct command

Johannes Berg johannes at sipsolutions.net
Thu Apr 10 11:47:21 EDT 2008


On Thu, 2008-04-10 at 12:43 -0300, Marcelo Tosatti wrote:
> On Tue, Apr 01, 2008 at 08:48:48AM +0200, Holger Schurig wrote:
> > > Won't this call block? You can't block in the get_wireless
> > > handler (it holds the rtnl lock). See wext_handle_ioctl.
> > 
> > Yes, this blocks.
> > 
> > So you mean that when I cannot get a current RSSI value at this 
> > time I have to re-use some old value?
> 
> All I mean is that get_wireless_stats should not schedule() because it
> holds the rtnl_lock. You get ugly hangs doing that.

Of course you can schedule with the rtnl held. It's a mutex, after all.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://lists.infradead.org/pipermail/libertas-dev/attachments/20080410/45aff093/attachment.bin 


More information about the libertas-dev mailing list