File tree Expand file tree Collapse file tree
drivers/net/wireless/mediatek/mt76/mt7915 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,6 +344,9 @@ mt7915_init_wiphy(struct mt7915_phy *phy)
344344 hw -> max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE ;
345345 hw -> netdev_features = NETIF_F_RXCSUM ;
346346
347+ if (mtk_wed_device_active (& mdev -> mmio .wed ))
348+ hw -> netdev_features |= NETIF_F_HW_TC ;
349+
347350 hw -> radiotap_timestamp .units_pos =
348351 IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US ;
349352
Original file line number Diff line number Diff line change @@ -1653,6 +1653,20 @@ mt7915_net_fill_forward_path(struct ieee80211_hw *hw,
16531653
16541654 return 0 ;
16551655}
1656+
1657+ static int
1658+ mt7915_net_setup_tc (struct ieee80211_hw * hw , struct ieee80211_vif * vif ,
1659+ struct net_device * netdev , enum tc_setup_type type ,
1660+ void * type_data )
1661+ {
1662+ struct mt7915_dev * dev = mt7915_hw_dev (hw );
1663+ struct mtk_wed_device * wed = & dev -> mt76 .mmio .wed ;
1664+
1665+ if (!mtk_wed_device_active (wed ))
1666+ return - EOPNOTSUPP ;
1667+
1668+ return mtk_wed_device_setup_tc (wed , netdev , type , type_data );
1669+ }
16561670#endif
16571671
16581672const struct ieee80211_ops mt7915_ops = {
@@ -1707,5 +1721,6 @@ const struct ieee80211_ops mt7915_ops = {
17071721 .set_radar_background = mt7915_set_radar_background ,
17081722#ifdef CONFIG_NET_MEDIATEK_SOC_WED
17091723 .net_fill_forward_path = mt7915_net_fill_forward_path ,
1724+ .net_setup_tc = mt7915_net_setup_tc ,
17101725#endif
17111726};
You can’t perform that action at this time.
0 commit comments