From: Eyal Shapira Date: Sun, 7 Dec 2014 16:18:27 +0000 (+0200) Subject: iwlwifi: mvm: rs: fix max rate allowed if no rate is allowed X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~130^2~129^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a028d9a26446a937fa5c2eaca9407985ef98add;p=pandora-kernel.git iwlwifi: mvm: rs: fix max rate allowed if no rate is allowed In case the rate mask for one of the modulations was zero the max rate idx for that modulation was set to 32 (BITS_PER_LONG). This is bad as it would later lead to an out of bounds access to the expected tpt table. In most cases there was no real effect as the expected tpt was set to 0 and this led to avoiding the modulation effectively. Fix the out of bounds access and explicitly skip the modulation in case there's no rate allowed in it. Signed-off-by: Eyal Shapira Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed