From: Shiji Yang Date: Thu, 4 Jul 2024 10:35:50 +0000 (+0800) Subject: ath79: fix 5GHz External Antenna A GPIO for BSAP-1840 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8895c51d694ea4b76d5821c41b14a09ff97f858b;p=openwrt%2Fstaging%2Fthess.git ath79: fix 5GHz External Antenna A GPIO for BSAP-1840 Each ath9k device only has 10 gpios. ath9k-0 gpio number range is 502-511, and ath9k-1 gpio number range is 492-501. So "5GHz External Antenna A" gpio line number should be 492 instead of 489. Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/15784 Signed-off-by: Robert Marko --- diff --git a/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches b/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches index 279f518409..dffd412d10 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches @@ -11,7 +11,7 @@ board=$(board_name) case "$board" in adtran,bsap1800-v2|\ adtran,bsap1840) - ucidef_add_gpio_switch "wifi1_ext_a" "5GHz External Antenna A" "489" "1" + ucidef_add_gpio_switch "wifi1_ext_a" "5GHz External Antenna A" "492" "1" ucidef_add_gpio_switch "wifi1_int_a" "5GHz Internal Antenna A" "493" ucidef_add_gpio_switch "wifi1_ext_b" "5GHz External Antenna B" "494" "1" ucidef_add_gpio_switch "wifi1_int_b" "5GHz Internal Antenna B" "495"