mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: declare netdev support for scatter/gather on 7915e and 7921e
This helps with locally generated TCP traffic to avoid unnecessary data copying. Also bump the maximum number of fragments to the limit imposed by the firmware txp struct. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ mt7915_init_wiphy(struct ieee80211_hw *hw)
|
||||
hw->queues = 4;
|
||||
hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
|
||||
hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
|
||||
hw->netdev_features = NETIF_F_RXCSUM;
|
||||
hw->netdev_features = NETIF_F_RXCSUM | NETIF_F_SG;
|
||||
|
||||
hw->radiotap_timestamp.units_pos =
|
||||
IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US;
|
||||
|
||||
@@ -56,6 +56,8 @@ mt7921_init_wiphy(struct ieee80211_hw *hw)
|
||||
hw->max_rx_aggregation_subframes = 256;
|
||||
hw->max_tx_aggregation_subframes = 256;
|
||||
hw->netdev_features = NETIF_F_RXCSUM;
|
||||
if (mt76_is_mmio(&dev->mt76))
|
||||
hw->netdev_features |= NETIF_F_SG;
|
||||
|
||||
hw->radiotap_timestamp.units_pos =
|
||||
IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US;
|
||||
|
||||
Reference in New Issue
Block a user