Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
@ 2010-06-02 10:23 Sujith
  2010-06-02 21:55 ` Luis R. Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Sujith @ 2010-06-02 10:23 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

The supported MCS rate set has to be setup properly
for 2-stream devices.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index ff6c080..acd9cb9 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -398,6 +398,10 @@ static const struct ath_bus_ops ath9k_usb_bus_ops = {
 static void setup_ht_cap(struct ath9k_htc_priv *priv,
 			 struct ieee80211_sta_ht_cap *ht_info)
 {
+	struct ath_common *common = ath9k_hw_common(priv->ah);
+	u8 tx_streams, rx_streams;
+	int i;
+
 	ht_info->ht_supported = true;
 	ht_info->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
 		       IEEE80211_HT_CAP_SM_PS |
@@ -413,7 +417,24 @@ static void setup_ht_cap(struct ath9k_htc_priv *priv,
 	ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
 	memset(&ht_info->mcs, 0, sizeof(ht_info->mcs));
-	ht_info->mcs.rx_mask[0] = 0xff;
+
+	/* ath9k_htc supports only 1 or 2 stream devices */
+	tx_streams = ath9k_cmn_count_streams(common->tx_chainmask, 2);
+	rx_streams = ath9k_cmn_count_streams(common->rx_chainmask, 2);
+
+	ath_print(common, ATH_DBG_CONFIG,
+		  "TX streams %d, RX streams: %d\n",
+		  tx_streams, rx_streams);
+
+	if (tx_streams != rx_streams) {
+		ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF;
+		ht_info->mcs.tx_params |= ((tx_streams - 1) <<
+					   IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT);
+	}
+
+	for (i = 0; i < rx_streams; i++)
+		ht_info->mcs.rx_mask[i] = 0xff;
+
 	ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED;
 }
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-02 10:23 [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices Sujith
@ 2010-06-02 21:55 ` Luis R. Rodriguez
  2010-06-03  0:58   ` Sujith
  0 siblings, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2010-06-02 21:55 UTC (permalink / raw)
  To: Sujith; +Cc: linville, linux-wireless

On Wed, Jun 2, 2010 at 3:23 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> The supported MCS rate set has to be setup properly
> for 2-stream devices.
>
> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>

Awesome, are these being sold yet?

 Luis

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-02 21:55 ` Luis R. Rodriguez
@ 2010-06-03  0:58   ` Sujith
  2010-06-03  1:00     ` Luis R. Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Sujith @ 2010-06-03  0:58 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org

Luis R. Rodriguez wrote:
> On Wed, Jun 2, 2010 at 3:23 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> > The supported MCS rate set has to be setup properly
> > for 2-stream devices.
> >
> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> 
> Awesome, are these being sold yet?

Yep.

Sujith

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-03  0:58   ` Sujith
@ 2010-06-03  1:00     ` Luis R. Rodriguez
  2010-06-03  1:05       ` Sujith
  0 siblings, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2010-06-03  1:00 UTC (permalink / raw)
  To: Sujith, Stephen Chen
  Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org

Adding Stephen. Stephen, this is a public e-mail.

On Wed, Jun 2, 2010 at 5:58 PM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> Luis R. Rodriguez wrote:
>> On Wed, Jun 2, 2010 at 3:23 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
>> > The supported MCS rate set has to be setup properly
>> > for 2-stream devices.
>> >
>> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
>>
>> Awesome, are these being sold yet?
>
> Yep.

What are the names of a few products in the market with these devices?

  Luis

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-03  1:00     ` Luis R. Rodriguez
@ 2010-06-03  1:05       ` Sujith
  2010-06-03  2:53         ` Stephen Chen
  0 siblings, 1 reply; 8+ messages in thread
From: Sujith @ 2010-06-03  1:05 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Stephen Chen, linville@tuxdriver.com,
	linux-wireless@vger.kernel.org

Luis R. Rodriguez wrote:
> Adding Stephen. Stephen, this is a public e-mail.
> 
> On Wed, Jun 2, 2010 at 5:58 PM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> > Luis R. Rodriguez wrote:
> >> On Wed, Jun 2, 2010 at 3:23 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> >> > The supported MCS rate set has to be setup properly
> >> > for 2-stream devices.
> >> >
> >> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> >>
> >> Awesome, are these being sold yet?
> >
> > Yep.
> 
> What are the names of a few products in the market with these devices?

Hm, not sure, maybe Stephen knows ?

Sujith

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-03  1:05       ` Sujith
@ 2010-06-03  2:53         ` Stephen Chen
  2010-06-03  4:58           ` Luis R. Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Chen @ 2010-06-03  2:53 UTC (permalink / raw)
  To: Sujith Manoharan, Luis R. Rodriguez
  Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org

You meant UB94?

 
Thank you.
Stephen Chen
-----Original Message-----
From: Sujith Manoharan 
Sent: Thursday, June 03, 2010 9:06 AM
To: Luis R. Rodriguez
Cc: Stephen Chen; linville@tuxdriver.com; linux-wireless@vger.kernel.org
Subject: Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices

Luis R. Rodriguez wrote:
> Adding Stephen. Stephen, this is a public e-mail.
> 
> On Wed, Jun 2, 2010 at 5:58 PM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> > Luis R. Rodriguez wrote:
> >> On Wed, Jun 2, 2010 at 3:23 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> >> > The supported MCS rate set has to be setup properly
> >> > for 2-stream devices.
> >> >
> >> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> >>
> >> Awesome, are these being sold yet?
> >
> > Yep.
> 
> What are the names of a few products in the market with these devices?

Hm, not sure, maybe Stephen knows ?

Sujith

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-03  2:53         ` Stephen Chen
@ 2010-06-03  4:58           ` Luis R. Rodriguez
  2010-06-03  6:10             ` Stephen Chen
  0 siblings, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2010-06-03  4:58 UTC (permalink / raw)
  To: Stephen Chen
  Cc: Sujith Manoharan, linville@tuxdriver.com,
	linux-wireless@vger.kernel.org

On Wed, Jun 2, 2010 at 7:53 PM, Stephen Chen <Stephen.Chen@atheros.com> wrote:
> You meant UB94?

Yeap.

  Luis

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices
  2010-06-03  4:58           ` Luis R. Rodriguez
@ 2010-06-03  6:10             ` Stephen Chen
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Chen @ 2010-06-03  6:10 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Sujith Manoharan, linville@tuxdriver.com,
	linux-wireless@vger.kernel.org

None on the market today, maybe in Q3.

 
Thank you.
Stephen Chen

-----Original Message-----
From: Luis R. Rodriguez [mailto:mcgrof@gmail.com] 
Sent: Thursday, June 03, 2010 12:58 PM
To: Stephen Chen
Cc: Sujith Manoharan; linville@tuxdriver.com; linux-wireless@vger.kernel.org
Subject: Re: [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices

On Wed, Jun 2, 2010 at 7:53 PM, Stephen Chen <Stephen.Chen@atheros.com> wrote:
> You meant UB94?

Yeap.

  Luis

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-03  6:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02 10:23 [PATCH 5/8] ath9k_htc: Setup HT capabilites for 2-stream devices Sujith
2010-06-02 21:55 ` Luis R. Rodriguez
2010-06-03  0:58   ` Sujith
2010-06-03  1:00     ` Luis R. Rodriguez
2010-06-03  1:05       ` Sujith
2010-06-03  2:53         ` Stephen Chen
2010-06-03  4:58           ` Luis R. Rodriguez
2010-06-03  6:10             ` Stephen Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox