Browse Source

qcacmn: Use correct ref id for mgmt transmit

Fix to correct ref id usage in transmit.

Change-Id: I85d5031e3ed14a137980a828f18512d91fde5548
CRs-Fixed: 2177109
Srinivas Pitla 7 năm trước cách đây
mục cha
commit
72bbf17531

+ 1 - 1
umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c

@@ -1014,7 +1014,7 @@ no_registered_cb:
 	 * decrementing the peer ref count that was incremented while
 	 * accessing peer in wlan_mgmt_txrx_mgmt_frame_tx
 	 */
-	wlan_objmgr_peer_release_ref(mgmt_desc->peer, WLAN_MGMT_SB_ID);
+	wlan_objmgr_peer_release_ref(mgmt_desc->peer, WLAN_MGMT_NB_ID);
 	wlan_mgmt_txrx_desc_put(mgmt_txrx_pdev_ctx, desc_id);
 	return QDF_STATUS_SUCCESS;
 }

+ 7 - 7
umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_utils_api.c

@@ -376,12 +376,12 @@ QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer,
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
-	wlan_objmgr_peer_get_ref(peer, WLAN_MGMT_SB_ID);
+	wlan_objmgr_peer_get_ref(peer, WLAN_MGMT_NB_ID);
 
 	vdev = wlan_peer_get_vdev(peer);
 	if (!vdev) {
 		mgmt_txrx_err("vdev unavailable for peer %pK", peer);
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
@@ -389,7 +389,7 @@ QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer,
 	if (!psoc) {
 		mgmt_txrx_err("psoc unavailable for peer %pK vdev %pK",
 				peer, vdev);
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
@@ -407,13 +407,13 @@ QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer,
 	if (!txrx_ctx) {
 		mgmt_txrx_err("No txrx context for peer %pK pdev %pK",
 				peer, pdev);
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
 	desc = wlan_mgmt_txrx_desc_get(txrx_ctx);
 	if (!desc) {
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		return QDF_STATUS_E_RESOURCES;
 	}
 
@@ -428,7 +428,7 @@ QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer,
 		mgmt_txrx_err(
 				"mgmt txrx txop to send mgmt frame is NULL for psoc: %pK",
 				psoc);
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		desc->nbuf = NULL;
 		wlan_mgmt_txrx_desc_put(txrx_ctx, desc->desc_id);
 		return QDF_STATUS_E_FAILURE;
@@ -438,7 +438,7 @@ QDF_STATUS wlan_mgmt_txrx_mgmt_frame_tx(struct wlan_objmgr_peer *peer,
 			vdev, buf, desc->desc_id, mgmt_tx_params)) {
 		mgmt_txrx_err("Mgmt send fail for peer %pK psoc %pK pdev: %pK",
 				peer, psoc, pdev);
-		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_SB_ID);
+		wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
 		desc->nbuf = NULL;
 		wlan_mgmt_txrx_desc_put(txrx_ctx, desc->desc_id);
 		return QDF_STATUS_E_FAILURE;