libiwinfo: ignore log messages from wpa_supplicant while scanning
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 9 Jun 2013 14:39:09 +0000 (14:39 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 9 Jun 2013 14:39:09 +0000 (14:39 +0000)
commit62b32c53435deabb77d850b7ac492f7d25c3c830
treeabe9c892feb4831e876275e63b2ae25cd5c868df
parent4992b348531f88613444868c6a5bb491f13dbf5e
libiwinfo: ignore log messages from wpa_supplicant while scanning

wpa_supplicant may send log and event messages intermixed with the
expected scan results.  This makes "iwinfo wlan0 scan" and LuCI
"site survey" display nothing when many AP's are around.

Eliminate the CTRL-EVENT-BSS-ADDED events, interspersed log messages,
lines with unexpected format.  Increase timeout to handle the max
number of channels (2.4, 3.6, 4.9, 5 GHz).  Insure receive buffer is
null-terminated.

Signed-off-by: Jean-Pierre Tosoni <jp.tosoni@acksys.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36888 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/utils/iwinfo/src/iwinfo_nl80211.c