Commit 49e649c3 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau

mt76: adjust wcid size to support new 802.11ax generation

The newer 802.11ax devices (i.e. MT7915E) can connect to much more
peers than previous generations.
Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 77ae1d5e
...@@ -181,7 +181,7 @@ enum mt76_wcid_flags { ...@@ -181,7 +181,7 @@ enum mt76_wcid_flags {
MT_WCID_FLAG_PS, MT_WCID_FLAG_PS,
}; };
#define MT76_N_WCIDS 128 #define MT76_N_WCIDS 288
/* stored in ieee80211_tx_info::hw_queue */ /* stored in ieee80211_tx_info::hw_queue */
#define MT_TX_HW_QUEUE_EXT_PHY BIT(3) #define MT_TX_HW_QUEUE_EXT_PHY BIT(3)
...@@ -201,7 +201,7 @@ struct mt76_wcid { ...@@ -201,7 +201,7 @@ struct mt76_wcid {
struct ewma_signal rssi; struct ewma_signal rssi;
int inactive_count; int inactive_count;
u8 idx; u16 idx;
u8 hw_key_idx; u8 hw_key_idx;
u8 sta:1; u8 sta:1;
...@@ -268,7 +268,7 @@ struct mt76_rx_tid { ...@@ -268,7 +268,7 @@ struct mt76_rx_tid {
struct mt76_tx_cb { struct mt76_tx_cb {
unsigned long jiffies; unsigned long jiffies;
u8 wcid; u16 wcid;
u8 pktid; u8 pktid;
u8 flags; u8 flags;
}; };
...@@ -445,7 +445,7 @@ struct mt76_mmio { ...@@ -445,7 +445,7 @@ struct mt76_mmio {
struct mt76_rx_status { struct mt76_rx_status {
union { union {
struct mt76_wcid *wcid; struct mt76_wcid *wcid;
u8 wcid_idx; u16 wcid_idx;
}; };
unsigned long reorder_time; unsigned long reorder_time;
...@@ -622,7 +622,7 @@ enum mt76_phy_type { ...@@ -622,7 +622,7 @@ enum mt76_phy_type {
#define mt76_hw(dev) (dev)->mphy.hw #define mt76_hw(dev) (dev)->mphy.hw
static inline struct ieee80211_hw * static inline struct ieee80211_hw *
mt76_wcid_hw(struct mt76_dev *dev, u8 wcid) mt76_wcid_hw(struct mt76_dev *dev, u16 wcid)
{ {
if (wcid <= MT76_N_WCIDS && if (wcid <= MT76_N_WCIDS &&
mt76_wcid_mask_test(dev->wcid_phy_mask, wcid)) mt76_wcid_mask_test(dev->wcid_phy_mask, wcid))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment