mt76: mt7615: fix max wtbl size for 7663

Current mt7663 offload firmware can support up to 32 wtbl entries

Fixes: f40ac0f3d3c0 ("mt76: mt7615: introduce mt7663e support")
Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2020-04-22 18:02:07 +02:00
committed by Felix Fietkau
parent facf74fd50
commit e910787a98
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ int mt76_wcid_alloc(unsigned long *mask, int size)
{
int i, idx = 0, cur;
for (i = 0; i < size / BITS_PER_LONG; i++) {
for (i = 0; i < DIV_ROUND_UP(size, BITS_PER_LONG); i++) {
idx = ffs(~mask[i]);
if (!idx)
continue;