Message ID | 1563288059-2753-1-git-send-email-srirrama@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 8e22fb7f66e2eca913b9b44255c10fb5bc2f9e74 |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: Fix enabling dynamic bandwidth param | expand |
Sriram R <srirrama@codeaurora.org> wrote: > Currently the dynamic bandwidth pdev param is not enabled. > Correct the parameter passed to enable this feature. This > is required to dynamically switch bandwidth, for eg. when > noise in injected in secondary channel of a 40MHz channel > the fw will switch to 20MHz when this feature is enabled. > > Signed-off-by: Sriram R <srirrama@codeaurora.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Patch applied to ath11k-bringup branch of ath.git, thanks. 8e22fb7f66e2 ath11k: Fix enabling dynamic bandwidth param
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index dd164b5..3dc0615 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3505,7 +3505,7 @@ static int ath11k_mac_op_start(struct ieee80211_hw *hw) goto err; } - ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 0, + ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 1, pdev->pdev_id); if (ret) { ath11k_err(ar->ab, "failed to enable dynamic bw: %d\n", ret);
Currently the dynamic bandwidth pdev param is not enabled. Correct the parameter passed to enable this feature. This is required to dynamically switch bandwidth, for eg. when noise in injected in secondary channel of a 40MHz channel the fw will switch to 20MHz when this feature is enabled. Signed-off-by: Sriram R <srirrama@codeaurora.org> --- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)