Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 162d12de authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k: fix check for antenna diversity support



fixes a regression on single-stream chips introduced in
commit 43c35284
"ath9k: implement .get_antenna and .set_antenna"

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Reported-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent facda29d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -286,7 +286,7 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)
			ath_start_ani(common);
			ath_start_ani(common);
	}
	}


	if (ath9k_hw_ops(ah)->antdiv_comb_conf_get && sc->ant_rx != 3) {
	if ((ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) && sc->ant_rx != 3) {
		struct ath_hw_antcomb_conf div_ant_conf;
		struct ath_hw_antcomb_conf div_ant_conf;
		u8 lna_conf;
		u8 lna_conf;