Skip to content

Commit e34ad66

Browse files
MaochenWang1kartben
authored andcommitted
drivers: wifi: nxp: Fix 11k build error
Fix build error when 11k is disabled. Signed-off-by: Maochen Wang <[email protected]>
1 parent 3974260 commit e34ad66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,7 @@ static void nxp_wifi_auto_connect(void)
11951195
}
11961196
#endif
11971197

1198+
#ifdef CONFIG_NXP_WIFI_11K
11981199
static int nxp_wifi_11k_cfg(const struct device *dev, struct wifi_11k_params *params)
11991200
{
12001201
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
12051206

12061207
return 0;
12071208
}
1209+
#endif
12081210

12091211
static int nxp_wifi_power_save(const struct device *dev, struct wifi_ps_params *params)
12101212
{
@@ -1793,7 +1795,9 @@ static const struct wifi_mgmt_ops nxp_wifi_sta_mgmt = {
17931795
#if defined(CONFIG_NET_STATISTICS_WIFI)
17941796
.get_stats = nxp_wifi_stats,
17951797
#endif
1798+
#ifdef CONFIG_NXP_WIFI_11K
17961799
.cfg_11k = nxp_wifi_11k_cfg,
1800+
#endif
17971801
.set_power_save = nxp_wifi_power_save,
17981802
.get_power_save_config = nxp_wifi_get_power_save,
17991803
#ifdef CONFIG_NXP_WIFI_11AX_TWT

0 commit comments

Comments
 (0)