aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/event.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2010-10-25 05:17:44 -0400
committerLuciano Coelho <coelho@ti.com>2011-01-24 15:11:47 -0500
commit203c903cbfbdf23bbb3020b9344dd1ffabcfcb53 (patch)
tree27ee7a1930b6b0067eb69ffbc6852c652d2548d5 /drivers/net/wireless/wl12xx/event.c
parent79b223f4c7ce35fba145c504de12be030cc0007e (diff)
wl12xx: AP mode - add AP specific event
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> Reviewed-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/event.c')
-rw-r--r--drivers/net/wireless/wl12xx/event.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c
index f9146f5242fb..3376a5de09d7 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)
186 int ret; 186 int ret;
187 u32 vector; 187 u32 vector;
188 bool beacon_loss = false; 188 bool beacon_loss = false;
189 bool is_ap = (wl->bss_type == BSS_TYPE_AP_BSS);
189 190
190 wl1271_event_mbox_dump(mbox); 191 wl1271_event_mbox_dump(mbox);
191 192
@@ -218,21 +219,21 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
218 * BSS_LOSE_EVENT, beacon loss has to be reported to the stack. 219 * BSS_LOSE_EVENT, beacon loss has to be reported to the stack.
219 * 220 *
220 */ 221 */
221 if (vector & BSS_LOSE_EVENT_ID) { 222 if ((vector & BSS_LOSE_EVENT_ID) && !is_ap) {
222 wl1271_info("Beacon loss detected."); 223 wl1271_info("Beacon loss detected.");
223 224
224 /* indicate to the stack, that beacons have been lost */ 225 /* indicate to the stack, that beacons have been lost */
225 beacon_loss = true; 226 beacon_loss = true;
226 } 227 }
227 228
228 if (vector & PS_REPORT_EVENT_ID) { 229 if ((vector & PS_REPORT_EVENT_ID) && !is_ap) {
229 wl1271_debug(DEBUG_EVENT, "PS_REPORT_EVENT"); 230 wl1271_debug(DEBUG_EVENT, "PS_REPORT_EVENT");
230 ret = wl1271_event_ps_report(wl, mbox, &beacon_loss); 231 ret = wl1271_event_ps_report(wl, mbox, &beacon_loss);
231 if (ret < 0) 232 if (ret < 0)
232 return ret; 233 return ret;
233 } 234 }
234 235
235 if (vector & PSPOLL_DELIVERY_FAILURE_EVENT_ID) 236 if ((vector & PSPOLL_DELIVERY_FAILURE_EVENT_ID) && !is_ap)
236 wl1271_event_pspoll_delivery_fail(wl); 237 wl1271_event_pspoll_delivery_fail(wl);
237 238
238 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) { 239 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) {