mt76: add mt76x2_tx_common to mt76x2-common module
Subsystems (2)
RFC v3 12/19 mt76: add mt76x2_tx_common to mt76x2-common module
Move tx related code shared between mt76x2 and mt76x2u in mt76x2-common module
Signed-off-by Lorenzo Bianconi <[email protected]>
--- drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 2 + .../net/wireless/mediatek/mt76/mt76x2_tx.c | 123 --------------- .../wireless/mediatek/mt76/mt76x2_tx_common.c | 149 ++++++++++++++++++ 4 files changed, 152 insertions(+), 124 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c
drivers/net/wireless/mediatek/mt76/Makefile +1 -1
@@ -8,7 +8,7 @@ mt76-y := \ CFLAGS_trace.o := -I$(src) mt76x2-common-y := \ - mt76x2_eeprom.o + mt76x2_eeprom.o mt76x2_tx_common.o mt76x2e-y := \ mt76x2_pci.o mt76x2_dma.o \
drivers/net/wireless/mediatek/mt76/mt76x2.h +2 -0
@@ -271,4 +271,6 @@ s8 mt76x2_tx_get_max_txpwr_adj(struct mt76x2_dev *dev,s8 mt76x2_tx_get_txpwr_adj (struct mt76x2_dev *dev,s8 txpwr,s8 max_txpwr_adj);void mt76x2_tx_set_txpwr_auto (struct mt76x2_dev *dev,s8 txpwr); +int mt76x2_insert_hdr_pad (struct sk_buff *skb); +#endif
drivers/net/wireless/mediatek/mt76/mt76x2_tx.c +0 -123
129 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c new file +149 -0
149 lines not on this page · raw message
Signature · 1 line
2.17.1