]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Fix global control interface for STA/STA-FIRST/STA-NEXT
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 24 Jan 2017 23:12:54 +0000 (23:12 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 23:54:22 +0000 (01:54 +0200)
commitf2bc344808a82485d2e68605884c300178b10464
tree2117637a1b00b0a27a42070419dc0f2d9dfcab7e
parentcc3dae85bd694506cdea66ae532d452fb8716297
wpa_supplicant: Fix global control interface for STA/STA-FIRST/STA-NEXT

update_stations(ctrl_conn) is stuck in never-ending loop:

sendto(3, "STA-FIRST", 9, 0, NULL, 0)   = 9
pselect6(4, [3], NULL, NULL, {10, 0}, NULL) = 1 (in [3], left {9, 999995000})
recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24
pselect6(4, [3], NULL, NULL, {10, 0}, NULL) = 1 (in [3], left {9, 999995833})
recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24
pselect6(4, [3], NULL, NULL, {10, 0}, NULL) = 1 (in [3], left {9, 999995000})
recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24

Direct STA, STA-FIRST, and STA-NEXT commands from the global control
interface to a per-interface control interface to avoid this.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/ctrl_iface.c