qcacmn: Add support for ptqm migration

Add support for ptqm migration

Change-Id: I3f3d6e410bee554477e8e058b1da51f2af5abb23
CRs-Fixed: 3529926
このコミットが含まれているのは:
Himanshu Batra
2023-04-04 18:46:58 +05:30
committed by Rahul Choudhary
コミット be34bbe6fc
16個のファイルの変更1020行の追加1行の削除

ファイルの表示

@@ -650,6 +650,52 @@ QDF_STATUS target_if_mlo_send_vdev_pause(struct wlan_objmgr_psoc *psoc,
return wmi_send_mlo_vdev_pause(wmi_handle, info);
}
#ifdef QCA_SUPPORT_PRIMARY_LINK_MIGRATE
static QDF_STATUS target_if_mlo_send_peer_ptqm_migrate_cmd(
struct wlan_objmgr_vdev *vdev,
struct peer_ptqm_migrate_params *param)
{
struct wlan_objmgr_pdev *pdev = NULL;
struct wmi_unified *wmi_handle;
QDF_STATUS status;
if (!vdev || !param) {
target_if_err("Invalid input");
return QDF_STATUS_E_INVAL;
}
pdev = wlan_vdev_get_pdev(vdev);
if (!pdev) {
target_if_err("null pdev");
return QDF_STATUS_E_NULL_VALUE;
}
wmi_handle = lmac_get_pdev_wmi_handle(pdev);
if (!wmi_handle) {
target_if_err("Failed to get WMI handle!");
return QDF_STATUS_E_INVAL;
}
status = wmi_unified_peer_ptqm_migrate_send(wmi_handle, param);
if (QDF_IS_STATUS_ERROR(status))
target_if_err("Failed to send peer ptqm migration WMI");
return status;
}
static void target_if_mlo_register_peer_ptqm_migrate_send(
struct wlan_lmac_if_mlo_tx_ops *mlo_tx_ops)
{
mlo_tx_ops->peer_ptqm_migrate_send =
target_if_mlo_send_peer_ptqm_migrate_cmd;
}
#else
static void target_if_mlo_register_peer_ptqm_migrate_send(
struct wlan_lmac_if_mlo_tx_ops *mlo_tx_ops)
{
}
#endif
/**
* target_if_mlo_register_tx_ops() - lmac handler to register mlo tx ops
* callback functions
@@ -685,6 +731,7 @@ target_if_mlo_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
target_if_request_ml_link_state_info;
mlo_tx_ops->send_vdev_pause = target_if_mlo_send_vdev_pause;
target_if_mlo_register_peer_ptqm_migrate_send(mlo_tx_ops);
return QDF_STATUS_SUCCESS;
}