diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-03-20 20:47:04 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-09-30 20:03:05 +0200 |
commit | 81af5418049ff673ddad0ba9377230bdb13a1f24 (patch) | |
tree | 4fb17772623a0cd9ae701de2461ebcacfc6ad3a3 /drivers/net/wireless/mediatek/mt76/mt7915/init.c | |
parent | c948b5da6bbec742b433138e3e3f9537a85af2e5 (diff) | |
download | lwn-81af5418049ff673ddad0ba9377230bdb13a1f24.tar.gz lwn-81af5418049ff673ddad0ba9377230bdb13a1f24.zip |
wifi: mt76: mt7915 add tc offloading support
This is used for offloading flows from WLAN to Ethernet, or from WLAN to WLAN
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/init.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index f4d77eba7191..81478289f17e 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -344,6 +344,9 @@ mt7915_init_wiphy(struct mt7915_phy *phy) hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE; hw->netdev_features = NETIF_F_RXCSUM; + if (mtk_wed_device_active(&mdev->mmio.wed)) + hw->netdev_features |= NETIF_F_HW_TC; + hw->radiotap_timestamp.units_pos = IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US; |