[PATCH 1/2] Set correct tx width
Eugene Krasnikov
k.eugene.e at gmail.com
Tue Jul 9 11:00:36 EDT 2013
https://github.com/KrasnikovEugene/wcn36xx/pull/75
2013/7/9 Eugene Krasnikov <k.eugene.e at gmail.com>:
> tx width must be set to 0 if only 20MHz is supported.
> 1 in case 20/40MHz supported.
>
> Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
> ---
> smd.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/smd.c b/smd.c
> index 9fa2f0f..10de2eb 100644
> --- a/smd.c
> +++ b/smd.c
> @@ -517,7 +517,7 @@ int wcn36xx_smd_config_sta(struct wcn36xx *wcn, const u8 *bssid,
> sta->listen_interval = 0x8;
> sta->wmm_enabled = 0;
> sta->ht_capable = wcn->supported_rates.supported_mcs_set[0] ? 1 : 0;
> - sta->tx_channel_width_set = 0;
> + sta->tx_channel_width_set = conf_is_ht40(&wcn->hw->conf);
> sta->rifs_mode = 0;
> sta->lsig_txop_protection = 0;
> sta->max_ampdu_size = 0;
> @@ -754,7 +754,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, enum nl80211_iftype type,
> bss->rifs_mode = 0;
> bss->beacon_interval = beacon_interval;
> bss->dtim_period = wcn->dtim_period;
> - bss->tx_channel_width_set = 0;
> + bss->tx_channel_width_set = conf_is_ht40(&wcn->hw->conf);
> bss->oper_channel = wcn->ch;
> bss->ext_channel = 0;
> bss->reserved = 0;
> @@ -768,7 +768,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, enum nl80211_iftype type,
> sta->listen_interval = 8;
> sta->wmm_enabled = 0;
> sta->ht_capable = wcn->supported_rates.supported_mcs_set[0] ? 1 : 0;
> - sta->tx_channel_width_set = 0;
> + sta->tx_channel_width_set = conf_is_ht40(&wcn->hw->conf);
> sta->rifs_mode = 0;
> sta->lsig_txop_protection = 0;
> sta->max_ampdu_size = 0;
> --
> 1.7.11.3
>
--
Best regards,
Eugene
More information about the wcn36xx
mailing list