mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: limit station wtbl entries to avoid conflict with vif/reserved
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#define MT7603_MAX_INTERFACES 4
|
||||
#define MT7603_WTBL_SIZE 128
|
||||
#define MT7603_WTBL_RESERVED (MT7603_WTBL_SIZE - 1)
|
||||
#define MT7603_WTBL_STA (MT7603_WTBL_RESERVED - MT7603_MAX_INTERFACES)
|
||||
|
||||
#define MT7603_RATE_RETRY 2
|
||||
|
||||
|
||||
+1
-1
@@ -221,7 +221,7 @@ mt7603_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
|
||||
mutex_lock(&dev->mutex);
|
||||
|
||||
idx = mt76_wcid_alloc(dev->wcid_mask, ARRAY_SIZE(dev->wcid) - 1);
|
||||
idx = mt76_wcid_alloc(dev->wcid_mask, MT7603_WTBL_STA - 1);
|
||||
if (idx < 0) {
|
||||
ret = -ENOSPC;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user