]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix compilation error when CONFIG_DRIVER_NL80211_BRCM is enabled
authorSunil Ravi <sunilravi@google.com>
Wed, 8 Jan 2025 18:49:27 +0000 (18:49 +0000)
committerJouni Malinen <j@w1.fi>
Thu, 9 Jan 2025 21:23:40 +0000 (23:23 +0200)
wpa_driver_do_broadcom_acs() does not use the bss variable, so it should
not have been converted from nl80211_drv_msg() to nl80211_msg_bss().
Revert that part of the earlier changes to fix compilation.

Fixes: e3fe940ac2ce ("nl80211: Use nl80211_bss_msg() helper wherever BSS is accessible")
Signed-off-by: Sunil Ravi <sunilravi@google.com>
src/drivers/driver_nl80211.c

index c139cfef215832c1d2f75b674887ba5467f3dffe..14d69206dec09503cf5ad0bc1ce5c06b2bffe044 100644 (file)
@@ -14011,7 +14011,7 @@ static int wpa_driver_do_broadcom_acs(struct wpa_driver_nl80211_data *drv,
        wpa_printf(MSG_DEBUG, "%s: freq_list_len=%d",
                   __func__, freq_list_len);
 
-       msg = nl80211_bss_msg(bss, 0, NL80211_CMD_VENDOR);
+       msg = nl80211_drv_msg(drv, 0, NL80211_CMD_VENDOR);
        if (!msg ||
            nla_put_u32(msg, NL80211_ATTR_VENDOR_ID, OUI_BRCM) ||
            nla_put_u32(msg, NL80211_ATTR_VENDOR_SUBCMD,