From 16e33b5306bd7c85817b0cd81064f5ea0b1c8109 Mon Sep 17 00:00:00 2001 From: Joe Ayers Date: Wed, 27 May 2020 17:04:12 -0700 Subject: [PATCH] aredn: add new Mikrotik model strings for RBLHG-5nD and RBLHG-2nD-XL --- files/www/cgi-bin/perlfunc.pm | 18 ++++++++++++++++++ patches/006-add-lhg-5hpnd.patch | 6 +++++- patches/008-add-lhg.patch | 3 ++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/perlfunc.pm b/files/www/cgi-bin/perlfunc.pm index 0663cd85..c17470f0 100644 --- a/files/www/cgi-bin/perlfunc.pm +++ b/files/www/cgi-bin/perlfunc.pm @@ -1249,6 +1249,15 @@ sub hardware_info 'usechains' => 1, 'rfband' => '5800ubntus', }, + 'MikroTik RouterBOARD RBLHG-5nD' => { + 'name' => 'MikroTik RouterBOARD RBLHG-5nD', + 'comment' => '', + 'supported' => '1', + 'maxpower' => '25', + 'pwroffset' => '0', + 'usechains' => 1, + 'rfband' => '5800ubntus', + }, 'MikroTik RouterBOARD LHG 2nD' => { 'name' => 'MikroTik RouterBOARD LHG 2nD', 'comment' => '', @@ -1285,6 +1294,15 @@ sub hardware_info 'usechains' => 1, 'rfband' => '2400', }, + 'MikroTik RouterBOARD RBLHG-2nD-XL' => { + 'name' => 'MikroTik RouterBOARD RBLHG-2nD-XL', + 'comment' => '', + 'supported' => '1', + 'maxpower' => '25', + 'pwroffset' => '0', + 'usechains' => 1, + 'rfband' => '2400', + }, 'MikroTik RouterBOARD LHG 5HPnD' => { 'name' => 'MikroTik RouterBOARD LHG 5HPnD', 'comment' => '', diff --git a/patches/006-add-lhg-5hpnd.patch b/patches/006-add-lhg-5hpnd.patch index 9c92023b..86ec14ca 100644 --- a/patches/006-add-lhg-5hpnd.patch +++ b/patches/006-add-lhg-5hpnd.patch @@ -38,7 +38,11 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh =================================================================== --- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -528,6 +528,9 @@ mikrotik_board_detect() { +@@ -525,9 +525,13 @@ mikrotik_board_detect() { + *"962UiGS-5HacT2HnT") + name="rb-962uigs-5hact2hnt" + ;; ++ *"LHG-5nD"|\ *"LHG 5nD") name="rb-lhg-5nd" ;; diff --git a/patches/008-add-lhg.patch b/patches/008-add-lhg.patch index 766dcb12..9c7ca749 100644 --- a/patches/008-add-lhg.patch +++ b/patches/008-add-lhg.patch @@ -2,7 +2,7 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh =================================================================== --- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh -@@ -528,12 +528,30 @@ mikrotik_board_detect() { +@@ -529,12 +529,31 @@ mikrotik_board_detect() { *"LHG 5nD") name="rb-lhg-5nd" ;; @@ -18,6 +18,7 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh *"LHG 5HPnD-XL") name="rb-lhg-5hpnd-xl" ;; ++ *"LHG-2nD-XL"|\ + *"LHG 2nD-XL") + name="rb-lhg-5hpnd-xl" + ;;