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. -- 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