]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_cli.c
wpa_cli: Send ALL_STA command to the correct interface
authorEliad Peller <eliad@wizery.com>
Thu, 10 Dec 2015 10:56:06 +0000 (12:56 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 17 Dec 2015 22:24:52 +0000 (00:24 +0200)
commit685ea2f60c2fc09aac83733fcb8a7c8505ebaca4
tree269252265660034a90acfcf50fefeb1571698042
parent0e6a2cf2829384e9864045fca2e4243cf69c6569
wpa_cli: Send ALL_STA command to the correct interface

wpa_ctrl_command_sta(), called by the "ALL_STA" handler, didn't consider
ifname_prefix, resulting in various commands being sent to the global
control interface, rather than the specified interface when IFNAME=
prefix was used.

This in turn caused the unexpected "UNKNOWN COMMAND" result be
considered as valid station, resulting in infinite loop while trying to
get all stations.

Fix it by considering ifname_prefix, similarly to _wpa_ctrl_command().

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
wpa_supplicant/wpa_cli.c