firmware/src/packages/fff/fff-wireless/files/etc/uci-defaults/24b-config-wireless

42 lines
913 B
Plaintext
Raw Normal View History

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright 2018 Adrian Schmutzler
BOARD="$(uci get board.model.name)"
# antenna gain
case "$BOARD" in
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
tplink,tl-wr1043nd-v1)
uci set wireless.radio0.antenna_gain=3
uci commit wireless
;;
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
ubnt,nanostation-loco-m|\
ubnt,nanostation-loco-m-xw)
uci set wireless.radio0.antenna_gain=9
uci commit wireless
;;
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
ubnt,nanostation-m)
uci set wireless.radio0.antenna_gain=11
uci commit wireless
;;
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
ubnt,picostation-m)
uci set wireless.radio0.antenna_gain=12
uci commit wireless
;;
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
ubnt,unifi)
# No support for Unifi AP Pro!
uci set wireless.radio0.antenna_gain=3
uci commit wireless
;;
treewide: move devices from ar71xx to ath79 This patch moves device support for ar71xx devices that are supported in ath79. Building them with ath79 will be the new default. The only devices remaining in ar71xx will be the following, as backporting them to openwrt-19.07 is too complicated: - cpe210-v1 - cpe510-v1 Accordingly, no tiny devices are left in ar71xx and we can drop the relevant patches, and build ar71xx as generic again. For the tl-wr741nd-v2, in ath79 the tplink_tl-wr741-v1 image is used. The move from ar71xx to ath79 requires some adjustments on the way: - The board names and image names on ath79 contain the vendor name, where the former have it separated by a comma (tplink,cpe210-v2) and the latter use an underscore (tplink_cpe210-v2). It is safe to assume that this is the only difference between board and image names. Consequently, the ath79 devices will use their full board name also in our firmware. A lot of renames in fff-boardname can be dropped. The rename for fff-sysupgrade is already present in fff-upgrade.sh While at it, fix that for the WDR4900 v1 as well. - Due to a different switch driver, the startup of ethernet devices is altered, which leads to eth0 and eth1 being swapped for some ath79 devices compared to ar71xx. This has been adjusted for SWITCHDEV/WANDEV and MAC address setup. - Since we have direct support for the AC Mesh now, use the proper name instead of the AC Lite image. For Ubiquiti, different device variants are now available as separate images. - Remove left-over power-m-xw entry in cpuport file Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de>
2020-05-17 00:52:33 +02:00
ubnt,unifiac-mesh)
uci set wireless.radio0.antenna_gain=4
uci set wireless.radio1.antenna_gain=3
uci commit wireless
;;
esac
# rssileds: always disable if package is installed
[ -x "/etc/init.d/rssileds" ] && /etc/init.d/rssileds disable
exit 0