wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb
authorJouni Malinen <j@w1.fi>
Sun, 7 Mar 2010 15:28:00 +0000 (17:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Mar 2010 15:28:00 +0000 (17:28 +0200)
wpa_supplicant/wpa_gui-qt4/wpagui.cpp

index d2a2b5a..241e508 100644 (file)
@@ -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)