Commit 5bdfb8c9 authored by Karthikeyan Periyasamy's avatar Karthikeyan Periyasamy Committed by Kalle Valo

wifi: ath12k: ath12k_start_vdev_delay(): convert to use ar

To support single wiphy abstraction, remove the mac80211 hw data
dependency from the start vdev delay function. This way, this
function can be extended to handle multiple link/radio in the future.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
Signed-off-by: default avatarKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240103063731.3356060-11-quic_periyasa@quicinc.com
parent b33dcbe8
...@@ -241,8 +241,8 @@ static const u32 ath12k_smps_map[] = { ...@@ -241,8 +241,8 @@ static const u32 ath12k_smps_map[] = {
[WLAN_HT_CAP_SM_PS_DISABLED] = WMI_PEER_SMPS_PS_NONE, [WLAN_HT_CAP_SM_PS_DISABLED] = WMI_PEER_SMPS_PS_NONE,
}; };
static int ath12k_start_vdev_delay(struct ieee80211_hw *hw, static int ath12k_start_vdev_delay(struct ath12k *ar,
struct ieee80211_vif *vif); struct ath12k_vif *arvif);
static const char *ath12k_mac_phymode_str(enum wmi_phy_mode mode) static const char *ath12k_mac_phymode_str(enum wmi_phy_mode mode)
{ {
...@@ -3718,7 +3718,7 @@ static int ath12k_mac_station_add(struct ath12k *ar, ...@@ -3718,7 +3718,7 @@ static int ath12k_mac_station_add(struct ath12k *ar,
if (ab->hw_params->vdev_start_delay && if (ab->hw_params->vdev_start_delay &&
!arvif->is_started && !arvif->is_started &&
arvif->vdev_type != WMI_VDEV_TYPE_AP) { arvif->vdev_type != WMI_VDEV_TYPE_AP) {
ret = ath12k_start_vdev_delay(ar->hw, vif); ret = ath12k_start_vdev_delay(ar, arvif);
if (ret) { if (ret) {
ath12k_warn(ab, "failed to delay vdev start: %d\n", ret); ath12k_warn(ab, "failed to delay vdev start: %d\n", ret);
goto free_peer; goto free_peer;
...@@ -6411,12 +6411,11 @@ static void ath12k_mac_op_change_chanctx(struct ieee80211_hw *hw, ...@@ -6411,12 +6411,11 @@ static void ath12k_mac_op_change_chanctx(struct ieee80211_hw *hw,
mutex_unlock(&ar->conf_mutex); mutex_unlock(&ar->conf_mutex);
} }
static int ath12k_start_vdev_delay(struct ieee80211_hw *hw, static int ath12k_start_vdev_delay(struct ath12k *ar,
struct ieee80211_vif *vif) struct ath12k_vif *arvif)
{ {
struct ath12k *ar = hw->priv;
struct ath12k_base *ab = ar->ab; struct ath12k_base *ab = ar->ab;
struct ath12k_vif *arvif = ath12k_vif_to_arvif(vif); struct ieee80211_vif *vif = arvif->vif;
int ret; int ret;
if (WARN_ON(arvif->is_started)) if (WARN_ON(arvif->is_started))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment