Do not re-open Android control sockets
authorNeelansh Mittal <neelansh@qti.qualcomm.com>
Tue, 25 Nov 2014 10:11:28 +0000 (15:41 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 25 Nov 2014 15:16:44 +0000 (17:16 +0200)
commit3a7414b6a65403ca1b857aa8950a384adaec5f13
tree1ef2560318e8ed6dcd3066a52d5c9cf470156b23
parent378dec5af962db4ef9bf2b18f11dc98f7aab45b9
Do not re-open Android control sockets

On Android, the control socket being used may be the socket that is
created when wpa_supplicant is started as a /init.*.rc service. Such a
socket is maintained as a key-value pair in Android's environment.
Closing this control socket would leave wpa_supplicant in a bad state.
When wpa_supplicant re-opens the ctrl_iface socket, it will query the
Android's environment, and will be returned with the same socket
descriptor that has already been closed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface_unix.c