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 03/18] wl1271: AP mode - add AP specific event
Date: Thu, 30 Dec 2010 01:31:58 +0200 [thread overview]
Message-ID: <1293665533-7599-4-git-send-email-arik@wizery.com> (raw)
In-Reply-To: <1293665533-7599-1-git-send-email-arik@wizery.com>
Add STA-remove completion event. Unmask it during boot if operating in
AP-mode.
Ignore unrelated events in AP-mode.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
---
drivers/net/wireless/wl12xx/boot.c | 3 +++
drivers/net/wireless/wl12xx/event.c | 7 ++++---
drivers/net/wireless/wl12xx/event.h | 1 +
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c
index 4a9f929..bb4f283 100644
--- a/drivers/net/wireless/wl12xx/boot.c
+++ b/drivers/net/wireless/wl12xx/boot.c
@@ -432,6 +432,9 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl)
PSPOLL_DELIVERY_FAILURE_EVENT_ID |
SOFT_GEMINI_SENSE_EVENT_ID;
+ if (wl->bss_type == BSS_TYPE_AP_BSS)
+ wl->event_mask |= STA_REMOVE_COMPLETE_EVENT_ID;
+
ret = wl1271_event_unmask(wl);
if (ret < 0) {
wl1271_error("EVENT mask setting failed");
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c
index f9146f5..3376a5d 100644
--- a/drivers/net/wireless/wl12xx/event.c
+++ b/drivers/net/wireless/wl12xx/event.c
@@ -186,6 +186,7 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
int ret;
u32 vector;
bool beacon_loss = false;
+ bool is_ap = (wl->bss_type == BSS_TYPE_AP_BSS);
wl1271_event_mbox_dump(mbox);
@@ -218,21 +219,21 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
* BSS_LOSE_EVENT, beacon loss has to be reported to the stack.
*
*/
- if (vector & BSS_LOSE_EVENT_ID) {
+ if ((vector & BSS_LOSE_EVENT_ID) && !is_ap) {
wl1271_info("Beacon loss detected.");
/* indicate to the stack, that beacons have been lost */
beacon_loss = true;
}
- if (vector & PS_REPORT_EVENT_ID) {
+ if ((vector & PS_REPORT_EVENT_ID) && !is_ap) {
wl1271_debug(DEBUG_EVENT, "PS_REPORT_EVENT");
ret = wl1271_event_ps_report(wl, mbox, &beacon_loss);
if (ret < 0)
return ret;
}
- if (vector & PSPOLL_DELIVERY_FAILURE_EVENT_ID)
+ if ((vector & PSPOLL_DELIVERY_FAILURE_EVENT_ID) && !is_ap)
wl1271_event_pspoll_delivery_fail(wl);
if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) {
diff --git a/drivers/net/wireless/wl12xx/event.h b/drivers/net/wireless/wl12xx/event.h
index 6cce014..fd955f3 100644
--- a/drivers/net/wireless/wl12xx/event.h
+++ b/drivers/net/wireless/wl12xx/event.h
@@ -59,6 +59,7 @@ enum {
BSS_LOSE_EVENT_ID = BIT(18),
REGAINED_BSS_EVENT_ID = BIT(19),
ROAMING_TRIGGER_MAX_TX_RETRY_EVENT_ID = BIT(20),
+ STA_REMOVE_COMPLETE_EVENT_ID = BIT(21), /* AP */
SOFT_GEMINI_SENSE_EVENT_ID = BIT(22),
SOFT_GEMINI_PREDICTION_EVENT_ID = BIT(23),
SOFT_GEMINI_AVALANCHE_EVENT_ID = BIT(24),
--
1.7.1
next prev 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 ` Arik Nemtsov [this message]
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 ` [PATCH v4 18/18] wl1271: Enable AP-mode Arik Nemtsov
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-4-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).