From: Shubham Joshi Date: Tue, 1 Jul 2025 07:03:16 +0000 (+0530) Subject: P2P2: Enable some testing parameters without CONFIG_TESTING_OPTIONS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33fb6c738bc43e15fd15b8b8dc1f210c11031b65;p=thirdparty%2Fhostap.git P2P2: Enable some testing parameters without CONFIG_TESTING_OPTIONS These are needed for testing production devices, so do not require CONFIG_TESTING_OPTIONS in the build. Signed-off-by: Shubham Joshi --- diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 630d3e1cc..9748d598a 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -4962,8 +4962,6 @@ void p2p_set_managed_oper(struct p2p_data *p2p, int enabled) } -#ifdef CONFIG_TESTING_OPTIONS - void p2p_set_bootstrapmethods(struct p2p_data *p2p, int bootstrap_methods) { p2p_dbg(p2p, "Bootstraping methods: 0x%x", bootstrap_methods); @@ -5027,8 +5025,6 @@ void p2p_set_invitation_op_freq(struct p2p_data *p2p, int freq) p2p->cfg->inv_op_channel = channel; } -#endif /* CONFIG_TESTING_OPTIONS */ - int p2p_config_get_random_social(struct p2p_config *p2p, u8 *op_class, u8 *op_channel, diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h index 1d3545442..933c76ec5 100644 --- a/src/p2p/p2p.h +++ b/src/p2p/p2p.h @@ -741,7 +741,6 @@ struct p2p_config { */ bool chan_switch_req_enable; -#ifdef CONFIG_TESTING_OPTIONS /** * Operating class for own operational channel in Invitation Response */ @@ -751,7 +750,6 @@ struct p2p_config { * inv_op_channel - Own operational channel in Invitation Response */ u8 inv_op_channel; -#endif /* CONFIG_TESTING_OPTIONS */ /** * cb_ctx - Context to use with callback functions diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index c350981e8..229595d36 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -7843,7 +7843,6 @@ static int p2p_ctrl_set(struct wpa_supplicant *wpa_s, char *cmd) return 0; } -#ifdef CONFIG_TESTING_OPTIONS if (os_strcmp(cmd, "supported_bootstrapmethods") == 0) { p2p_set_bootstrapmethods(wpa_s->global->p2p, atoi(param)); return 0; @@ -7878,7 +7877,6 @@ static int p2p_ctrl_set(struct wpa_supplicant *wpa_s, char *cmd) p2p_set_invitation_op_freq(wpa_s->global->p2p, atoi(param)); return 0; } -#endif /* CONFIG_TESTING_OPTIONS */ wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown P2P_SET field value '%s'", cmd);