nl80211: Remove send_and_recv_msgs_global() wrapper
There was only a single user for this and calling send_and_recv() directly is as simple as using this wrapper. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
bdf5ccb264
commit
1033315fbe
1 changed files with 1 additions and 11 deletions
|
@ -324,16 +324,6 @@ static int send_and_recv(struct nl80211_global *global,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int send_and_recv_msgs_global(struct nl80211_global *global,
|
|
||||||
struct nl_msg *msg,
|
|
||||||
int (*valid_handler)(struct nl_msg *, void *),
|
|
||||||
void *valid_data)
|
|
||||||
{
|
|
||||||
return send_and_recv(global, global->nl, msg, valid_handler,
|
|
||||||
valid_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int send_and_recv_msgs(struct wpa_driver_nl80211_data *drv,
|
int send_and_recv_msgs(struct wpa_driver_nl80211_data *drv,
|
||||||
struct nl_msg *msg,
|
struct nl_msg *msg,
|
||||||
int (*valid_handler)(struct nl_msg *, void *),
|
int (*valid_handler)(struct nl_msg *, void *),
|
||||||
|
@ -398,7 +388,7 @@ static int nl_get_multicast_id(struct nl80211_global *global,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = send_and_recv_msgs_global(global, msg, family_handler, &res);
|
ret = send_and_recv(global, global->nl, msg, family_handler, &res);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
ret = res.id;
|
ret = res.id;
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue