Browse Source

qcacld-3.0: Modify STA info event to log after join confirm

In api lim_process_probe_rsp_frame(), the STA INFO event
is logged after receiving the probe request. However, the
STA info event is not logged for MBSSID case as unicast
probe request is not sent by the STA.

Modify api lim_process_mlm_join_cnf() to send STA info
event to be logged after successful join confirmation
from MLM irrespective whether unicast probe request is
sent or not.

Change-Id: I2c48c0d1ad89dc1a3cbda51a6e1a5f3cd59196ee
CRs-Fixed: 3635957
Vijay Raj 1 năm trước cách đây
mục cha
commit
76b8c38c3a

+ 2 - 0
core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c

@@ -306,6 +306,8 @@ void lim_process_mlm_join_cnf(struct mac_context *mac_ctx,
 		return;
 	}
 
+	wlan_connectivity_sta_info_event(mac_ctx->psoc, session_entry->vdev_id);
+
 	if (session_entry->limSmeState != eLIM_SME_WT_JOIN_STATE) {
 		pe_err("received unexpected MLM_JOIN_CNF in state %X",
 			session_entry->limSmeState);

+ 0 - 3
core/mac/src/pe/lim/lim_process_probe_rsp_frame.c

@@ -326,8 +326,6 @@ lim_process_probe_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_Packet_info
 
 	if (session_entry->limMlmState ==
 			eLIM_MLM_WT_JOIN_BEACON_STATE) {
-		uint8_t vdev_id = wlan_vdev_get_id(session_entry->vdev);
-
 		/*
 		 * Either Beacon/probe response is required.
 		 * Hence store it in same buffer.
@@ -357,7 +355,6 @@ lim_process_probe_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_Packet_info
 		lim_check_and_announce_join_success(mac_ctx, probe_rsp,
 						header,
 						session_entry);
-		wlan_connectivity_sta_info_event(mac_ctx->psoc, vdev_id);
 
 	} else if (session_entry->limMlmState ==
 		   eLIM_MLM_LINK_ESTABLISHED_STATE) {