From f833b38e040091559e0a7e0748ff20c85923568e Mon Sep 17 00:00:00 2001 From: Patrick Dickey Date: Sat, 9 Feb 2019 20:02:16 -0600 Subject: [PATCH] Adding support for the TP-Link WBS210 version 1. --- README.md | 1 + configs/ar71xx-generic.config | 1 + files/www/cgi-bin/admin | 13 ++++++++++--- files/www/cgi-bin/perlfunc.pm | 10 ++++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8975691b..ff7ab0ce 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ TPLink CPE510 v1.0/v1.1 | cpe510-520-v1 | 64Mb | stable TPLink CPE510 v2.0 | cpe510-v2 | 64Mb | stable TPLink CPE510 v3.0 | cpe510-v3 | 64Mb | stable TPLink CPE610 v1.0 | cpe610-v1 | 64Mb | stable +TPLink WBS210 v1.0 | wbs210-v1 | 64mb | stable Mikrotik Basebox RB912UAG-5HPnD/2HPnD | mikrotik-nand-large | 64Mb | stable Mikrotik hAP ac lite 952Ui-5ac2nD | mikrotik-rb-nor-flash-16M-ac | 64Mb | stable Mikrotik RBLHG-5nD | mikrotik-rb-nor-flash-16M | 64Mb | stable diff --git a/configs/ar71xx-generic.config b/configs/ar71xx-generic.config index 69ad472d..6e07bd81 100644 --- a/configs/ar71xx-generic.config +++ b/configs/ar71xx-generic.config @@ -10,6 +10,7 @@ CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe510-520-v1=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe510-v2=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe510-v3=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe610-v1=y +CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_wbs210-v1=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-airrouter=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-bullet-m=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-loco-m-xw=y diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 0fc719bf..55ad27d7 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -154,7 +154,10 @@ if(${hardwaretype} eq "nanostation-m") ${hardwaretypev}= "510-520-v1" ; # CPE510 V1.0/v1.1 } elsif($hwmodel =~ /CPE610/i) { ${hardwaretypev}= "610-v1" ; # CPE610 V1.0 - } + } elsif($hwmodel =~ /WBS210 v1\.[012]/i) { + $mfgprefix="wbs"; + ${hardwaretypev}= "210-v1" ; # WBS210 v1.0/v1.1 + } } else { ${hardwaretypev}=${hardwaretype}; } @@ -615,8 +618,12 @@ print < '5800ubntus', 'chanpower' => { 133 => '15', 141 => '26', 143 => '25' , 149 => '15' , 165 => '14', 166 => '25' }, }, + 'TP-Link WBS210 v1.20' => { + 'name' => 'TP-Link WBS210 v1.20', + 'comment' => '', + 'supported' => '1', + 'maxpower' => '27', + 'pwroffset' => '0', + 'usechains' => '1', + 'rfband' => '2400', + 'chanpower' => { 1 => '13', 10 => '18', 11 => '13', 14 => '27' }, + }, 'Mikrotik RouterBOARD 911G-5HPnD' => { 'name' => 'Mikrotik RouterBOARD 911G-5HPnD', 'comment' => '',