Procházet zdrojové kódy

qcacld-3.0: Use proper ID to take ref in lim

In lim driver should not use the OSIF_ID to
take ref, as this ID is specific to HDD. It
should use WLAN_LEGACY_MAC_ID.

Fix is to use WLAN_LEGACY_MAC_ID in place of
OSIF_ID in lim.

Change-Id: I394d49979384f2d7ef0364e41bd9fd877f9e76bc
CRs-Fixed: 2393423
Abhinav Kumar před 6 roky
rodič
revize
5f18226bd8
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      core/mac/src/pe/lim/lim_ft_preauth.c

+ 4 - 3
core/mac/src/pe/lim/lim_ft_preauth.c

@@ -690,7 +690,8 @@ QDF_STATUS lim_send_preauth_scan_offload(struct mac_context *mac_ctx,
 	qdf_mem_zero(req, sizeof(*req));
 
 	vdev = wlan_objmgr_get_vdev_by_id_from_pdev(mac_ctx->pdev,
-						    session_id, WLAN_OSIF_ID);
+						    session_id,
+						    WLAN_LEGACY_MAC_ID);
 	if (vdev == NULL) {
 		QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_ERROR,
 			  FL("vdev object is NULL"));
@@ -706,7 +707,7 @@ QDF_STATUS lim_send_preauth_scan_offload(struct mac_context *mac_ctx,
 
 	req->scan_req.scan_id = ucfg_scan_get_scan_id(mac_ctx->psoc);
 	if (!req->scan_req.scan_id) {
-		wlan_objmgr_vdev_release_ref(vdev, WLAN_OSIF_ID);
+		wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
 		qdf_mem_free(req);
 		QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_ERROR,
 			  FL("Invalid scan ID"));
@@ -730,7 +731,7 @@ QDF_STATUS lim_send_preauth_scan_offload(struct mac_context *mac_ctx,
 		/* Don't free req here, ucfg_scan_start will do free */
 		QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_INFO_HIGH,
 			  FL("Issue scan req failed"));
-	wlan_objmgr_vdev_release_ref(vdev, WLAN_OSIF_ID);
+	wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
 	return status;
 }