qcacmn: Move smart monitor cdp func ptrs to mon ops structure

Move smart monitor cdp func ptrs to cdp mon ops structure.
Smart monitor cdp functions are different for 1.0 and 2.0
hence moving the func ptrs to mon ops structure ensures that
func ptrs are initialized appropriately.

Change-Id: Ic827b44f36d76349f397e5b72dec0a127f90aa7a
CRs-Fixed: 3428778
This commit is contained in:
Jeevan Kukkalli
2023-03-07 20:30:51 +05:30
committed by Madan Koyyalamudi
parent e10810a5a5
commit 5b2792536c
5 changed files with 242 additions and 249 deletions

View File

@@ -88,11 +88,11 @@ cdp_update_filter_neighbour_peers(ol_txrx_soc_handle soc,
return 0;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->txrx_update_filter_neighbour_peers)
if (!soc->ops->mon_ops ||
!soc->ops->mon_ops->txrx_update_filter_neighbour_peers)
return 0;
return soc->ops->ctrl_ops->txrx_update_filter_neighbour_peers
return soc->ops->mon_ops->txrx_update_filter_neighbour_peers
(soc, vdev_id, cmd, macaddr);
}
#endif /* ATH_SUPPORT_NAC || ATH_SUPPORT_NAC_RSSI*/
@@ -1153,11 +1153,11 @@ static inline QDF_STATUS cdp_vdev_config_for_nac_rssi(ol_txrx_soc_handle soc,
return QDF_STATUS_E_FAILURE;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->txrx_vdev_config_for_nac_rssi)
if (!soc->ops->mon_ops ||
!soc->ops->mon_ops->txrx_vdev_config_for_nac_rssi)
return QDF_STATUS_E_FAILURE;
return soc->ops->ctrl_ops->txrx_vdev_config_for_nac_rssi(soc, vdev_id,
return soc->ops->mon_ops->txrx_vdev_config_for_nac_rssi(soc, vdev_id,
nac_cmd, bssid, client_macaddr, chan_num);
}
@@ -1182,11 +1182,11 @@ static inline QDF_STATUS cdp_vdev_get_neighbour_rssi(ol_txrx_soc_handle soc,
return QDF_STATUS_E_FAILURE;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->txrx_vdev_get_neighbour_rssi)
if (!soc->ops->mon_ops ||
!soc->ops->mon_ops->txrx_vdev_get_neighbour_rssi)
return QDF_STATUS_E_FAILURE;
return soc->ops->ctrl_ops->txrx_vdev_get_neighbour_rssi(soc, vdev_id,
return soc->ops->mon_ops->txrx_vdev_get_neighbour_rssi(soc, vdev_id,
macaddr,
rssi);
}