Historical ath9k-devel archives
 help / color / mirror / Atom feed
From: Oleksij Rempel <linux@rempel-privat.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH v2] ath9k_htc: add STBC TX support
Date: Sat, 04 May 2013 10:44:32 +0200	[thread overview]
Message-ID: <5184CA70.6030700@rempel-privat.de> (raw)
In-Reply-To: <1367652786-6282-1-git-send-email-linux@rempel-privat.de>

I forgot to CC one of ATH9K maintainers.
I hope Jouni or Senthil have time for it.


Am 04.05.2013 09:33, schrieb Oleksij Rempel:
> current firmware will enable STBC_TX, only if other peer support it.
> This patch provide ht_peer_caps to firmware.
> FW versions 1.3, 1.4 should be able to work with it.
> Tested on ar7010+ar9280 and ar7010+ar9287.
>
> - v2. Use one bit instead of two for RX STBC flags.
>
> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
> ---
>   drivers/net/wireless/ath/ath9k/htc.h          | 3 +++
>   drivers/net/wireless/ath/ath9k/htc_drv_init.c | 3 +++
>   drivers/net/wireless/ath/ath9k/htc_drv_main.c | 4 ++++
>   3 files changed, 10 insertions(+)
>
> diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
> index d3b099d..037e9b8 100644
> --- a/drivers/net/wireless/ath/ath9k/htc.h
> +++ b/drivers/net/wireless/ath/ath9k/htc.h
> @@ -142,6 +142,9 @@ struct ath9k_htc_target_aggr {
>   #define WLAN_RC_40_FLAG  0x02
>   #define WLAN_RC_SGI_FLAG 0x04
>   #define WLAN_RC_HT_FLAG  0x08
> +#define WLAN_RC_TX_STBC_FLAG 0x20 /* TX STBC */
> +/* RX STBC. Warning! FW checks for 0xC0. But we support only 1 stream anyway */
> +#define WLAN_RC_RX_STBC_FLAG 0x40
>
>   struct ath9k_htc_rateset {
>   	u8 rs_nrates;
> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> index a47f5e0..c79c5ac 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> @@ -517,6 +517,9 @@ static void setup_ht_cap(struct ath9k_htc_priv *priv,
>   	ath_dbg(common, CONFIG, "TX streams %d, RX streams: %d\n",
>   		tx_streams, rx_streams);
>
> +	if (tx_streams >= 2)
> +		ht_info->cap |= IEEE80211_HT_CAP_TX_STBC;
> +
>   	if (tx_streams != rx_streams) {
>   		ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF;
>   		ht_info->mcs.tx_params |= ((tx_streams - 1) <<
> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> index 0743a47..af08b4a 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> @@ -623,6 +623,10 @@ static void ath9k_htc_setup_rate(struct ath9k_htc_priv *priv,
>   		trate->rates.ht_rates.rs_nrates = j;
>
>   		caps = WLAN_RC_HT_FLAG;
> +		if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC)
> +			caps |= WLAN_RC_RX_STBC_FLAG;
> +		if (sta->ht_cap.cap & IEEE80211_HT_CAP_TX_STBC)
> +			caps |= WLAN_RC_TX_STBC_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) &&
>


-- 
Regards,
Oleksij

  reply	other threads:[~2013-05-04  8:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02  8:11 [ath9k-devel] [PATCH 0/2] work sync Oleksij Rempel
2013-05-02  8:11 ` [ath9k-devel] [PATCH 1/2] ath9k_htc: add STBC TX support Oleksij Rempel
2013-05-02 16:55   ` Adrian Chadd
2013-05-02 17:32     ` Oleksij Rempel
2013-05-02 18:01       ` Felix Fietkau
2013-05-02 20:15         ` Adrian Chadd
2013-05-04  6:50           ` Oleksij Rempel
2013-05-04  6:55             ` Oleksij Rempel
2013-05-04 10:02             ` Felix Fietkau
2013-05-04 11:08               ` Oleksij Rempel
2013-05-04 11:16                 ` Felix Fietkau
2013-05-04 11:28                   ` Oleksij Rempel
2013-05-04 14:49                   ` Adrian Chadd
2013-05-04 17:50                   ` Adrian Chadd
2013-05-04 18:29                     ` Oleksij Rempel
2013-05-04  7:33           ` [ath9k-devel] [PATCH v2] " Oleksij Rempel
2013-05-04  8:44             ` Oleksij Rempel [this message]
2013-05-04 10:59           ` [ath9k-devel] [PATCH] " Oleksij Rempel
2013-05-04 11:32           ` [ath9k-devel] [PATCH v4] " Oleksij Rempel
2013-05-02 20:32         ` [ath9k-devel] [PATCH 1/2] " Oleksij Rempel
2013-05-02  8:11 ` [ath9k-devel] [PATCH 2/2] ath9k: remove useless flag conversation Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5184CA70.6030700@rempel-privat.de \
    --to=linux@rempel-privat.de \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox