From: Jouni Malinen Date: Sun, 7 Mar 2010 15:28:00 +0000 (+0200) Subject: wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb X-Git-Tag: hostap_0_7_2~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4652ce64ce3aa4ecc2e79636b6c0d67bebae5e3;p=thirdparty%2Fhostap.git wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb --- diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp index d2a2b5a1c..241e5089e 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)