linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arik Nemtsov <arik@wizery.com>
To: <linux-wireless@vger.kernel.org>
Cc: Luciano Coelho <luciano.coelho@nokia.com>,
	Arik Nemtsov <arik@wizery.com>
Subject: [PATCH v4 18/18] wl1271: Enable AP-mode
Date: Thu, 30 Dec 2010 01:32:13 +0200	[thread overview]
Message-ID: <1293665533-7599-19-git-send-email-arik@wizery.com> (raw)
In-Reply-To: <1293665533-7599-1-git-send-email-arik@wizery.com>

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>
---
 drivers/net/wireless/wl12xx/boot.c |    4 +++-
 drivers/net/wireless/wl12xx/main.c |    5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
index b2f0f64..f2a3513 100644
--- a/drivers/net/wireless/wl12xx/boot.c
+++ b/drivers/net/wireless/wl12xx/boot.c
@@ -233,7 +233,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;
 	}
 
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 78d6155..8a35491 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -1073,6 +1073,9 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
 		wl->bss_type = BSS_TYPE_IBSS;
 		wl->set_bss_type = BSS_TYPE_STA_BSS;
 		break;
+	case NL80211_IFTYPE_AP:
+		wl->bss_type = BSS_TYPE_AP_BSS;
+		break;
 	default:
 		ret = -EOPNOTSUPP;
 		goto out;
@@ -3136,7 +3139,7 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
 	wl->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
 
 	wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
-		BIT(NL80211_IFTYPE_ADHOC);
+		BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_AP);
 	wl->hw->wiphy->max_scan_ssids = 1;
 	/*
 	 * Maximum length of elements in scanning probe request templates
-- 
1.7.1


  parent reply	other threads:[~2010-12-29 23:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-29 23:31 [PATCH v4 00/18] AP mode support for wl12xx Arik Nemtsov
2010-12-29 23:31 ` [PATCH v4 01/18] wl1271: Add AP related configuration to conf_drv_settings Arik Nemtsov
2010-12-29 23:31 ` [PATCH v4 02/18] wl1271: AP mode - AP specific CMD_CONFIGURE sub-commands Arik Nemtsov
2010-12-29 23:31 ` [PATCH v4 03/18] wl1271: AP mode - add AP specific event Arik Nemtsov
2010-12-29 23:31 ` [PATCH v4 04/18] wl1271: AP-mode high level commands Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 05/18] wl1271: AP mode - workaround for FW bug on station remove Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 06/18] wl1271: AP mode - init sequence Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 07/18] wl1271: AP specific RX filter configuration Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 08/18] wl1271: Add AP related definitions to HOST-FW interface Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 09/18] wl1271: Configure AP on BSS info change Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 10/18] wl1271: AP mode config in ieee80211_ops.config Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 11/18] wl1271: AP mode - change filter config Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 12/18] wl1271: AP mode - add STA add/remove ops Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 13/18] wl1271: AP mode - changes in TX path Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 14/18] wl1271: AP mode - record TX configuration settings Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 15/18] wl1271: AP mode - encryption support Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 16/18] wl1271: AP mode - fetch appropriate firmware for AP Arik Nemtsov
2010-12-29 23:32 ` [PATCH v4 17/18] wl1271: Read MAC address from NVS file on HW startup Arik Nemtsov
2010-12-29 23:32 ` Arik Nemtsov [this message]
2011-01-10 16:03 ` [PATCH v4 00/18] AP mode support for wl12xx Luciano Coelho

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=1293665533-7599-19-git-send-email-arik@wizery.com \
    --to=arik@wizery.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luciano.coelho@nokia.com \
    /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;
as well as URLs for NNTP newsgroup(s).