* [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices
@ 2011-08-23 12:56 Eliad Peller
2011-08-23 12:56 ` [PATCH 2/2] wl12xx: initialize rate_set on band rates initialization Eliad Peller
2011-08-25 7:20 ` [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Luciano Coelho
0 siblings, 2 replies; 3+ messages in thread
From: Eliad Peller @ 2011-08-23 12:56 UTC (permalink / raw)
To: Luciano Coelho; +Cc: linux-wireless
From: Arik Nemtsov <arik@wizery.com>
There was a check preventing 127x devices from using the 11a band when
operating as AP. Since we now support this functionality, remove the
check.
With this patch, a 11a AP starts ok on 127x cards.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
---
drivers/net/wireless/wl12xx/boot.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
index cc70422..6d5664b 100644
--- a/drivers/net/wireless/wl12xx/boot.c
+++ b/drivers/net/wireless/wl12xx/boot.c
@@ -294,9 +294,7 @@ static int wl1271_boot_upload_nvs(struct wl1271 *wl)
*/
if (wl->nvs_len == sizeof(struct wl1271_nvs_file) ||
wl->nvs_len == WL1271_INI_LEGACY_NVS_FILE_SIZE) {
- /* for now 11a is unsupported in AP mode */
- if (wl->bss_type != BSS_TYPE_AP_BSS &&
- nvs->general_params.dual_mode_select)
+ if (nvs->general_params.dual_mode_select)
wl->enable_11a = true;
}
--
1.7.6.401.g6a319
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] wl12xx: initialize rate_set on band rates initialization
2011-08-23 12:56 [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Eliad Peller
@ 2011-08-23 12:56 ` Eliad Peller
2011-08-25 7:20 ` [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Luciano Coelho
1 sibling, 0 replies; 3+ messages in thread
From: Eliad Peller @ 2011-08-23 12:56 UTC (permalink / raw)
To: Luciano Coelho; +Cc: linux-wireless
In some corner cases, (invalid) 11g rates were used while
working on 11a band.
Take care of it by initializing rate_set according to the
configured band.
Signed-off-by: Eliad Peller <eliad@wizery.com>
---
drivers/net/wireless/wl12xx/main.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 82f4408..9094fa5 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -2199,10 +2199,14 @@ out:
static void wl1271_set_band_rate(struct wl1271 *wl)
{
- if (wl->band == IEEE80211_BAND_2GHZ)
+ if (wl->band == IEEE80211_BAND_2GHZ) {
wl->basic_rate_set = wl->conf.tx.basic_rate;
- else
+ wl->rate_set = wl->conf.tx.basic_rate;
+ } else {
wl->basic_rate_set = wl->conf.tx.basic_rate_5;
+ wl->rate_set = wl->conf.tx.basic_rate_5;
+ }
+
}
static bool wl12xx_is_roc(struct wl1271 *wl)
--
1.7.6.401.g6a319
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices
2011-08-23 12:56 [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Eliad Peller
2011-08-23 12:56 ` [PATCH 2/2] wl12xx: initialize rate_set on band rates initialization Eliad Peller
@ 2011-08-25 7:20 ` Luciano Coelho
1 sibling, 0 replies; 3+ messages in thread
From: Luciano Coelho @ 2011-08-25 7:20 UTC (permalink / raw)
To: Eliad Peller; +Cc: linux-wireless
On Tue, 2011-08-23 at 15:56 +0300, Eliad Peller wrote:
> From: Arik Nemtsov <arik@wizery.com>
>
> There was a check preventing 127x devices from using the 11a band when
> operating as AP. Since we now support this functionality, remove the
> check.
>
> With this patch, a 11a AP starts ok on 127x cards.
>
> Signed-off-by: Arik Nemtsov <arik@wizery.com>
> Signed-off-by: Eliad Peller <eliad@wizery.com>
> ---
Applied both patches to wl12xx.git. Thanks.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-25 7:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23 12:56 [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Eliad Peller
2011-08-23 12:56 ` [PATCH 2/2] wl12xx: initialize rate_set on band rates initialization Eliad Peller
2011-08-25 7:20 ` [PATCH 1/2] wl12xx: allow 11a AP-mode for wl127x devices Luciano Coelho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox