[PATCH 12/16] PR: Add preferred_freq parameter support in PR_PASN_START control interface
Peddolla Harshavardhan Reddy
peddolla.reddy at oss.qualcomm.com
Sun Jul 12 23:30:00 PDT 2026
Currently wpas_ctrl_iface_pr_pasn_start() does not parse the
preferred_freq parameter from the control interface command.
Add parsing of the preferred_freq= token and store it in the
params struct alongside the existing frequency parameters.
Signed-off-by: Peddolla Harshavardhan Reddy <peddolla.reddy at oss.qualcomm.com>
---
wpa_supplicant/ctrl_iface.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index c2c0cb647..29418a568 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -11590,6 +11590,8 @@ static int wpas_ctrl_iface_pr_pasn_start(struct wpa_supplicant *wpa_s,
params.auth_mode = atoi(token + 5);
} else if (os_strncmp(token, "forced_pr_freq=", 15) == 0) {
params.forced_pr_freq = atoi(token + 15);
+ } else if (os_strncmp(token, "preferred_freq=", 15) == 0) {
+ params.preferred_freq = atoi(token + 15);
} else if (os_strncmp(token, "num_bursts_exp=", 15) == 0) {
params.num_bursts_exp = atoi(token + 15);
} else if (os_strncmp(token, "ftmr_retries=", 13) == 0) {
--
2.34.1
More information about the Hostap
mailing list