From: Shivani Baranwal Date: Sun, 22 Sep 2024 21:35:49 +0000 (+0530) Subject: P2P2: Enable TWT and Channel Usage support by default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9daa3fca56b4a8f4bc88f245dc18bc583a8a6c4;p=thirdparty%2Fhostap.git P2P2: Enable TWT and Channel Usage support by default 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 --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index e967efd89..f9c3596e6 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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);