]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Start group with user configured params after accepting invitation
authorVamsi Krishna <vamsin@codeaurora.org>
Fri, 3 Apr 2020 11:52:03 +0000 (17:22 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 3 Apr 2020 17:32:37 +0000 (20:32 +0300)
Use global configuration parameters while invoking a persistent P2P
group after accepting P2P Invitation Request from a peer.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/p2p_supplicant.c

index e86c082b3644ceb93950e7bc87080833af67bb8d..e94bffe529c1f47bf38ff38799d46cc329d01bab 100644 (file)
@@ -3182,8 +3182,12 @@ static void wpas_invitation_received(void *ctx, const u8 *sa, const u8 *bssid,
                                               MAC2STR(sa), s->id);
                        }
                        wpas_p2p_group_add_persistent(
-                               wpa_s, s, go, 0, op_freq, 0, 0, 0, 0, 0,
-                               0, NULL,
+                               wpa_s, s, go, 0, op_freq, 0,
+                               wpa_s->conf->p2p_go_ht40,
+                               wpa_s->conf->p2p_go_vht,
+                               0,
+                               wpa_s->conf->p2p_go_he,
+                               wpa_s->conf->p2p_go_edmg, NULL,
                                go ? P2P_MAX_INITIAL_CONN_WAIT_GO_REINVOKE : 0,
                                1);
                } else if (bssid) {