mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
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
@ -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,
|
||||
struct nl_msg *msg,
|
||||
int (*valid_handler)(struct nl_msg *, void *),
|
||||
@ -398,7 +388,7 @@ static int nl_get_multicast_id(struct nl80211_global *global,
|
||||
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)
|
||||
ret = res.id;
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user