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

Commit bec1873d authored by Utkarsh Bhatnagar's avatar Utkarsh Bhatnagar
Browse files

qcacld-3.0: Update TDLS peer he capability based on selfDot11mode

Update peer HE capability in TDLS hash node only when 11ax
is supported in seflDot11mode capability.

Change-Id: Ia6776224ee91a6da2f0ba299b0fe5d46e241c093
CRs-Fixed: 2935305
parent 888882f2
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -881,6 +881,9 @@ static void populate_dot11f_set_tdls_he_cap(struct mac_context *mac,
		lim_tdls_set_he_chan_width(heCap, session);
		lim_log_he_cap(mac, heCap);
		lim_populate_tdls_setup_6g_cap(mac, hecap_6g, session);
	} else {
		pe_debug("Not populating he cap as SelfDot11Mode not HE %d",
			 selfDot11Mode);
	}
}

@@ -2798,7 +2801,7 @@ static void lim_tdls_update_hash_node_info(struct mac_context *mac,
	tDot11fIEVHTCaps *pVhtCaps = NULL;
	tDot11fIEVHTCaps *pVhtCaps_txbf = NULL;
	tDot11fIEVHTCaps vhtCap;
	uint8_t cbMode;
	uint8_t cbMode, selfDot11Mode;

	if (add_sta_req->tdls_oper == TDLS_OPER_ADD) {
		populate_dot11f_ht_caps(mac, pe_session, &htCap);
@@ -2880,9 +2883,12 @@ static void lim_tdls_update_hash_node_info(struct mac_context *mac,
		sta->vhtSupportedChannelWidthSet =
			WNI_CFG_VHT_CHANNEL_WIDTH_20_40MHZ;
	}

	selfDot11Mode = mac->mlme_cfg->dot11_mode.dot11_mode;
	if (IS_DOT11_MODE_HE(selfDot11Mode))
		lim_tdls_update_node_he_caps(mac, add_sta_req, sta, pe_session);

	else
		pe_debug("Not populating he cap as SelfDot11Mode not HE %d",
			 selfDot11Mode);
	/*
	 * Calculate the Secondary Coannel Offset if our
	 * own channel bonding state is enabled