Skip to content

Commit 829ce7d

Browse files
committed
Add support for Loco5AC
1 parent 10b0c95 commit 829ce7d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

configs/ath79-generic.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac=y
2929
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac-gen2=y
3030
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobridge-m=y
3131
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-ac=y
32+
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-ac-loco=y
3233
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-loco-m=y
3334
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-loco-m-xw=y
3435
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-m=y
@@ -250,6 +251,7 @@ CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac=y
250251
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac-gen2=y
251252
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobridge-m=y
252253
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-ac=y
254+
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-ac-loco=y
253255
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-loco-m=y
254256
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-loco-m-xw=y
255257
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-m=y

files/www/cgi-bin/perlfunc.pm

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,14 @@ sub hardware_info
16741674
'pwroffset' => '4',
16751675
'usechains' => 1,
16761676
},
1677+
'0xe7fa' => {
1678+
'name' => 'NanoStation 5AC loco',
1679+
'comment' => 'NanoStation 5AC loco (WA)',
1680+
'supported' => '1',
1681+
'maxpower' => '22',
1682+
'pwroffset' => '1',
1683+
'usechains' => 1,
1684+
},
16771685
'0xe7fb' => {
16781686
'name' => 'NanoStation 5AC',
16791687
'comment' => 'NanoStation 5AC (WA)',
@@ -1944,9 +1952,9 @@ sub get_interface
19441952
chomp $gi_wifiintf;
19451953
return $gi_wifiintf;
19461954
}
1947-
1955+
19481956
my $gi_config = nvram_get("config");
1949-
my $device = `jsonfilter -q -i /etc/board.json -e @.network.$intf.device`;
1957+
my $device = `jsonfilter -q -i /etc/board.json -e @.network.$intf.device`;
19501958
chomp $device;
19511959
if ( $gi_config eq "" and $device and $intf ne "lan") {
19521960
# firstboot and 1 port hardware and not lan interface

0 commit comments

Comments
 (0)