wl12xx: report the stop_ba event to all STAs in AP-mode
authorArik Nemtsov <arik@wizery.com>
Thu, 22 Sep 2011 06:52:06 +0000 (09:52 +0300)
committerLuciano Coelho <coelho@ti.com>
Fri, 23 Sep 2011 12:59:55 +0000 (15:59 +0300)
Use the AP_MAX_LINKS as the upper boundary for traversing the links array,
thereby guaranteeing BA sessions with all connected STAs are stopped when
the stop_ba event is received.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/event.c

index c73fe4c6b6167652a220ede10dccb31e662613a9..e66db69f8d17e38dd8abd76668fa4aaa06109225 100644 (file)
@@ -181,7 +181,7 @@ static void wl1271_stop_ba_event(struct wl1271 *wl)
        } else {
                int i;
                struct wl1271_link *lnk;
-               for (i = WL1271_AP_STA_HLID_START; i < WL12XX_MAX_LINKS; i++) {
+               for (i = WL1271_AP_STA_HLID_START; i < AP_MAX_LINKS; i++) {
                        lnk = &wl->links[i];
                        if (!wl1271_is_active_sta(wl, i) || !lnk->ba_bitmap)
                                continue;