]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Remove unused function argument from is_drv_shared() ops
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Thu, 25 Apr 2024 10:15:24 +0000 (15:45 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 9 Aug 2024 06:56:51 +0000 (09:56 +0300)
The bss_ctx argument was never used and can be removed.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/hostapd.c
src/drivers/driver.h
src/drivers/driver_nl80211.c

index 0c3f1d7092f0a6cdddde3bf5b4823ea662a8c565..d46358bba46d6ca145fc0ba4357c895f2a2ce265 100644 (file)
@@ -3400,7 +3400,7 @@ static void hostapd_cleanup_driver(const struct wpa_driver_ops *driver,
                driver->hapd_deinit(drv_priv);
        } else if (hostapd_mld_is_first_bss(iface->bss[0]) &&
                   driver->is_drv_shared &&
-                  !driver->is_drv_shared(drv_priv, iface->bss[0])) {
+                  !driver->is_drv_shared(drv_priv)) {
                driver->hapd_deinit(drv_priv);
                hostapd_mld_interface_freed(iface->bss[0]);
        } else if (hostapd_if_link_remove(iface->bss[0],
index 616f011a89d4c234686924a12afe3bc141bc24c0..f7beed8c0a8205a5302b53849d5fe5bc84ac7bec 100644 (file)
@@ -5196,7 +5196,6 @@ struct wpa_driver_ops {
        /**
         * is_drv_shared - Check whether the driver interface is shared
         * @priv: Private driver interface data from init()
-        * @bss_ctx: BSS context for %WPA_IF_AP_BSS interfaces
         *
         * Checks whether the driver interface is being used by other partner
         * BSS(s) or not. This is used to decide whether the driver interface
@@ -5204,7 +5203,7 @@ struct wpa_driver_ops {
         *
         * Returns: true if it is being used or else false.
         */
-       bool (*is_drv_shared)(void *priv, void *bss_ctx);
+       bool (*is_drv_shared)(void *priv);
 
        /**
         * link_sta_remove - Remove a link STA from an MLD STA
index 5e0ee0022718522ec56c62cb22f2485c9c11e358..592e66fd68569533db2e416802e718da7b341a6b 100644 (file)
@@ -10797,7 +10797,7 @@ static int driver_nl80211_link_remove(void *priv, enum wpa_driver_if_type type,
 }
 
 
-static bool nl80211_is_drv_shared(void *priv, void *bss_ctx)
+static bool nl80211_is_drv_shared(void *priv)
 {
        struct i802_bss *bss = priv;
        struct wpa_driver_nl80211_data *drv = bss->drv;