Browse Source

qcacld-3.0: Unsubscribe in reverse order of subscription

Ideally we should deinit in reverse order of init so we
should Unsubscribe in reverse order of subscription in
packet capture component.

Change-Id: Icb62a14c2d1fd20073f6924d03d523b7871c62d6
CRs-Fixed: 3019862
Vulupala Shashank Reddy 3 years ago
parent
commit
9a9225232b
1 changed files with 12 additions and 12 deletions
  1. 12 12
      components/pkt_capture/core/src/wlan_pkt_capture_main.c

+ 12 - 12
components/pkt_capture/core/src/wlan_pkt_capture_main.c

@@ -114,25 +114,25 @@ static void pkt_capture_wdi_event_unsubscribe(struct wlan_objmgr_psoc *psoc)
 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
 	uint8_t pdev_id = WMI_PDEV_ID_SOC;
 
-	/* unsubscribing for tx data packets */
-	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_TX_SUBSCRIBER,
-			    WDI_EVENT_PKT_CAPTURE_TX_DATA);
+	/* unsubscribe ppdu smu stats */
+	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_PPDU_STATS_SUBSCRIBER,
+			    WDI_EVENT_PKT_CAPTURE_PPDU_STATS);
 
-	/* unsubscribing for rx data packets */
-	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_RX_SUBSCRIBER,
-			    WDI_EVENT_PKT_CAPTURE_RX_DATA);
+	/* unsubscribing for offload tx data packets */
+	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_OFFLOAD_TX_SUBSCRIBER,
+			    WDI_EVENT_PKT_CAPTURE_OFFLOAD_TX_DATA);
 
 	/* unsubscribe for rx data no peer packets */
 	cdp_wdi_event_sub(soc, pdev_id, &PKT_CAPTURE_RX_NO_PEER_SUBSCRIBER,
 			  WDI_EVENT_PKT_CAPTURE_RX_DATA_NO_PEER);
 
-	/* unsubscribing for offload tx data packets */
-	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_OFFLOAD_TX_SUBSCRIBER,
-			    WDI_EVENT_PKT_CAPTURE_OFFLOAD_TX_DATA);
+	/* unsubscribing for rx data packets */
+	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_RX_SUBSCRIBER,
+			    WDI_EVENT_PKT_CAPTURE_RX_DATA);
 
-	/* unsubscribe ppdu smu stats */
-	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_PPDU_STATS_SUBSCRIBER,
-			    WDI_EVENT_PKT_CAPTURE_PPDU_STATS);
+	/* unsubscribing for tx data packets */
+	cdp_wdi_event_unsub(soc, pdev_id, &PKT_CAPTURE_TX_SUBSCRIBER,
+			    WDI_EVENT_PKT_CAPTURE_TX_DATA);
 }
 
 enum pkt_capture_mode