|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -228,7 +228,17 @@ void ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
|
|
|
*/
|
|
|
QDF_STATUS ucfg_dcs_get_ch_util(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
|
|
|
struct wlan_host_dcs_ch_util_stats *dcs_stats);
|
|
|
-
|
|
|
+/**
|
|
|
+ * ucfg_dcs_switch_chan() - switch channel for vdev
|
|
|
+ * @vdev: vdev ptr
|
|
|
+ * @tgt_freq: target frequency
|
|
|
+ * @tgt_width: target channel width
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS
|
|
|
+ */
|
|
|
+QDF_STATUS
|
|
|
+ucfg_dcs_switch_chan(struct wlan_objmgr_vdev *vdev, qdf_freq_t tgt_freq,
|
|
|
+ enum phy_ch_width tgt_width);
|
|
|
#else
|
|
|
static inline void
|
|
|
ucfg_dcs_register_cb(struct wlan_objmgr_psoc *psoc, dcs_callback cbk, void *arg)
|
|
@@ -297,5 +307,13 @@ ucfg_dcs_get_ch_util(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+ucfg_dcs_switch_chan(struct wlan_objmgr_vdev *vdev, qdf_freq_t tgt_freq,
|
|
|
+ enum phy_ch_width tgt_width)
|
|
|
+{
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
#endif
|
|
|
#endif /* _WLAN_DCS_UCFG_API_H_ */
|