Skip to content

Commit e9b5197

Browse files
fengming-yekrish2718
authored andcommitted
[nrf fromtree] modules: hostap: fix DPP build error
Fix DPP build error when HOSTAPD enabled and DPP disabled. Guard hapd_dpp_dispatch in both CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP and CONFIG_WIFI_NM_HOSTAPD_AP. Signed-off-by: Fengming Ye <[email protected]> (cherry picked from commit 9e8b7bd)
1 parent eb877b9 commit e9b5197

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/hostap/src/supp_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,6 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
20572057
os_free(cmd);
20582058
return 0;
20592059
}
2060-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
20612060

20622061
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
20632062
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
@@ -2091,3 +2090,4 @@ int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
20912090
return 0;
20922091
}
20932092
#endif /* CONFIG_WIFI_NM_HOSTAPD_AP */
2093+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */

modules/hostap/src/supp_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
278278
* @return 0 for OK; -1 for ERROR
279279
*/
280280
int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
281-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
282281

283282
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
284283
/**
@@ -290,4 +289,5 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
290289
*/
291290
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
292291
#endif /* CONFIG_WIFI_NM_HOSTAPD_AP */
292+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
293293
#endif /* ZEPHYR_SUPP_MGMT_H */

0 commit comments

Comments
 (0)