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

Holger Schurig hs4233 at mail.mn-solutions.de
Tue Apr 1 09:30:21 EDT 2008

On Tuesday 01 April 2008 09:43:55 Marc Pignat wrote:
> Hi all!
> On Tuesday 01 April 2008, Holger Schurig wrote:
> > > Won't this call block? You can't block in the get_wireless
> ...
> > Do you see a way around this?
> what do you think about that:
> * store RSSI with it's associated time (ktime or jiffies?)
> * when the RSSI is requested, send the request message to the
> wireless card (and don't wait for the response), and return
> the old RSSI if not too old, else return -ERESTARTSYS.
> The ioctl should be re-called when we return -ERESTARTSYS, (at
> least I hope so).

That's not possible. The wireless_stats aren't handled like the 
other wext IOCTLs, see network/wireless/wext.c, function 
iw_handler_get_iwstats(). The driver can only return NULL or a 
struct iw_statistics *, but not an -ERESTARTSYS.

More information about the libertas-dev mailing list