summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/boot.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2010-10-16 21:53:24 +0200
committerLuciano Coelho <coelho@ti.com>2011-01-24 22:11:51 +0200
commit038d925bcfed8df4d16bab57c2b5a4de6ede7847 (patch)
tree9896e571fc5eb8364493f81ea62af973ed7eecca /drivers/net/wireless/wl12xx/boot.c
parent31d26ec6992cc05cfd5e50a59b00b0d64c7bb4aa (diff)
downloadblackbird-op-linux-038d925bcfed8df4d16bab57c2b5a4de6ede7847.tar.gz
blackbird-op-linux-038d925bcfed8df4d16bab57c2b5a4de6ede7847.zip
wl12xx: Enable AP-mode
Indicate support for the NL80211_IFTYPE_AP interface mode to enable AP mode operation. Disable 11a when operating in AP-mode (unsupported for now). Signed-off-by: Arik Nemtsov <arik@wizery.com> Reviewed-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/boot.c')
-rw-r--r--drivers/net/wireless/wl12xx/boot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
index 2b1019f67d27..d7e036f42958 100644
--- a/drivers/net/wireless/wl12xx/boot.c
+++ b/drivers/net/wireless/wl12xx/boot.c
@@ -232,7 +232,9 @@ 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) {
- if (wl->nvs->general_params.dual_mode_select)
+ /* for now 11a is unsupported in AP mode */
+ if (wl->bss_type != BSS_TYPE_AP_BSS &&
+ wl->nvs->general_params.dual_mode_select)
wl->enable_11a = true;
}
OpenPOWER on IntegriCloud