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:
parent
3974260fe5
commit
e34ad662eb
1 changed files with 4 additions and 0 deletions
|
@ -1195,6 +1195,7 @@ static void nxp_wifi_auto_connect(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NXP_WIFI_11K
|
||||||
static int nxp_wifi_11k_cfg(const struct device *dev, struct wifi_11k_params *params)
|
static int nxp_wifi_11k_cfg(const struct device *dev, struct wifi_11k_params *params)
|
||||||
{
|
{
|
||||||
if (params->oper == WIFI_MGMT_GET) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int nxp_wifi_power_save(const struct device *dev, struct wifi_ps_params *params)
|
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)
|
#if defined(CONFIG_NET_STATISTICS_WIFI)
|
||||||
.get_stats = nxp_wifi_stats,
|
.get_stats = nxp_wifi_stats,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_NXP_WIFI_11K
|
||||||
.cfg_11k = nxp_wifi_11k_cfg,
|
.cfg_11k = nxp_wifi_11k_cfg,
|
||||||
|
#endif
|
||||||
.set_power_save = nxp_wifi_power_save,
|
.set_power_save = nxp_wifi_power_save,
|
||||||
.get_power_save_config = nxp_wifi_get_power_save,
|
.get_power_save_config = nxp_wifi_get_power_save,
|
||||||
#ifdef CONFIG_NXP_WIFI_11AX_TWT
|
#ifdef CONFIG_NXP_WIFI_11AX_TWT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue