drivers: wifi: nxp: Fix 11k build error

Fix build error when 11k is disabled.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2024-12-09 18:34:22 +08:00 committed by Benjamin Cabé
commit e34ad662eb

View file

@ -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