From f1396ac753cc2be0957daf99696198363560591c Mon Sep 17 00:00:00 2001 From: Sven Roederer Date: Thu, 7 Mar 2019 00:09:15 +0100 Subject: [PATCH] ath79: align naming of Ubiquiti Nanostation M Support for the Nanostation M (XW) was added in 40530c8eb with board name "nanostation-m-xw". The current image for the "Nanostation M" uses "nano-m" as the board name. This commit renames it to the full product name as it's used by all other boards. The legacy boardname of the ar71xx target is added via SUPPORTED_DEVICES to ease switching to ath79 target. Signed-off-by: Sven Roederer [touch-ups on the commit message, removed subject remains] Signed-off-by: Christian Lamparter --- target/linux/ath79/base-files/etc/board.d/01_leds | 2 +- ...r7241_ubnt_nano-m.dts => ar7241_ubnt_nanostation-m.dts} | 2 +- target/linux/ath79/image/generic-ubnt.mk | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) rename target/linux/ath79/dts/{ar7241_ubnt_nano-m.dts => ar7241_ubnt_nanostation-m.dts} (70%) diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 0b0dda3bcf..db5a6a4578 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -155,7 +155,7 @@ tplink,tl-wr841-v11) ;; ubnt,bullet-m|\ ubnt,bullet-m-xw|\ -ubnt,nano-m|\ +ubnt,nanostation-m|\ ubnt,nanostation-m-xw|\ ubnt,rocket-m) ucidef_set_rssimon "wlan0" "200000" "1" diff --git a/target/linux/ath79/dts/ar7241_ubnt_nano-m.dts b/target/linux/ath79/dts/ar7241_ubnt_nanostation-m.dts similarity index 70% rename from target/linux/ath79/dts/ar7241_ubnt_nano-m.dts rename to target/linux/ath79/dts/ar7241_ubnt_nanostation-m.dts index ebdc4306e5..eebe65e53f 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_nano-m.dts +++ b/target/linux/ath79/dts/ar7241_ubnt_nanostation-m.dts @@ -4,6 +4,6 @@ #include "ar7241_ubnt_xm_outdoor.dtsi" / { - compatible = "ubnt,nano-m", "ubnt,xm", "qca,ar7241"; + compatible = "ubnt,nanostation-m", "ubnt,xm", "qca,ar7241"; model = "Ubiquiti Nanostation M"; }; diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk index 89b9f6746d..b7e867d8bf 100644 --- a/target/linux/ath79/image/generic-ubnt.mk +++ b/target/linux/ath79/image/generic-ubnt.mk @@ -106,16 +106,17 @@ define Device/ubnt_rocket-m endef TARGET_DEVICES += ubnt_rocket-m -define Device/ubnt_nano-m +define Device/ubnt_nanostation-m $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Nano-M + DEVICE_TITLE := Ubiquiti Nanostation M SUPPORTED_DEVICES += nano-m endef -TARGET_DEVICES += ubnt_nano-m +TARGET_DEVICES += ubnt_nanostation-m define Device/ubnt_nanostation-m-xw $(Device/ubnt-xw) DEVICE_TITLE := Ubiquiti Nanostation M (XW) + SUPPORTED_DEVICES += nano-m-xw endef TARGET_DEVICES += ubnt_nanostation-m-xw -- 2.30.2