2011-09-05 10:54:40

by Shahar Levi

[permalink] [raw]
Subject: [PATCH] wl12xx: Includes OFDM rates in IBSS mode

IBSS mode includes only 11B rates.
Includes OFDM rates in IBSS mode. Note that IBSS connection is
without ERP protection.

Signed-off-by: Shahar Levi <[email protected]>
---
drivers/net/wireless/wl12xx/conf.h | 5 +++--
drivers/net/wireless/wl12xx/main.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/conf.h b/drivers/net/wireless/wl12xx/conf.h
index 43bccc8..381c236 100644
--- a/drivers/net/wireless/wl12xx/conf.h
+++ b/drivers/net/wireless/wl12xx/conf.h
@@ -459,11 +459,12 @@ struct conf_rx_settings {
CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS)

/*
- * Default rates for working as IBSS. use 11b rates
+ * Default rates for working as IBSS. use 11b + OFDM rates
+ * Note that IBSS connection is without ERP protection
*/
#define CONF_TX_IBSS_DEFAULT_RATES (CONF_HW_BIT_RATE_1MBPS | \
CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
- CONF_HW_BIT_RATE_11MBPS);
+ CONF_HW_BIT_RATE_11MBPS | CONF_TX_OFDM_RATES);

struct conf_tx_rate_class {

diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index d66b079..eb10539 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -3705,7 +3705,7 @@ sta_not_found:
rates);
wl->basic_rate = wl1271_tx_min_rate_get(wl);

- /* by default, use 11b rates */
+ /* by default, use 11b + OFDM rates */
wl->rate_set = CONF_TX_IBSS_DEFAULT_RATES;
ret = wl1271_acx_sta_rate_policies(wl);
if (ret < 0)
--
1.7.1



2011-09-23 11:37:35

by Luciano Coelho

[permalink] [raw]
Subject: Re: [PATCH] wl12xx: Includes OFDM rates in IBSS mode

On Mon, 2011-09-05 at 13:54 +0300, Shahar Levi wrote:
> IBSS mode includes only 11B rates.
> Includes OFDM rates in IBSS mode. Note that IBSS connection is
> without ERP protection.
>
> Signed-off-by: Shahar Levi <[email protected]>
> ---

Rephrased commit log, removed one unnecessary comment and applied.
Thanks!

--
Cheers,
Luca.