summaryrefslogtreecommitdiff
path: root/src/common/wpa_ctrl.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2015-09-23 21:21:49 +0530
committerJouni Malinen <j@w1.fi>2015-09-24 13:10:10 +0300
commitc9cfa6a9af47459ba65ff9905c47932a0119adf0 (patch)
tree0e00501e38b076ec2f6517e6cf2c568b121dc00e /src/common/wpa_ctrl.c
parent28ffd21c0749413925c0f31d87a41d70a215d255 (diff)
downloadhostap-c9cfa6a9af47459ba65ff9905c47932a0119adf0.tar.gz
Android: Avoid same per-iface and global ctrl socket
Android platform assigns the same socket id if the socket identifier in conf->ctrl_interface and global->params.ctrl_interface (parameter for android_get_control_socket) point to the same Android specific control socket. This ends up having two eloop socket handlers registered for the same file descriptor and thus, two attempt to receive and process each command. This can result in unexpected failure, e.g., the prefix IFNAME= for any command is valid for global socket handler, but results in UNKNOWN COMMAND response from the per-interface ctrl socket handler). Since it might be possible to end up with this type of invalid configuration in OTA upgrade, compare the socket identifiers and do not open the ctrl socket on the respective interface if both point to same. This allows the Wi-Fi framework to use the global control interface. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common/wpa_ctrl.c')
0 files changed, 0 insertions, 0 deletions