Skip to content

Commit 2e42163

Browse files
fengming-yekrish2718
authored andcommitted
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 cb08802 commit 2e42163

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

modules/hostap/src/supp_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,6 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
20612061
os_free(cmd);
20622062
return 0;
20632063
}
2064-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
20652064

20662065
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
20672066
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)

modules/hostap/src/supp_api.h

Lines changed: 0 additions & 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
/**

0 commit comments

Comments
 (0)