Search Linux Wireless

Re: Occasional truncated scan results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28.02.2012 16:24, Johannes Berg wrote:
On Tue, 2012-02-28 at 16:15 +0100, Ronald Wahl wrote:
My problem is not that the scan results are larger than 64k. The user
space is coded so that it provides a small buffer that is doubled in
size until the data fits into the buffer. But the kernel code does not
always detect the case that the buffer is almost full and just starts
skipping some data without notifying user space with E2BIG.

Ok. Yes, this could be fixed by making sure that a single BSS is
atomically written or not written -- probably simply by rolling back at
the end of the function if it didn't fit and returning an error etc. If
you wanted to work on this, I'd review&  accept the patch, but I have no
intention whatsoever to do this myself :-)

I'll first check if I can use the nl80211 interface in all cases. If not I'll probably come up with a patch. Thanks!

- ron

--
Ronald Wahl - ronald.wahl@xxxxxxxxxxx - Phone +49 375271349-0 Fax -99
Raritan Deutschland GmbH, Kornmarkt 7, 08056 Zwickau, Germany
USt-IdNr. DE813094160, Steuer-Nr. 227/117/01749
Amtsgericht Chemnitz HRB 23605
Geschäftsführung: Stuart Hopper, Burkhard Wessler
--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux