linux/drivers/net/wireless/brcm80211
Emil Goode f8adaf0ae9 brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()
In the brcmf_count_20mhz_channels function we are looping through a list
of channels received from firmware. Since the index of the first channel
is 0 the condition leads to an off by one bug. This is causing us to hit
the WARN_ON_ONCE(1) calls in the brcmu_d11n_decchspec function, which is
how I discovered the bug.

Introduced by:
commit b48d891676
("brcmfmac: rework wiphy structure setup")

Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-09-23 10:48:26 -04:00
..
brcmfmac brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels() 2014-09-23 10:48:26 -04:00
brcmsmac Merge tag 'master-2014-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next 2014-07-28 17:36:25 -07:00
brcmutil brcmutil: assure unused bits are cleared in 11n chanspec 2014-05-29 13:10:25 -04:00
include brcmfmac: Adding PCIe bus layer support. 2014-07-31 13:45:26 -04:00
Kconfig brcmfmac: conditionally compile firmware protocol source code 2014-09-15 15:09:26 -04:00
Makefile brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00