projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hostapd: ubus: add notification for BSS transition response
[openwrt/openwrt.git]
/
package
/
network
/
services
/
hostapd
/
patches
/
381-hostapd_cli_UNKNOWN-COMMAND.patch
1
--- a/hostapd/hostapd_cli.c
2
+++ b/hostapd/hostapd_cli.c
3
@@ -744,7 +744,7 @@ static int wpa_ctrl_command_sta(struct w
4
}
5
6
buf[len] = '\0';
7
- if (memcmp(buf, "FAIL", 4) == 0)
8
+ if (memcmp(buf, "FAIL", 4) == 0 || memcmp(buf, "UNKNOWN COMMAND", 15) == 0)
9
return -1;
10
if (print)
11
printf("%s", buf);