aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-07 15:28:00 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-07 15:28:00 (GMT)
commita4652ce64ce3aa4ecc2e79636b6c0d67bebae5e3 (patch)
treed21dc163863b82a6275552623329538f450d0f8b
parent0ebdf62735f183538674fe9f06f0b3940f34b654 (diff)
downloadhostap-a4652ce64ce3aa4ecc2e79636b6c0d67bebae5e3.zip
hostap-a4652ce64ce3aa4ecc2e79636b6c0d67bebae5e3.tar.gz
hostap-a4652ce64ce3aa4ecc2e79636b6c0d67bebae5e3.tar.bz2
wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb
-rw-r--r--wpa_supplicant/wpa_gui-qt4/wpagui.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
index d2a2b5a..241e508 100644
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
@@ -443,22 +443,13 @@ int WpaGui::openCtrlConnection(const char *ifname)
}
-static void wpa_gui_msg_cb(char *msg, size_t)
-{
- /* This should not happen anymore since two control connections are
- * used. */
- printf("missed message: %s\n", msg);
-}
-
-
int WpaGui::ctrlRequest(const char *cmd, char *buf, size_t *buflen)
{
int ret;
if (ctrl_conn == NULL)
return -3;
- ret = wpa_ctrl_request(ctrl_conn, cmd, strlen(cmd), buf, buflen,
- wpa_gui_msg_cb);
+ ret = wpa_ctrl_request(ctrl_conn, cmd, strlen(cmd), buf, buflen, NULL);
if (ret == -2)
printf("'%s' command timed out.\n", cmd);
else if (ret < 0)