Felix Fietkau 984a172609 mt76: fix wcid allocation issues
mt76 core uses ffs() to find the next free bit. This works well for 32 bit
architectures where BITS_PER_LONG is 32. ffs only checks 32 bit values, so
allocation fails on 64 bit architectures.
Additionally, the wcid mask array was too small in cases where the array
was not a multiple of BITS_PER_LONG.
Fix this by making the wcid mask array u32 instead and use DIV_ROUND_UP
for the size, just in case we ever bump it to a value that's not a multiple
of 32.

Signed-off-by: Felix Fietkau <[email protected]>
2020-05-23 14:42:49 +02:00
2020-05-12 19:22:30 +02:00
2020-05-20 10:37:11 +02:00
2015-12-13 17:54:16 +01:00
2020-05-20 10:37:11 +02:00
2020-05-23 14:42:49 +02:00
2020-05-20 10:37:11 +02:00
2020-04-17 14:46:00 +02:00
2019-08-22 09:26:30 +02:00
2020-05-23 14:42:49 +02:00
2020-05-23 14:42:49 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%