How do I increase the max buff size of the scan_result command?

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

 



Hi

There are about 200 APs in my environment.
This area is a factory, very large, with no walls.
Generally, when I scan, 140 ~ 160 scan is done.

In this situation I check the scan list through wpa_cli.
When I check with the scan_result command, the list is checked up to a maximum of 77.
When I checked it, it seemed that the buff size(reply_size) was limited to 4096.
In fact, if you reduce the reply_size to 128, only one list is printed.
https://w1.fi/cgit/hostap/tree/wpa_supplicant/ctrl_iface.c#n9808
char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
					 char *buf, size_t *resp_len)
{
	char *reply;
	const int reply_size = 4096;
	int reply_len;

I want to check all the scan lists with the scan_result command.
I modified it as follows, but the results of the scan_result command did not increase.
diff -uNr wpa_supplicant-2.7.ori/wpa_supplicant/ctrl_iface.c wpa_supplicant-2.7.change/wpa_supplicant/ctrl_iface.c
--- wpa_supplicant-2.7.ori/wpa_supplicant/ctrl_iface.c	2018-12-10 10:08:59.498290690 +0900
+++ wpa_supplicant-2.7.change/wpa_supplicant/ctrl_iface.c	2018-12-10 10:10:45.674290690 +0900
@@ -9805,7 +9805,7 @@
 					 char *buf, size_t *resp_len)
 {
 	char *reply;
-	const int reply_size = 4096;
+	const int reply_size = 65535;
 	int reply_len;

 	if (os_strncmp(buf, WPA_CTRL_RSP, os_strlen(WPA_CTRL_RSP)) == 0 ||

How do I view all the results of a scan with scan_result?
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux