From: Arik Nemtsov Date: Thu, 22 Sep 2011 06:52:06 +0000 (+0300) Subject: wl12xx: report the stop_ba event to all STAs in AP-mode X-Git-Tag: firefly_0821_release~3680^2~4273^2~183^2~38^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b661895a195f244097a60d4d4c9f09983d7efc7;p=firefly-linux-kernel-4.4.55.git wl12xx: report the stop_ba event to all STAs in AP-mode 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 Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c index c73fe4c6b616..e66db69f8d17 100644 --- a/drivers/net/wireless/wl12xx/event.c +++ b/drivers/net/wireless/wl12xx/event.c @@ -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;