]> asedeno.scripts.mit.edu Git - linux.git/commit
mt76x0: antenna select corrections
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 18 Oct 2018 10:15:31 +0000 (12:15 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:40 +0000 (12:21 +0100)
commitef442b73b6bc36b5499e1983611abb46e6337975
tree91f0fbcc42d5841d5fdc8b7ce945d3e589f589b9
parente0168dc675e2b5fd36b2f3792966963c4feb0423
mt76x0: antenna select corrections

Update mt76x0_phy_ant_select() to conform vendor driver, most notably
add dual antenna mode support, read configuration from EEPROM and
move ant select out of channel config to init phase. Plus small MT7630E
quirk for MT_CMB_CTRL register which vendor driver dedicated to this
chip do.

This make MT7630E workable with mt76x0e driver and do not cause any
problems on MT7610U for me.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.h