wpa_gui: Remove unneeded wpa_ctrl_request() msg_cb
This commit is contained in:
parent
0ebdf62735
commit
a4652ce64c
1 changed files with 1 additions and 10 deletions
|
@ -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 WpaGui::ctrlRequest(const char *cmd, char *buf, size_t *buflen)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (ctrl_conn == NULL)
|
if (ctrl_conn == NULL)
|
||||||
return -3;
|
return -3;
|
||||||
ret = wpa_ctrl_request(ctrl_conn, cmd, strlen(cmd), buf, buflen,
|
ret = wpa_ctrl_request(ctrl_conn, cmd, strlen(cmd), buf, buflen, NULL);
|
||||||
wpa_gui_msg_cb);
|
|
||||||
if (ret == -2)
|
if (ret == -2)
|
||||||
printf("'%s' command timed out.\n", cmd);
|
printf("'%s' command timed out.\n", cmd);
|
||||||
else if (ret < 0)
|
else if (ret < 0)
|
||||||
|
|
Loading…
Reference in a new issue