Ver código fonte

qcacmn: Add src, and dst id support in TDLS

In the scheduler_post_message, src_id is now added to
know the source module of the msg. the present scheduler
doesn't know about the same which is scheduler_post_msg

Replace the scheduler_post_msg with scheduler_post_message

Change-Id: I184827ec58625dc60be67b8f16aa7e698ecc893e
CRs-Fixed: 2306014
gaurank kathpalia 6 anos atrás
pai
commit
5d3b5a2424

+ 12 - 4
umac/tdls/core/src/wlan_tdls_cmds_process.c

@@ -167,7 +167,9 @@ static QDF_STATUS tdls_pe_add_peer(struct tdls_add_peer_request *req)
 		   QDF_MAC_ADDR_ARRAY(addstareq->peermac.bytes));
 	msg.type = soc_obj->tdls_add_sta_req;
 	msg.bodyptr = addstareq;
-	status = scheduler_post_msg(QDF_MODULE_ID_PE, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_PE,
+					QDF_MODULE_ID_PE, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("fail to post pe msg to add peer");
 		goto error;
@@ -232,7 +234,9 @@ QDF_STATUS tdls_pe_del_peer(struct tdls_del_peer_request *req)
 		   QDF_MAC_ADDR_ARRAY(delstareq->peermac.bytes));
 	msg.type = soc_obj->tdls_del_sta_req;
 	msg.bodyptr = delstareq;
-	status = scheduler_post_msg(QDF_MODULE_ID_PE, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_PE,
+					QDF_MODULE_ID_PE, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("fail to post pe msg to del peer");
 		goto error;
@@ -318,7 +322,9 @@ static QDF_STATUS tdls_pe_update_peer(struct tdls_update_peer_request *req)
 
 	msg.type = soc_obj->tdls_add_sta_req;
 	msg.bodyptr = addstareq;
-	status = scheduler_post_msg(QDF_MODULE_ID_PE, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_PE,
+					QDF_MODULE_ID_PE, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("fail to post pe msg to update peer");
 		goto error;
@@ -1561,7 +1567,9 @@ tdls_wma_update_peer_state(struct tdls_soc_priv_obj *soc_obj,
 	msg.reserved = 0;
 	msg.bodyptr = peer_state;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_WMA, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_WMA,
+					QDF_MODULE_ID_WMA, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("scheduler_post_msg failed");
 		status = QDF_STATUS_E_FAILURE;

+ 3 - 1
umac/tdls/core/src/wlan_tdls_ct.c

@@ -1165,7 +1165,9 @@ QDF_STATUS tdls_delete_all_tdls_peers(struct wlan_objmgr_vdev *vdev,
 	msg.type = del_msg->msg_type;
 	msg.bodyptr = del_msg;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_PE, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_PE,
+					QDF_MODULE_ID_PE, &msg);
 
 	wlan_objmgr_peer_release_ref(peer, WLAN_TDLS_SB_ID);
 	return status;

+ 9 - 3
umac/tdls/core/src/wlan_tdls_main.c

@@ -806,7 +806,9 @@ static void tdls_process_session_update(struct wlan_objmgr_psoc *psoc,
 	msg.callback = tdls_process_cmd;
 	msg.type = (uint16_t)cmd_type;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_OS_IF, &msg);
 	if (QDF_IS_STATUS_ERROR(status))
 		tdls_alert("message post failed ");
 }
@@ -1142,7 +1144,9 @@ QDF_STATUS tdls_peers_deleted_notification(
 	msg.callback = tdls_process_cmd;
 	msg.type = TDLS_NOTIFY_STA_DISCONNECTION;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_OS_IF, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		qdf_mem_free(notify);
 		tdls_alert("message post failed ");
@@ -1381,7 +1385,9 @@ static QDF_STATUS tdls_post_scan_done_msg(struct tdls_soc_priv_obj *tdls_soc)
 	msg.bodyptr = tdls_soc;
 	msg.callback = tdls_process_cmd;
 	msg.type = TDLS_CMD_SCAN_DONE;
-	scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg);
+	scheduler_post_message(QDF_MODULE_ID_TDLS,
+			       QDF_MODULE_ID_TDLS,
+			       QDF_MODULE_ID_OS_IF, &msg);
 
 	return QDF_STATUS_SUCCESS;
 }

+ 3 - 1
umac/tdls/core/src/wlan_tdls_mgmt.c

@@ -305,7 +305,9 @@ static QDF_STATUS tdls_activate_send_mgmt_request(
 	msg.type = tdls_soc_obj->tdls_send_mgmt_req;
 	msg.bodyptr = tdls_mgmt_req;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_PE, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_PE, &msg);
 
 	wlan_objmgr_peer_release_ref(peer, WLAN_TDLS_SB_ID);
 release_mgmt_ref:

+ 6 - 2
umac/tdls/dispatcher/src/wlan_tdls_tgt_api.c

@@ -205,7 +205,9 @@ tgt_tdls_event_handler(struct wlan_objmgr_psoc *psoc,
 	msg.bodyptr = notify;
 	msg.callback = tdls_process_evt;
 
-	status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TARGET_IF, &msg);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		tdls_err("can't post msg to handle tdls event");
 		wlan_objmgr_vdev_release_ref(notify->vdev, WLAN_TDLS_SB_ID);
@@ -283,7 +285,9 @@ QDF_STATUS tgt_tdls_mgmt_frame_process_rx_cb(
 	msg.type = TDLS_EVENT_RX_MGMT;
 	msg.bodyptr = rx_mgmt_event;
 	msg.callback = tdls_process_rx_frame;
-	status = scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg);
+	status = scheduler_post_message(QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TDLS,
+					QDF_MODULE_ID_TARGET_IF, &msg);
 
 	qdf_nbuf_free(buf);