From e34ad662eb17490ff50f873bfcbc0cf4d7e70e10 Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Mon, 9 Dec 2024 18:34:22 +0800 Subject: [PATCH] drivers: wifi: nxp: Fix 11k build error Fix build error when 11k is disabled. Signed-off-by: Maochen Wang --- drivers/wifi/nxp/nxp_wifi_drv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/wifi/nxp/nxp_wifi_drv.c b/drivers/wifi/nxp/nxp_wifi_drv.c index 129deeedf36..5f6ce28ba2d 100644 --- a/drivers/wifi/nxp/nxp_wifi_drv.c +++ b/drivers/wifi/nxp/nxp_wifi_drv.c @@ -1195,6 +1195,7 @@ static void nxp_wifi_auto_connect(void) } #endif +#ifdef CONFIG_NXP_WIFI_11K static int nxp_wifi_11k_cfg(const struct device *dev, struct wifi_11k_params *params) { if (params->oper == WIFI_MGMT_GET) { @@ -1205,6 +1206,7 @@ static int nxp_wifi_11k_cfg(const struct device *dev, struct wifi_11k_params *pa return 0; } +#endif static int nxp_wifi_power_save(const struct device *dev, struct wifi_ps_params *params) { @@ -1793,7 +1795,9 @@ static const struct wifi_mgmt_ops nxp_wifi_sta_mgmt = { #if defined(CONFIG_NET_STATISTICS_WIFI) .get_stats = nxp_wifi_stats, #endif +#ifdef CONFIG_NXP_WIFI_11K .cfg_11k = nxp_wifi_11k_cfg, +#endif .set_power_save = nxp_wifi_power_save, .get_power_save_config = nxp_wifi_get_power_save, #ifdef CONFIG_NXP_WIFI_11AX_TWT