qcacld-3.0: Update wifi_pos_vdev_delete_all_ranging_peers_cb call

Update wifi_pos_vdev_delete_all_ranging_peers_cb call to call from
rx_ops instead of wifi pos tx ops.

Change-Id: Ic62d4a733ad3ea2e0064215e94e52b1444fcc4ec
CRs-Fixed: 3298483
This commit is contained in:
Pragaspathi Thilagaraj
2022-09-23 11:23:53 +05:30
committed by Madan Koyyalamudi
parent eee001e3ac
commit 34600ce17a
2 changed files with 6 additions and 4 deletions

2
Kbuild
View File

@@ -2031,6 +2031,8 @@ WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_wds_api.o
WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_wds_tlv.o
endif
cppflags-y += -DSERIALIZE_WMI_RX_EXECUTION_CTX
$(call add-wlan-objs,wmi,$(WMI_OBJS))
########### FWLOG ###########

View File

@@ -273,13 +273,13 @@ wma_pasn_peer_delete_all_complete(struct wlan_objmgr_vdev *vdev)
QDF_STATUS
wma_delete_all_pasn_peers(tp_wma_handle wma, struct wlan_objmgr_vdev *vdev)
{
struct wlan_lmac_if_wifi_pos_tx_ops *tx_ops;
struct wlan_lmac_if_wifi_pos_rx_ops *rx_ops;
struct wma_target_req *msg;
QDF_STATUS status = QDF_STATUS_SUCCESS;
uint8_t vdev_id = wlan_vdev_get_id(vdev);
tx_ops = wifi_pos_get_tx_ops(wma->psoc);
if (!tx_ops || !tx_ops->wifi_pos_vdev_delete_all_ranging_peers_cb) {
rx_ops = wifi_pos_get_rx_ops(wma->psoc);
if (!rx_ops || !rx_ops->wifi_pos_vdev_delete_all_ranging_peers_cb) {
wma_err("rx_ops is NULL");
return QDF_STATUS_E_INVAL;
}
@@ -288,7 +288,7 @@ wma_delete_all_pasn_peers(tp_wma_handle wma, struct wlan_objmgr_vdev *vdev)
WMA_PEER_DELETE_RESPONSE_TIMEOUT);
wma_err("Delete all ranging peers vdev:%d",
wlan_vdev_get_id(vdev));
status = tx_ops->wifi_pos_vdev_delete_all_ranging_peers_cb(vdev);
status = rx_ops->wifi_pos_vdev_delete_all_ranging_peers_cb(vdev);
if (QDF_IS_STATUS_ERROR(status)) {
wma_release_wakelock(&wma->wmi_cmd_rsp_wake_lock);
wma_err("Delete all ranging peers failed");