]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Remove send_and_recv_msgs()
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 18 Dec 2023 23:09:22 +0000 (01:09 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Dec 2023 23:09:22 +0000 (01:09 +0200)
This helper is of no real use anymore, so get rid of it. This completes
send_and_recv*() cleanup. What remains is the most generic
send_and_recv() and two wrappers for it to cover the most common simpler
cases.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211.h

index c4448d66c4c645118553f1d19648c2a6b5783188..dbe092adfbad7195462e3e288b5323d8651e249f 100644 (file)
@@ -6169,8 +6169,8 @@ static int nl80211_tx_control_port(void *priv, const u8 *dest,
 
        os_memset(&ext_arg, 0, sizeof(struct nl80211_ack_ext_arg));
        ext_arg.ext_data = &cookie;
-       ret = send_and_recv_msgs(bss->drv, msg, NULL, NULL,
-                                ack_handler_cookie, &ext_arg, NULL);
+       ret = send_and_recv(bss->drv->global, bss->drv->global->nl, msg,
+                           NULL, NULL, ack_handler_cookie, &ext_arg, NULL);
        if (ret) {
                wpa_printf(MSG_DEBUG,
                           "nl80211: tx_control_port failed: ret=%d (%s)",
index ee736d17aee2ad7d1ec045b9567f2c81ef595ee3..2b2bc9b11792b67b0c8b3b88d82c3e83e08e971f 100644 (file)
@@ -305,20 +305,6 @@ send_and_recv_resp(struct wpa_driver_nl80211_data *drv,
                             valid_handler, valid_data, NULL, NULL, NULL);
 }
 
-static inline int
-send_and_recv_msgs(struct wpa_driver_nl80211_data *drv,
-                  struct nl_msg *msg,
-                  int (*valid_handler)(struct nl_msg *, void *),
-                  void *valid_data,
-                  int (*ack_handler_custom)(struct nl_msg *, void *),
-                  void *ack_data,
-                  struct nl80211_err_info *err_info)
-{
-       return send_and_recv(drv->global, drv->global->nl, msg,
-                            valid_handler, valid_data,
-                            ack_handler_custom, ack_data, err_info);
-}
-
 int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
                         const char *ifname, enum nl80211_iftype iftype,
                         const u8 *addr, int wds,