mt7603: limit station wtbl entries to avoid conflict with vif/reserved

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-06 20:43:33 +01:00
parent 71eb2aa7d2
commit 2b3abe580c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
View File
@@ -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;