On Thu, Apr 13, 2006 at 02:19:26PM +0200, Johannes Berg wrote: > But the question is rather -- should we block the program inside the > kernel and only return from "get scan" after the scan is actually done, > rather than returning "we can't give you anything now, try later". We > could do that too, but then the program would be blocked inside the > kernel without any chance of saying "bah, this takes too long, I'll > ignore it".
Please don't. That could be blocking an ioctl call for couple of seconds and would be quite horrible for single threaded programs. It is possible to wait for scan completion events, but what if some other program were to request a new scan between the completion event and the attempt to read the previous scan results.. -- Jouni Malinen PGP id EFC895FA - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html