Stanislaw Gruszka and Felix Fietkau
d8f7d2ecbf
mt76: partially unify filling txwi fields
...
Merge code filing txwi fields the same way on mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
81a655afd7
mt76: unify {insert/remove}_hdr_pad
...
Merge insert/remove _hdr_pad from mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
0a17b1e18c
mt76: unify mac_process_rate
...
Merge mac_process_rate from mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
4674502740
mt76: unify send_tx_status and related helpers
...
Merge send_tx_status and helper functions from mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
41e0403540
mt76: unify load_tx_status
...
Unify load/fetch tx status from mt76x0 and mt76x2
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
3977f4881c
mt76: unify txwi and rxwi structures
...
txwi and rxwi are the same for mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
91fce2f79f
mt76: unify sta_rate_tbl_update and related helpers
...
Use common sta_rate_tbl_update on mt76x0 and mt76x2.
mt76x0 do not have support TPC (transmision power control) implmented,
msta->wcid.max_txpwr_adj is only set for mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
82a8c8ae52
mt76: move wcid fields to common mt76_dev struct
...
All current MT devices including new MT7603 type chips support 128
WCIDs, we can unify wcid data in common mt76_dev structure.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
086ea9f42c
mt76: unify sta structure part 2
...
Second part of unifying mt76x02_sta structure between mt76x0 and mt76x2.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
51b74acc22
mt76: use mac_wcid_set_drop in mt76x0
...
Move mt76x02_mac_wcid_set_drop to common code and use it in mt76x0.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
732535e54b
mt76: unify mac_wcid_setup
...
Merge mt76x{0,2}_mac_wcid_setup into common code.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
428625526e
mt76: unify mt76x02_mac_wcid_set_key
...
Merge mt76x{0,2}_mac_wcid_set_key into common code.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
34a95b8bf5
mt76: unify mac_shared_key_setup
...
Merge mt76x{0,2} mac_shared_key_setup into common code.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
55bceeeda2
mt76: unify mac_get_key_info
...
Merge mt76x{0,2} mac_get_key_info into new mt76x02_mac.c file.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Stanislaw Gruszka and Felix Fietkau
493feb90c9
mt76: merge mt76x0/regs.h into mt76x02_regs.h
...
Add missed definitions for mt76x0 into mt76x02_regs.h. Remove
mt76x0/regs.h and fixup mt76x0 code to adjust to some diffrent
registers/fields names.
Signed-off-by: Stanislaw Gruszka <[email protected] >
2018-09-11 13:49:19 +02:00
Lorenzo Bianconi and Felix Fietkau
29f960aa27
mt76: add mt76x2_mac_common to mt76x2-common module
...
Move mac related code shared between mt76x2 and mt76x2u in
mt76x2-common module
Signed-off-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
2018-09-11 13:49:19 +02:00