* [PATCH] ath9k_htc: Fix disconnect issue in HT40 mode.
@ 2010-08-12 7:24 Vivek Natarajan
2010-08-12 7:25 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Vivek Natarajan @ 2010-08-12 7:24 UTC (permalink / raw)
To: linville; +Cc: linux-wireless
Set WLAN_RC_40_FLAG only if the current channel configuration
is HT40 enabled.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index ebed9d1..7d09b4b 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -366,7 +366,8 @@ static void ath9k_htc_setup_rate(struct ath9k_htc_priv *priv,
caps = WLAN_RC_HT_FLAG;
if (sta->ht_cap.mcs.rx_mask[1])
caps |= WLAN_RC_DS_FLAG;
- if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
+ if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) &&
+ (conf_is_ht40(&priv->hw->conf)))
caps |= WLAN_RC_40_FLAG;
if (conf_is_ht40(&priv->hw->conf) &&
(sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40))
--
1.7.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath9k_htc: Fix disconnect issue in HT40 mode.
2010-08-12 7:24 [PATCH] ath9k_htc: Fix disconnect issue in HT40 mode Vivek Natarajan
@ 2010-08-12 7:25 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2010-08-12 7:25 UTC (permalink / raw)
To: Vivek Natarajan; +Cc: linville, linux-wireless
On Thu, Aug 12, 2010 at 12:24 AM, Vivek Natarajan
<vnatarajan@atheros.com> wrote:
> Set WLAN_RC_40_FLAG only if the current channel configuration
> is HT40 enabled.
What does this fix? Is this a stable fix, if so why?
Luis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-12 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 7:24 [PATCH] ath9k_htc: Fix disconnect issue in HT40 mode Vivek Natarajan
2010-08-12 7:25 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).