mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
correct mt76_wcid_alloc()
Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
@@ -198,15 +198,16 @@ mt76_wcid_alloc(struct mt76_dev *dev)
|
||||
if (!idx)
|
||||
continue;
|
||||
|
||||
if (idx > 247)
|
||||
return -1;
|
||||
|
||||
idx--;
|
||||
dev->wcid_mask[i] |= BIT(idx);
|
||||
return i * BITS_PER_LONG + idx;
|
||||
break;
|
||||
}
|
||||
|
||||
return -1;
|
||||
idx = i * BITS_PER_LONG + idx;
|
||||
if (idx > 247)
|
||||
return -1;
|
||||
|
||||
return idx;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user