Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cded059 authored by Madhvapathi Sriram's avatar Madhvapathi Sriram Committed by snandini
Browse files

qcacld-3.0: twt_responder support advertisement in assoc resp

TWT responder support should be announced, if enabled, in the
Extended capabilities IE.

Change-Id: I1355a9ddf2fe0361cb542b4c49b754d8f8a158fc
CRs-Fixed: 2884862
parent 8641cb2d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1433,6 +1433,10 @@ populate_dot11f_ext_cap(struct mac_context *mac,

	p_ext_cap->beacon_protection_enable = pe_session ?
			mlme_get_bigtk_support(pe_session->vdev) : false;

	if (pe_session)
		populate_dot11f_twt_extended_caps(mac, pe_session, pDot11f);

	/* Need to calculate the num_bytes based on bits set */
	if (pDot11f->present)
		pDot11f->num_bytes = lim_compute_ext_cap_ie_length(pDot11f);
@@ -6486,8 +6490,10 @@ QDF_STATUS populate_dot11f_twt_extended_caps(struct mac_context *mac_ctx,
{
	struct s_ext_cap *p_ext_cap;

	if (!pe_session->enable_session_twt_support)
	if (pe_session->opmode == QDF_STA_MODE &&
	    !pe_session->enable_session_twt_support) {
		return QDF_STATUS_SUCCESS;
	}

	dot11f->num_bytes = DOT11F_IE_EXTCAP_MAX_LEN;
	p_ext_cap = (struct s_ext_cap *)dot11f->bytes;