]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add support to indicate TDLS peer's HE capability to driver
authorSreeramya Soratkal <ssramya@codeaurora.org>
Tue, 2 Mar 2021 15:19:18 +0000 (20:49 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 23 Apr 2021 09:32:37 +0000 (12:32 +0300)
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 <ssramya@codeaurora.org>
src/drivers/driver.h
src/rsn_supp/tdls.c

index 8ef9ea23a98639abd402d51a208d8cca9658f188..561882d0d024dc823a04fba611be9deeb76dec93 100644 (file)
@@ -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 */
index af692680c5fecceb20b7b066aeab7234f9ff8c60..411cbf46a40d52a698aeca0ae3572ac1a1820260 100644 (file)
@@ -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)