aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/event.c
diff options
context:
space:
mode:
authorShahar Levi <shahar_levi@ti.com>2011-03-06 09:32:14 -0500
committerLuciano Coelho <coelho@ti.com>2011-04-19 09:49:01 -0400
commitae47c45fd02fdf88d57adc370e78e7a01e2bfcbc (patch)
tree3def0959f5332c2fd1279ffe898db0c554c1f819 /drivers/net/wireless/wl12xx/event.c
parentae77eccf04f8c36769bdba334e1bbcc7bb9d3644 (diff)
wl12xx: 1281/1283 support - Add dummy packet support
Support sending dummy packet to wl128x FW as results of dummy packet event. That is part of dynamic TX mem blocks mechanism. Only send dummy packet when not in AP mode. [Even though the DUMMY_PACKET_EVENT_ID and the STA_REMOVE_COMPLETE_EVENT_ID events are defined to the same value, we need to treat them separately in the code. Keep the check and enable STA_REMOVE_COMPLETE_EVENT_ID for AP mode and DUMMY_PACKET_EVENT_ID for STA. Moved one warning to a cleaner place. Use WL1271_TID_MGMT for dummy packets -- Luca] Signed-off-by: Shahar Levi <shahar_levi@ti.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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c
index 1b170c5cc595..413d901985fe 100644
--- a/drivers/net/wireless/wl12xx/event.c
+++ b/drivers/net/wireless/wl12xx/event.c
@@ -228,6 +228,12 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
228 wl1271_event_rssi_trigger(wl, mbox); 228 wl1271_event_rssi_trigger(wl, mbox);
229 } 229 }
230 230
231 if ((vector & DUMMY_PACKET_EVENT_ID) && !is_ap) {
232 wl1271_debug(DEBUG_EVENT, "DUMMY_PACKET_ID_EVENT_ID");
233 if (wl->vif)
234 wl1271_tx_dummy_packet(wl);
235 }
236
231 if (wl->vif && beacon_loss) 237 if (wl->vif && beacon_loss)
232 ieee80211_connection_loss(wl->vif); 238 ieee80211_connection_loss(wl->vif);
233 239