From: Jintao Lin Date: Mon, 18 Dec 2023 18:11:46 +0000 (+0000) Subject: Fix P2P_GROUP_ADD handling of the persistent group parameters X-Git-Tag: hostap_2_11~558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae12c4b16d486763646a3d0eb10d429588b0690;p=thirdparty%2Fhostap.git Fix P2P_GROUP_ADD handling of the persistent group parameters The vht_center_freq2 parameter was in incorrect order in the call to wpas_p2p_group_add_persistent(). This would have dropped the value when adding a group based on a previously created persistent group ion the GO side and that would have resulted in a failure to start the GO. Fix the function call to use the correct order for the parameters. Signed-off-by: Jintao Lin --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 84828a7ae..b67b3b305 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -7123,8 +7123,8 @@ static int p2p_ctrl_group_add_persistent(struct wpa_supplicant *wpa_s, return -1; } - return wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, - vht_center_freq2, 0, ht40, vht, + return wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0, + vht_center_freq2, ht40, vht, vht_chwidth, he, edmg, NULL, 0, 0, allow_6ghz, 0, go_bssid);