diff --git a/dp/wifi3.0/rh/dp_rh.c b/dp/wifi3.0/rh/dp_rh.c index 0eb672fea5..f8c53e3df5 100644 --- a/dp/wifi3.0/rh/dp_rh.c +++ b/dp/wifi3.0/rh/dp_rh.c @@ -271,16 +271,13 @@ static QDF_STATUS dp_soc_detach_rh(struct dp_soc *soc) static QDF_STATUS dp_soc_deinit_rh(struct dp_soc *soc) { struct htt_soc *htt_soc = soc->htt_handle; - struct dp_mon_ops *mon_ops; qdf_atomic_set(&soc->cmn_init_done, 0); /*Degister RX offload flush handlers*/ hif_offld_flush_cb_deregister(soc->hif_handle); - mon_ops = dp_mon_ops_get(soc); - if (mon_ops && mon_ops->mon_soc_deinit) - mon_ops->mon_soc_deinit(soc); + dp_monitor_soc_deinit(soc); /* free peer tables & AST tables allocated during peer_map_attach */ if (soc->peer_map_attach_success) { @@ -332,7 +329,6 @@ static void *dp_soc_init_rh(struct dp_soc *soc, HTC_HANDLE htc_handle, struct htt_soc *htt_soc = (struct htt_soc *)soc->htt_handle; bool is_monitor_mode = false; uint8_t i; - struct dp_mon_ops *mon_ops; wlan_minidump_log(soc, sizeof(*soc), soc->ctrl_psoc, WLAN_MD_DP_SOC, "dp_soc"); @@ -424,9 +420,7 @@ static void *dp_soc_init_rh(struct dp_soc *soc, HTC_HANDLE htc_handle, wlan_cfg_get_defrag_timeout_check(soc->wlan_cfg_ctx); qdf_spinlock_create(&soc->rx.defrag.defrag_lock); - mon_ops = dp_mon_ops_get(soc); - if (mon_ops && mon_ops->mon_soc_init) - mon_ops->mon_soc_init(soc); + dp_monitor_soc_init(soc); qdf_atomic_set(&soc->cmn_init_done, 1); diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index f102bf2db3..94b94926fe 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/wlan_cfg/wlan_cfg.c @@ -4036,6 +4036,7 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc) wlan_cfg_ctx->txmon_sw_peer_filtering = cfg_get(psoc, CFG_DP_TXMON_SW_PEER_FILTERING); wlan_soc_tx_packet_inspect_attach(psoc, wlan_cfg_ctx); + wlan_soc_local_pkt_capture_cfg_attach(psoc, wlan_cfg_ctx); return wlan_cfg_ctx; }