]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Include p2p_add_cli_chan parameter while cloning the configuration
authorSreeramya Soratkal <ssramya@codeaurora.org>
Thu, 24 Sep 2020 10:38:27 +0000 (16:08 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 22 Oct 2020 20:51:54 +0000 (23:51 +0300)
The dynamically created P2P group interface did not consider the
channels that can be used by the P2P client during the P2P group
formation. Copy the p2p_add_cli_chan parameter while cloning the
configuration to the P2P group interface. This allows the dynamically
created group interface case to form the group in the specific
client-only channels when the device is a P2P client in the group.

Signed-off-by: Sreeramya Soratkal <ssramya@codeaurora.org>
wpa_supplicant/p2p_supplicant.c

index 4c083f865a07f0f0cf20e913a5f27e131a05cbe1..330687b81408e0719621e95b3ff713b951b897b0 100644 (file)
@@ -2161,6 +2161,7 @@ do {                                    \
        d->go_internet = s->go_internet;
        d->go_venue_group = s->go_venue_group;
        d->go_venue_type = s->go_venue_type;
+       d->p2p_add_cli_chan = s->p2p_add_cli_chan;
 }