wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb

This commit is contained in:
Jouni Malinen 2010-03-07 17:28:00 +02:00
parent 0ebdf62735
commit a4652ce64c

View 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)