Kaynağa Gözat

qcacld-3.0: Remove obsolete SIR_HAL_TDLS_IND processing

LIM currently has logic to process a SIR_HAL_TDLS_IND message, but
nothing actually sends that message, so remove the obsolete code.

Change-Id: Ia2593f5c117d6c43545ed0e2bbb41a1f0c0ba465
CRs-Fixed: 2396054
Jeff Johnson 6 yıl önce
ebeveyn
işleme
57a2e6f9b6

+ 0 - 7
core/mac/inc/sir_api.h

@@ -1519,13 +1519,6 @@ enum tx_rate_info {
 #endif
 /**********************PE Statistics end*************************/
 
-typedef struct sSirTdlsInd {
-	uint16_t status;
-	uint16_t assocId;
-	uint16_t staIdx;
-	uint16_t reasonCode;
-} tSirTdlsInd, *tpSirTdlsInd;
-
 typedef struct sSirP2PNoaAttr {
 #ifdef ANI_BIG_BYTE_ENDIAN
 	uint32_t index:8;

+ 1 - 1
core/mac/src/include/sir_params.h

@@ -378,8 +378,8 @@ struct sir_cfg_action_frm_tb_ppdu {
 /* / PE <-> HAL TDLS messages */
 #define SIR_HAL_TDLS_LINK_ESTABLISH_REQ     (SIR_HAL_ITC_MSG_TYPES_BEGIN + 143)
 #define SIR_HAL_TDLS_LINK_ESTABLISH_REQ_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 144)
-#define SIR_HAL_TDLS_IND                    (SIR_HAL_ITC_MSG_TYPES_BEGIN + 145)
 #endif
+/* (SIR_HAL_ITC_MSG_TYPES_BEGIN + 145) is unused */
 
 #define SIR_HAL_STOP_SCAN_OFFLOAD_REQ      (SIR_HAL_ITC_MSG_TYPES_BEGIN + 146)
 #define SIR_HAL_RX_SCAN_EVENT              (SIR_HAL_ITC_MSG_TYPES_BEGIN + 147)

+ 0 - 35
core/mac/src/pe/lim/lim_process_message_queue.c

@@ -1463,11 +1463,6 @@ static void lim_process_messages(struct mac_context *mac_ctx,
 	QDF_STATUS qdf_status;
 	struct scheduler_msg new_msg = {0};
 
-#ifdef FEATURE_WLAN_TDLS
-	uint8_t session_id;
-	tSirTdlsInd *tdls_ind = NULL;
-	tpDphHashNode sta_ds = NULL;
-#endif
 	if (msg == NULL) {
 		pe_err("Message pointer is Null");
 		QDF_ASSERT(0);
@@ -1652,36 +1647,6 @@ static void lim_process_messages(struct mac_context *mac_ctx,
 		qdf_mem_free(msg->bodyptr);
 		msg->bodyptr = NULL;
 		break;
-#ifdef FEATURE_WLAN_TDLS
-	case SIR_HAL_TDLS_IND:
-		tdls_ind = (tpSirTdlsInd) msg->bodyptr;
-		session_entry = pe_find_session_by_sta_id(mac_ctx,
-			tdls_ind->staIdx, &session_id);
-		if (session_entry == NULL) {
-			pe_debug("No session exist for given bssId");
-				qdf_mem_free(msg->bodyptr);
-				msg->bodyptr = NULL;
-				return;
-			}
-		sta_ds = dph_get_hash_entry(mac_ctx, tdls_ind->assocId,
-			&session_entry->dph.dphHashTable);
-			if (sta_ds == NULL) {
-				pe_debug("No sta_ds exist for given staId");
-				qdf_mem_free(msg->bodyptr);
-				msg->bodyptr = NULL;
-				return;
-			}
-
-			if (STA_ENTRY_TDLS_PEER == sta_ds->staType) {
-				pe_err("rcvd TDLS IND from FW with RC %d",
-					tdls_ind->reasonCode);
-				lim_send_sme_tdls_del_sta_ind(mac_ctx, sta_ds,
-					session_entry, tdls_ind->reasonCode);
-			}
-			qdf_mem_free(msg->bodyptr);
-			msg->bodyptr = NULL;
-		break;
-#endif
 	case SIR_HAL_P2P_NOA_ATTR_IND:
 		session_entry = &mac_ctx->lim.gpSession[0];
 		pe_debug("Received message Noa_ATTR %x",