]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Enable TWT and Channel Usage support by default
authorShivani Baranwal <quic_shivbara@quicinc.com>
Sun, 22 Sep 2024 21:35:49 +0000 (03:05 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2024 21:01:47 +0000 (23:01 +0200)
It is mandatory to support Channel Usage and TWT in P2P2. Enable
peer to peer TWT and Channel Usage support for P2P GO.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
wpa_supplicant/p2p_supplicant.c

index e967efd892906eae24238e39668b7c7318fa0c23..f9c3596e6822acea566f39d10b84dc77fe24e377 100644 (file)
@@ -7920,6 +7920,12 @@ static void wpas_p2p_ie_update(void *ctx, struct wpabuf *beacon_ies,
                }
                wpabuf_free(hapd->p2p_probe_resp_ie);
                hapd->p2p_probe_resp_ie = proberesp_ies;
+
+               if (wpa_s->p2p2) {
+                       hapd->iconf->peer_to_peer_twt = true;
+                       hapd->iconf->channel_usage = true;
+               }
+
        } else {
                wpabuf_free(beacon_ies);
                wpabuf_free(proberesp_ies);