From: Sujith Manoharan Date: Tue, 23 Apr 2013 13:28:43 +0530 Subject: [ath9k-devel] [PATCH 3/3] ath10k: Initialize CW mode In-Reply-To: <1366703923-16379-1-git-send-email-sujith@msujith.org> References: <1366703923-16379-1-git-send-email-sujith@msujith.org> Message-ID: <1366703923-16379-3-git-send-email-sujith@msujith.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org From: Sujith Manoharan Set the channel width mode to static by default. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k/mac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 60855fb..84a5359 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1519,6 +1519,9 @@ static void ath10k_tx(struct ieee80211_hw *hw, ath10k_tx_htt(ar, skb); } +/* + * Initialize various parameters with default vaules. + */ static int ath10k_start(struct ieee80211_hw *hw) { struct ath10k *ar = hw->priv; @@ -1528,6 +1531,10 @@ static int ath10k_start(struct ieee80211_hw *hw) if (ret) ath10k_warn("could not enable WMI_PDEV_PARAM_PMF_QOS (%d)\n", ret); + ret = ath10k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 0); + if (ret) + ath10k_warn("could not init WMI_PDEV_PARAM_DYNAMIC_BW (%d)\n", ret); + return 0; } -- 1.8.2.1