]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix per-driver wcid range checks after wcid array size bump
authorFelix Fietkau <nbd@nbd.name>
Wed, 20 May 2020 06:04:47 +0000 (08:04 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 28 May 2020 15:55:30 +0000 (17:55 +0200)
commitcaaef0ea4afb231935900601df48a0c021870b68
tree0053b6dea0c58f3a8495cec9dbf0972c0002d1a5
parente9aea37c81dec949bca087b5591154d31e4ecd68
mt76: fix per-driver wcid range checks after wcid array size bump

All drivers before MT7915 have a limit of 128 WCID entries. Stop relying
on ARRAY_SIZE(dev->mt76.wcid), since it no longer reflects that limit.

Fixes: 637f5d60c86b ("mt76: adjust wcid size to support new 802.11ax generation")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt76x02.h
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.c