diff options
author | Bartosz Markowski <bartosz.markowski@tieto.com> | 2013-09-26 11:47:16 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-27 07:58:15 -0400 |
commit | 226a339ba8f3c53914e640d250feaf4321cfcd04 (patch) | |
tree | fd8e937dbe7a1109b4ce485540037c7bc98068e4 /drivers/net/wireless/ath/ath10k/mac.c | |
parent | 6d1506e788ecf3c423f275036d37a40d1416db42 (diff) |
ath10k: introduce dynamic pdev parameters
This is done exactly the same way as for vdev.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index b5ae01de684e..8684e03b393e 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -1882,12 +1882,12 @@ static int ath10k_start(struct ieee80211_hw *hw) | |||
1882 | else if (ar->state == ATH10K_STATE_RESTARTING) | 1882 | else if (ar->state == ATH10K_STATE_RESTARTING) |
1883 | ar->state = ATH10K_STATE_RESTARTED; | 1883 | ar->state = ATH10K_STATE_RESTARTED; |
1884 | 1884 | ||
1885 | ret = ath10k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_PMF_QOS, 1); | 1885 | ret = ath10k_wmi_pdev_set_param(ar, ar->wmi.pdev_param->pmf_qos, 1); |
1886 | if (ret) | 1886 | if (ret) |
1887 | ath10k_warn("could not enable WMI_PDEV_PARAM_PMF_QOS (%d)\n", | 1887 | ath10k_warn("could not enable WMI_PDEV_PARAM_PMF_QOS (%d)\n", |
1888 | ret); | 1888 | ret); |
1889 | 1889 | ||
1890 | ret = ath10k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 0); | 1890 | ret = ath10k_wmi_pdev_set_param(ar, ar->wmi.pdev_param->dynamic_bw, 0); |
1891 | if (ret) | 1891 | if (ret) |
1892 | ath10k_warn("could not init WMI_PDEV_PARAM_DYNAMIC_BW (%d)\n", | 1892 | ath10k_warn("could not init WMI_PDEV_PARAM_DYNAMIC_BW (%d)\n", |
1893 | ret); | 1893 | ret); |
@@ -2209,7 +2209,7 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw, | |||
2209 | struct ath10k *ar = hw->priv; | 2209 | struct ath10k *ar = hw->priv; |
2210 | struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); | 2210 | struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); |
2211 | int ret = 0; | 2211 | int ret = 0; |
2212 | u32 vdev_param; | 2212 | u32 vdev_param, pdev_param; |
2213 | 2213 | ||
2214 | mutex_lock(&ar->conf_mutex); | 2214 | mutex_lock(&ar->conf_mutex); |
2215 | 2215 | ||
@@ -2235,8 +2235,8 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw, | |||
2235 | "vdev %d set beacon tx mode to staggered\n", | 2235 | "vdev %d set beacon tx mode to staggered\n", |
2236 | arvif->vdev_id); | 2236 | arvif->vdev_id); |
2237 | 2237 | ||
2238 | ret = ath10k_wmi_pdev_set_param(ar, | 2238 | pdev_param = ar->wmi.pdev_param->beacon_tx_mode; |
2239 | WMI_PDEV_PARAM_BEACON_TX_MODE, | 2239 | ret = ath10k_wmi_pdev_set_param(ar, pdev_param, |
2240 | WMI_BEACON_STAGGERED_MODE); | 2240 | WMI_BEACON_STAGGERED_MODE); |
2241 | if (ret) | 2241 | if (ret) |
2242 | ath10k_warn("Failed to set beacon mode for VDEV: %d\n", | 2242 | ath10k_warn("Failed to set beacon mode for VDEV: %d\n", |