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:
Felix Fietkau
2022-11-12 19:56:14 +01:00
parent dd8785a97a
commit 717e72e29f
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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;
+2
View File
@@ -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;