From: Sreeramya Soratkal Date: Tue, 2 Mar 2021 15:19:18 +0000 (+0530) Subject: Add support to indicate TDLS peer's HE capability to driver X-Git-Tag: hostap_2_10~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=742018f44d466afa7008f3b188fe5eb8b62d0142;p=thirdparty%2Fhostap.git Add support to indicate TDLS peer's HE capability to driver Indicate TDLS peer's capability to driver after processing TDLS setup response frame. This information can be used by the driver to decide whether to include HE operation IE in TLDS setup confirmation frame. Signed-off-by: Sreeramya Soratkal --- diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 8ef9ea23a..561882d0d 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -2392,6 +2392,7 @@ enum tdls_peer_capability { TDLS_PEER_HT = BIT(0), TDLS_PEER_VHT = BIT(1), TDLS_PEER_WMM = BIT(2), + TDLS_PEER_HE = BIT(3), }; /* valid info in the wmm_params struct */ diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index af692680c..411cbf46a 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -1418,6 +1418,8 @@ static int wpa_tdls_send_tpk_m3(struct wpa_sm *sm, skip_ies: + if (peer->he_capabilities) + peer_capab |= TDLS_PEER_HE; if (peer->vht_capabilities) peer_capab |= TDLS_PEER_VHT; if (peer->ht_capabilities)