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

Commit cc313eba authored by Jyoti Kumari's avatar Jyoti Kumari Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: wma_send_peer_assoc() sets incorrect peer state

wma_send_peer_assoc() calls wma_unified_peer_state_update() which
always sets the peer state as AUTH irrespective of peer state.

Remove wma_unified_peer_state_update() from wma_send_peer_assoc()
to handle peer state.

Change-Id: I4a887acbc8018653c34b927636cce7cc05323838
CRs-Fixed: 2888808
parent edf42b95
Loading
Loading
Loading
Loading
+0 −43
Original line number Diff line number Diff line
@@ -902,46 +902,6 @@ static inline uint8_t wma_parse_mpdudensity(uint8_t mpdudensity)
		return 0;
}

#if defined(CONFIG_HL_SUPPORT) && defined(FEATURE_WLAN_TDLS)

/**
 * wma_unified_peer_state_update() - update peer state
 * @sta_mac: pointer to sta mac addr
 * @bss_addr: bss address
 * @sta_type: sta entry type
 *
 *
 * Return: None
 */
static void
wma_unified_peer_state_update(
	uint8_t *sta_mac,
	uint8_t *bss_addr,
	uint8_t sta_type)
{
	void *soc = cds_get_context(QDF_MODULE_ID_SOC);

	if (STA_ENTRY_TDLS_PEER == sta_type)
		cdp_peer_state_update(soc, sta_mac,
				      OL_TXRX_PEER_STATE_AUTH);
	else
		cdp_peer_state_update(soc, bss_addr,
				      OL_TXRX_PEER_STATE_AUTH);
}
#else

static inline void
wma_unified_peer_state_update(
	uint8_t *sta_mac,
	uint8_t *bss_addr,
	uint8_t sta_type)
{
	void *soc = cds_get_context(QDF_MODULE_ID_SOC);

	cdp_peer_state_update(soc, bss_addr, OL_TXRX_PEER_STATE_AUTH);
}
#endif

#define CFG_CTRL_MASK              0xFF00
#define CFG_DATA_MASK              0x00FF

@@ -1506,9 +1466,6 @@ QDF_STATUS wma_send_peer_assoc(tp_wma_handle wma,
	if (params->wpa_rsn >> 1)
		cmd->need_gtk_2_way = 1;

	wma_unified_peer_state_update(params->staMac,
				      params->bssId, params->staType);

#ifdef FEATURE_WLAN_WAPI
	if (params->encryptType == eSIR_ED_WPI) {
		ret = wma_vdev_set_param(wma->wmi_handle, params->smesessionId,