aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorMikael Kanstrup <mikael.kanstrup@sonymobile.com>2016-10-12 12:18:58 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-16 09:26:52 (GMT)
commit85bab32522967e4de6c940e5c886fc6031f42753 (patch)
treee751865465cd943aba1839182eec0d5aab98fefc /hostapd/hostapd_cli.c
parente054a4333e918bdc3ea52796694b7f60d31c7e09 (diff)
downloadhostap-85bab32522967e4de6c940e5c886fc6031f42753.zip
hostap-85bab32522967e4de6c940e5c886fc6031f42753.tar.gz
hostap-85bab32522967e4de6c940e5c886fc6031f42753.tar.bz2
hostapd_cli: Process events received following control iface commands
Events received as an immediate result of control interface commands end up on the control request message callback function instead of the registered read socket. This makes for example the station list used for complete functions for disassociate and deauthenticate out of sync. Process events in the message callback function too to ensure no events are missed. Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index d0d2a54..e567010 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -46,6 +46,7 @@ static void print_help(FILE *stream, const char *cmd);
static char ** list_cmd_list(void);
static void hostapd_cli_receive(int sock, void *eloop_ctx, void *sock_ctx);
static void update_stations(struct wpa_ctrl *ctrl);
+static void cli_event(const char *str);
static void usage(void)
@@ -181,6 +182,7 @@ static int hostapd_cli_reconnect(const char *ifname)
static void hostapd_cli_msg_cb(char *msg, size_t len)
{
+ cli_event(msg);
printf("%s\n", msg);
}