hardware: Add support to obtain boardid from more Ubiquiti devices.

Obtain the board ID from the EEPROM on *-m-xw devices.

ref AREDN->ticket:185
ref AREDN->ticket:43

Change-Id: I86247640773a1f6cbd3c4792502d7da4890a46a4
This commit is contained in:
Conrad Lara - KG6JEI 2016-09-23 22:30:25 -07:00
parent 1b65f8a3ad
commit 717b39c2fd
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ if [ ! -f /tmp/sysinfo/boardid ]; then
ar71xx_board_detect
case $AR71XX_MODEL in
loco-m-xw)
*-m-xw)
BOARDID=$(dd if=/dev/mtd7 bs=1 skip=12 count=2 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
BOARDID="0x${BOARDID}"
;;

View File

@ -1321,7 +1321,7 @@ sub hardware_info
'usechains' => 1,
'rfband' => '5800ubntus',
},
'Ubiquiti Nanostation M XW' => {
'0xe855' => {
'name' => 'NanoStation M5 XW',
'comment' => 'NanoStation M5 XW',
'supported' => '1',
@ -1348,7 +1348,7 @@ sub hardware_info
'usechains' => 1,
'rfband' => '5800ubntus',
},
'Ubiquiti Rocket M XW' => {
'0xe6b5' => {
'name' => 'Rocket M5 XW',
'comment' => 'Rocket M5 XW 0xe6b5 (in testing)',
'supported' => '-2',