From 8895c51d694ea4b76d5821c41b14a09ff97f858b Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Thu, 4 Jul 2024 18:35:50 +0800 Subject: [PATCH] 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 --- .../linux/ath79/generic/base-files/etc/board.d/03_gpio_switches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 279f518409c9..dffd412d10fc 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" -- 2.30.2