From 3fb64fda99974c3afbfd5e75e62baaee0acc4c2b Mon Sep 17 00:00:00 2001 From: Matias Richart Date: Wed, 11 Jan 2017 20:28:21 +0100 Subject: [PATCH] wifi: (fixes #2607) Correct overflow in channel width loop in Minstrel HT --- RELEASE_NOTES | 1 + src/wifi/model/minstrel-ht-wifi-manager.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index b9cd4658a..30c77ae7d 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -61,6 +61,7 @@ Bugs fixed - Bug 2591 - 802.11e Block Ack mechanism cannot be enabled on HT/VHT stations - Bug 2594 - vht-wifi-network provides very low throughtput at MCS 6, 160 MHz, SGI - Bug 2605 - A HT/VHT station transmitting to a legacy access point results in a null throughput +- Bug 2607 - Minstrel HT manager results in an endless loop when a 802.11ac station is transmitting to a 802.11a access point - Bug 2614 - RIP header version should be set to 2 Known issues diff --git a/src/wifi/model/minstrel-ht-wifi-manager.cc b/src/wifi/model/minstrel-ht-wifi-manager.cc index de351a736..40a8d9857 100644 --- a/src/wifi/model/minstrel-ht-wifi-manager.cc +++ b/src/wifi/model/minstrel-ht-wifi-manager.cc @@ -260,7 +260,7 @@ MinstrelHtWifiManager::DoInitialize () if (HasVhtSupported ()) { // Initialize all VHT groups - for (uint8_t chWidth = 20; chWidth <= MAX_VHT_WIDTH; chWidth *= 2) + for (uint16_t chWidth = 20; chWidth <= MAX_VHT_WIDTH; chWidth *= 2) { for (uint8_t sgi = 0; sgi <= 1; sgi++) {