mt76: mt76x0e: another fix for the external PA current setting
authorFelix Fietkau <nbd@nbd.name>
Tue, 9 Oct 2018 08:44:36 +0000 (10:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 13 Oct 2018 15:39:36 +0000 (17:39 +0200)
commitebb632db0f0789d2216fc0e78dd950681b569036
tree42a76744daf5dab5f7e9a3b2054062f8593df21a
parent69585ef9bb9f326baaad27d7579b3dfaf42bf1e7
mt76: mt76x0e: another fix for the external PA current setting

- Use the register number define instead of a magic value
- Fix inverted bit test (override needs to be applied if the bit is not set)

Fixes: 2b2cb40bcd7d ("mt76x0: pci: add hw initialization at bootstrap")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c