]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix P2P_GROUP_ADD handling of the persistent group parameters
authorJintao Lin <jintaolin@chromium.org>
Mon, 18 Dec 2023 18:11:46 +0000 (18:11 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 23 Dec 2023 10:19:35 +0000 (12:19 +0200)
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 <jintaolin@chromium.org>
wpa_supplicant/ctrl_iface.c

index 84828a7aed19e7241e400562614db7cb66c9d74f..b67b3b305ce130d7274f7212a0bff2a61d49ddc7 100644 (file)
@@ -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);