Ver código fonte

qcacld-3.0: Changes for mgmt txrx component to interact with southbound

Register lmac if mgmt txrx tx ops statically to interact with southbound
interface inside wma_register_tx_ops_handler.

Change-Id: I4f59f69ed0e8b702b8d3c93e4b732891d50c1555
CRs-Fixed: 1103247
Himanshu Agarwal 8 anos atrás
pai
commit
ce716f8940
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      core/wma/src/wma_main.c

+ 8 - 0
core/wma/src/wma_main.c

@@ -1817,6 +1817,14 @@ wma_register_tx_ops_handler(struct wlan_lmac_if_tx_ops *tx_ops)
 	 * functions which are used to send wmi command to target.
 	 */
 
+	if (!tx_ops) {
+		WMA_LOGE("%s: pointer to lmac if tx ops is NULL", __func__);
+		return QDF_STATUS_E_INVAL;
+	}
+
+	/* mgmt_txrx component's tx ops */
+	tx_ops->mgmt_txrx_tx_ops.mgmt_tx_send = wma_mgmt_unified_cmd_send;
+
 	return QDF_STATUS_SUCCESS;
 }