Commit Graph

667 Commits

Author SHA1 Message Date
AE6XE b2edc2472b bugfix: Add support to obtain boardid from more Ubiquiti devices
Change-Id: I60ad4d23339c4aaf59b429c49fa705dbbe49ba8e
2016-09-30 20:41:33 -07:00
AE6XE 9ec5e2132d bugfix: Basic Setup - WAN proto stuck in dhcp mode
Change-Id: I3a66a027e71fb97f518795e8cc8172fb7aef86f0
2016-09-24 10:52:39 -07:00
Conrad Lara - KG6JEI 0741cf61fc bugfix: NanoBeam M5 XW hardware definition.
Adjust power levels to reflect what is in the board.info

This was likely a typo when I put the device in the first time.

In addition adjust naming to match Ubiquiti device rename.

{{{
board.sysid=0xe4e5
board.cpurevision=0x00001122
board.name=PowerBeam M5
board.shortname=P5B
board.subtype=400
board.netmodes=7
board.hwaddr=0418D65EEB39
board.reboot=40
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
radio.1.name=
radio.1.shortname=
radio.1.bus=ahb
radio.1.subsystemid=0xe4e5
radio.1.subvendorid=0x0777
radio.1.txpower.max=26
radio.1.txpower.offset=4
radio.1.antennas=2
radio.1.def_antenna=1
radio.1.antenna.1.id=1
radio.1.antenna.1.name=400
radio.1.antenna.1.gain=25
radio.1.antenna.2.id=2
radio.1.antenna.2.name=Feed only
radio.1.antenna.2.gain=3
}}}

ref AREDN->ticket:185

Change-Id: I71d2a944b6abb9e30862d7ada7f46b80df2c731c
2016-09-24 08:37:02 -07:00
Conrad Lara - KG6JEI 717b39c2fd 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
2016-09-24 08:28:31 -07:00
Conrad Lara - KG6JEI 1b65f8a3ad bugfix: UI allows enabling mesh_gw when wan disabled or nat mode
Mesh nodes would need a significant amount of configuration
including some operational checks everytime an interface comes up
to be able to handle this.

The more sane method is to only allow a node to be a mesh_gw when
the WAN port is utilized and the node is in DIRECT mode.

This changes the UI to prevent this setup from being allowed.

fixes AREDN->ticket:184

Change-Id: I1a1289bc914a349149f5842812dbebc0a70442f7
2016-09-20 23:09:03 -07:00
Conrad Lara - KG6JEI bb83809472 hardware: Testing support for CPE210 v1.1
Add board definition for CPE210 v1.1 in testing mode.

{{{
 ========== iw phy phy0 info ==========
 Wiphy phy0
	max # scan SSIDs: 4
	max scan IEs length: 2257 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 9 (up to 4050m)
	Device supports AP-side u-APSD.
	Device supports T-DLS.
	Available Antennas: TX 0x3 RX 0x3
	Configured Antennas: TX 0x3 RX 0x3
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * WDS
		 * monitor
		 * mesh point
		 * P2P-client
		 * P2P-GO
		 * outside context of a BSS
	Band 1:
		Capabilities: 0x11ef
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-15
		Frequencies:
			* 2397 MHz [-2] (30.0 dBm)  <-- This is kernel fallback when channel is
			* 2402 MHz [-1] (30.0 dBm)  <-- not defined in radio EEPROM, set to 22 instead
			* 2412 MHz [1] (22.0 dBm)
			* 2417 MHz [2] (23.0 dBm)
			* 2422 MHz [3] (23.0 dBm)
			* 2427 MHz [4] (23.0 dBm)
			* 2432 MHz [5] (23.0 dBm)
			* 2437 MHz [6] (23.0 dBm)
			* 2442 MHz [7] (23.0 dBm)
			* 2447 MHz [8] (23.0 dBm)
			* 2452 MHz [9] (23.0 dBm)
			* 2457 MHz [10] (23.0 dBm)
			* 2462 MHz [11] (23.0 dBm)
			* 2467 MHz [12] (30.0 dBm)  <-- This is also kernel fallback
			* 2472 MHz [13] (30.0 dBm)  <-- Set to 23 instead as that was was above
			* 2484 MHz [14] (30.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
		   total <= 2048, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }
		 * #{ WDS } <= 2048,
		   total <= 2048, #channels <= 1, STA/AP BI must match
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
}}}

ref AREDN->ticket:183

Change-Id: I00e52b80ce5f8e8a774c7bae7d946a6dab73bacf
2016-09-18 17:49:46 +00:00
Conrad Lara - KG6JEI ace8e365cb build environment: Build tests add LUA support and unify tests.
Primary purpose is to add LUA support.

While adding LUA support we will be replacing some files with LUA equivalents.

By uniforming the tests under single scripts for each folder file renames will less impact test results order.

Change-Id: I067ffc994bc60b8c872710c686022117801f65ea
2016-09-18 01:48:50 +00:00
Conrad Lara - KG6JEI 64eb08bdba bugfix: Help document incorrectly states web login password is encrypted.
User UI login uses http-basic authentication which is just base64 encoded
for transit but not encrypted.

This is a long standing error in documentation.

Change-Id: Ib3e49533b2acb32496e5e2a9b9b93e1436bc5f0d
2016-09-13 13:43:18 -07:00
Darryl Quinn 3457b040d8 add initial AREDN lua libraries
Change-Id: Id99b64bf603fdff48c6f527a1493311e9ed3f19e
2016-09-07 02:26:55 +00:00
Darryl Quinn 5eb457b11a enhancement: add services to sysinfo.json api
Change-Id: I09769ef110a6210513efc4bc23908be9ac7ddf6a
2016-09-05 19:23:54 +00:00
Darryl Quinn 8bf9d0948d bugfix: added tunnel network address constraints.
fixes AREDN->ticket:180

Change-Id: I054f6d96c378f96c9d454536f2c08e4735bdf746
2016-08-25 03:12:41 +00:00
Darryl Quinn efd133cbd4 change AREDN upload to only pull /links from OLSR
enables support for drawing map links as well.
fixes AREDN->ticket:181

Change-Id: I5b0dd4b99d3892d136021faa4a5bd5856607b2a5
2016-08-24 20:40:47 -05:00
Darryl Quinn dc17259f4d enhancement: make snr chart fill more of the screen
Change-Id: I31b0cc10bcabe7bff47ac52a4feb1cc39f874cfa
2016-08-19 15:08:55 -05:00
Conrad Lara - KG6JEI 3962465066 feature: Instruct search engines not to index node pages
Provide HTTP header to search engines not to index the page.

Eventually we will likely want to add nofollow and a robots file
but first we need to get this pushed out and into search engine hands
so they delist the entires that may already be cached.

Change-Id: I47a68fcc8fb69c43c3f1bbe2b8a04a3e8d51571a
2016-08-16 18:15:06 -07:00
AE6XE 7de59de3b9 bugfix: TxMbps compatibility with Chaos Calmer
fixes AREDN->ticket:176

Change-Id: I005b391ecdc3611dc7fc59632743759b04d76728
2016-08-12 15:42:59 +00:00
Darryl Quinn ca24742bbb add support for lua and minimal luci libs to the build
Change-Id: Ife8afe95a5f71a4d65258db8a1f78d3931c7c8c7
2016-08-12 15:14:07 +00:00
AE6XE d4b7617e03 remove non-mesh modes from setup options
fixes AREDN->ticket:175

Change-Id: I7517df178a5ce82ef79ec4af844932fe6569d8da
2016-08-07 21:38:18 +00:00
Darryl Quinn 4ada350a4c add olsr/links to aredn data server push info
Change-Id: Iea15ac7f4ea0858702bb3d8eaa06f36135f76eb4
2016-07-12 10:55:43 -05:00
Conrad Lara - KG6JEI a219802d5b build: Remove cleanup stage
Remove the cleanup stage from the build files.

The build server should clear these files on its own steps
independent of the image creation process.  There are often times
with local development where having to rebuild the entire system
base doesn't make sense.

Change-Id: Idd621b29a3f35fafb21c872a01af6a055aa63584
2016-07-08 15:58:03 -07:00
Darryl Quinn df9c6601be enable leafletjs, leafletcss, and maptiles to be based on uci config vars
fixes AREDN->ticket:174

Change-Id: I0133ab46df95b14d55192e5e47fa4e8f6377b4c9
2016-06-22 08:43:28 -05:00
Conrad Lara - KG6JEI 6bc3999b59 hardware: Rocket M5 with GPS 0xe1c5
fixes AREDN->ticket:162

Forum reference: http://www.aredn.org/content/m5-gps

Submitted by KE2N
{{{
board.sysid=0xe1c5
board.cpurevision=0x00000101
board.name=Rocket M5
board.shortname=R5N
board.subtype=GPS
board.netmodes=7
board.hwaddr=00272228652D
board.reboot=50
board.upgrade=150
board.phycount=2
board.phy.1.maxmtu=2024
board.phy.2.maxmtu=2024
board.gps=1
radio.1.name=
radio.1.shortname=
radio.1.bus=pci
radio.1.subsystemid=0xe1c5
radio.1.subvendorid=0x0777
radio.1.txpower.max=27
radio.1.txpower.min=-4
radio.1.txpower.offset=5
radio.1.ieee_modes=5
radio.1.antennas=13
radio.1.def_antenna=13
radio.1.antenna.1.id=1
radio.1.antenna.1.name=AMO-5G10
radio.1.antenna.1.gain=10
radio.1.antenna.1.builtin=0
radio.1.antenna.1.chains=2
radio.1.antenna.1.chain.1.id=0
radio.1.antenna.1.chain.1.name=Vertical
radio.1.antenna.1.chain.2.id=1
radio.1.antenna.1.chain.2.name=Horizontal
radio.1.antenna.2.id=2
radio.1.antenna.2.name=AMO-5G13
radio.1.antenna.2.gain=13
radio.1.antenna.2.builtin=0
radio.1.antenna.2.chains=2
radio.1.antenna.2.chain.1.id=0
radio.1.antenna.2.chain.1.name=Vertical
radio.1.antenna.2.chain.2.id=1
radio.1.antenna.2.chain.2.name=Horizontal
radio.1.antenna.3.id=3
radio.1.antenna.3.name=AM-5G16-120
radio.1.antenna.3.gain=16
radio.1.antenna.3.builtin=0
radio.1.antenna.3.chains=2
radio.1.antenna.3.chain.1.id=0
radio.1.antenna.3.chain.1.name=Vertical
radio.1.antenna.3.chain.2.id=1
radio.1.antenna.3.chain.2.name=Horizontal
radio.1.antenna.4.id=4
radio.1.antenna.4.name=AM-5G17-90
radio.1.antenna.4.gain=17
radio.1.antenna.4.builtin=0
radio.1.antenna.4.chains=2
radio.1.antenna.4.chain.1.id=0
radio.1.antenna.4.chain.1.name=Vertical
radio.1.antenna.4.chain.2.id=1
radio.1.antenna.4.chain.2.name=Horizontal
radio.1.antenna.5.id=5
radio.1.antenna.5.name=AM-M-V5G-Ti
radio.1.antenna.5.gain=17
radio.1.antenna.5.builtin=0
radio.1.antenna.5.chains=2
radio.1.antenna.5.chain.1.id=0
radio.1.antenna.5.chain.1.name=Vertical
radio.1.antenna.5.chain.2.id=1
radio.1.antenna.5.chain.2.name=Horizontal
radio.1.antenna.6.id=6
radio.1.antenna.6.name=AM-5G19-120
radio.1.antenna.6.gain=19
radio.1.antenna.6.builtin=0
radio.1.antenna.6.chains=2
radio.1.antenna.6.chain.1.id=0
radio.1.antenna.6.chain.1.name=Vertical
radio.1.antenna.6.chain.2.id=1
radio.1.antenna.6.chain.2.name=Horizontal
radio.1.antenna.7.id=7
radio.1.antenna.7.name=AM-5G20-90
radio.1.antenna.7.gain=20
radio.1.antenna.7.builtin=0
radio.1.antenna.7.chains=2
radio.1.antenna.7.chain.1.id=0
radio.1.antenna.7.chain.1.name=Vertical
radio.1.antenna.7.chain.2.id=1
radio.1.antenna.7.chain.2.name=Horizontal
radio.1.antenna.8.id=8
radio.1.antenna.8.name=AM-V5G-Ti
radio.1.antenna.8.gain=21
radio.1.antenna.8.builtin=0
radio.1.antenna.8.chains=2
radio.1.antenna.8.chain.1.id=0
radio.1.antenna.8.chain.1.name=Vertical
radio.1.antenna.8.chain.2.id=1
radio.1.antenna.8.chain.2.name=Horizontal
radio.1.antenna.9.id=9
radio.1.antenna.9.name=AM-5AC21-60
radio.1.antenna.9.gain=21
radio.1.antenna.9.builtin=0
radio.1.antenna.9.chains=2
radio.1.antenna.9.chain.1.id=0
radio.1.antenna.9.chain.1.name=Vertical
radio.1.antenna.9.chain.2.id=1
radio.1.antenna.9.chain.2.name=Horizontal
radio.1.antenna.10.id=10
radio.1.antenna.10.name=AM-5AC22-45
radio.1.antenna.10.gain=22
radio.1.antenna.10.builtin=0
radio.1.antenna.10.chains=2
radio.1.antenna.10.chain.1.id=0
radio.1.antenna.10.chain.1.name=Vertical
radio.1.antenna.10.chain.2.id=1
radio.1.antenna.10.chain.2.name=Horizontal
radio.1.antenna.11.id=11
radio.1.antenna.11.name=RD-5G-30
radio.1.antenna.11.gain=30
radio.1.antenna.11.builtin=0
radio.1.antenna.11.chains=2
radio.1.antenna.11.chain.1.id=0
radio.1.antenna.11.chain.1.name=Vertical
radio.1.antenna.11.chain.2.id=1
radio.1.antenna.11.chain.2.name=Horizontal
radio.1.antenna.12.id=12
radio.1.antenna.12.name=RD-5G31-AC
radio.1.antenna.12.gain=31
radio.1.antenna.12.builtin=0
radio.1.antenna.12.chains=2
radio.1.antenna.12.chain.1.id=0
radio.1.antenna.12.chain.1.name=Vertical
radio.1.antenna.12.chain.2.id=1
radio.1.antenna.12.chain.2.name=Horizontal
radio.1.antenna.13.id=13
radio.1.antenna.13.name=RD-5G-34
radio.1.antenna.13.gain=34
radio.1.antenna.13.builtin=0
radio.1.antenna.13.chains=2
radio.1.antenna.13.chain.1.id=0
radio.1.antenna.13.chain.1.name=Vertical
radio.1.antenna.13.chain.2.id=1
radio.1.antenna.13.chain.2.name=Horizontal
radio.1.distance_limit_km=0
radio.1.chanbw="5,8,10,20,30,40"
feature.rssi.leds=2
feature.gps=1
feature.gps.leds=3
feature.ext_reset=0
}}}

Change-Id: I6c03799cc04577b873b7ec04038238fb761ec3e7
2016-06-21 16:13:06 -07:00
KG6JEI 32a0d6348d Merge "Merge branch 'ChaosCalmer' into develop" into develop 2016-06-20 05:53:31 +00:00
Conrad Lara - KG6JEI 061ede3488 Merge branch 'ChaosCalmer' into develop
Change-Id: I26a8677595a25aae267b7365f1e5835ea68f49b4
2016-06-19 19:26:12 -07:00
Conrad Lara - KG6JEI 8abe628915 Cleanup /usr/local/bin scripts to pass shellcheck
Correct all shellcheck "errors" and "warnings" for
/usr/local/bin/* shell scripts.

This is necesary to have Jenkins start publishing test results.

All code worked on nodes but pushed to strict posix compliance
as part of the cleanup.

SC1001,SC2002,SC2004,SC2006,SC2034,SC2039,SC2086,SC2155
https://github.com/koalaman/shellcheck/wiki for more info

Change-Id: If1f27381eedae79087e490ea12f5939f8cc525a0
2016-06-18 04:52:08 +00:00
Darryl Quinn 39efd11beb bugfix: could not delete client connections from vpnc page
fixes AREDN->ticket:170

Change-Id: Ieacdfd3eebf288e6fc83dcade7903eb96419dff4
2016-06-16 22:37:41 -05:00
KG6JEI ae6688dc33 Merge "security feature: Enhance HTTPD password security" into develop 2016-06-16 05:39:10 +00:00
Conrad Lara - KG6JEI 1ee5cc698b cleanup: Cleanup shellcheck reported concerns in vtun_up
Change-Id: I88c775243a33731a182fd81d411bca664538e536
2016-06-15 08:08:28 -07:00
Conrad Lara - KG6JEI 70e93c09d7 bugfix: Refer to in interface by iif not iff
This may be why we have seen nodes in the past with stray routing table entries.

Change-Id: Ib47cc76eb9f2cd9328252a8a8a6d1bda0a6af35b
2016-06-15 08:07:20 -07:00
KG6JEI 417717efbb Merge "build change: Set build version in buildroot config" into develop 2016-06-15 03:16:41 +00:00
Darryl Quinn d45bbb9dea fixes AREDN->ticket:172
Change-Id: I0db2dbc14283c2458a55b4e75ca25ce95d867b5b
2016-06-14 14:18:52 -05:00
Conrad Lara - KG6JEI 798a96144d build change: Set build version in buildroot config
Set the openwrt build version to be the version of AREDN.

We don't currently use the OpenWRT version anywhere

This will be useful for implementing /etc/banner version tagging

Change-Id: I484564d28ae2f2e9f6017c038efe288bf1809ce1
2016-06-14 01:11:41 +00:00
Conrad Lara - KG6JEI 8f91ad1e0e security feature: Enhance HTTPD password security
Move httpd.conf to not store password and instead depend on the shadow password file.

Also tag the 40_aredn_migrate-httpdconf script to be +x. Not strictly necessary but wish to have this standard

Change-Id: I018d9a3294e45af2316b3c3947ef2a7d8081268b
2016-06-10 19:37:57 -07:00
Conrad Lara - KG6JEI b8a9c18850 bugfix: buildsteps scripts if checks rework
Checks for BUILD_SET_VERSION use wrong bracket type
OSTYPE check wasn't portable to Ubuntu

Change-Id: I0183f3beae068b8524dc4dff411203fdb3878e94
2016-06-01 12:40:01 -07:00
Conrad Lara - KG6JEI 86bc3a6b55 bugfix: Build script missing packages
snmp,socat,xinet.d are required package as part of the build

Conflicts:

	build/buildsteps/kconfig/003-packages

Change-Id: Ibb68dec4a5e92f8ee8511d971f1189f1d6e8a9a2
2016-06-01 12:39:13 -07:00
Darryl Quinn 6e2a56b106 fixes AREDN->ticket:163
KG6JEI COMMENT:

Origonaly this was commit 027d0e6b6c682cbf264912842fb2fb9ce92084c7
This got lost in the repo migration and has been chery-picked back into the repo.

Change-Id: If02ade8efca0520b23abccdeceb9bf0fc4eb73d1
2016-05-31 23:01:26 -07:00
KG6JEI fe8ae5296f Merge "bugfix: Build script missing packages" into develop 2016-06-01 04:14:27 +00:00
KG6JEI b0ba904425 Merge "bugfix: buildsteps scripts if checks rework" into develop 2016-06-01 04:13:48 +00:00
Conrad Lara - KG6JEI 3bae69cc5c hardware: add NanoBridge M5 0xe235 in testing
XM.v5.5# cat /etc/board.info
board.sysid=0xe235
board.cpurevision=0x000000c2
board.name=NanoBridge? M5
board.shortname=NB5
board.subtype=
board.netmodes=7;
board.hwaddr=00156D1EED1F
board.reboot=30
board.upgrade=150
board.phycount=1
board.phy.1.maxmtu=1524
board.phy.2.maxmtu=1524
radio.1.name=
radio.1.shortname=
radio.1.bus=pci
radio.1.subsystemid=0xe235
radio.1.subvendorid=0x0777
radio.1.txpower.max=23
radio.1.txpower.offset=1
radio.1.antennas=3
radio.1.def_antenna=4
radio.1.antenna.1.id=4
radio.1.antenna.1.name=Not specified
radio.1.antenna.1.gain=0
radio.1.antenna.2.id=1
radio.1.antenna.2.name=300
radio.1.antenna.2.gain=22
radio.1.antenna.3.id=2
radio.1.antenna.3.name=400
radio.1.antenna.3.gain=25

fixes AREDN->ticket:161

Change-Id: I050f39646000e4e6ce4342e7140046ba77396d38
2016-05-31 19:56:03 -07:00
Conrad Lara - KG6JEI bbf5a70052 bugfix: buildsteps scripts if checks rework
Checks for BUILD_SET_VERSION use wrong bracket type
OSTYPE check wasn't portable to Ubuntu

Change-Id: I0183f3beae068b8524dc4dff411203fdb3878e94
2016-05-30 12:54:39 -07:00
Conrad Lara - KG6JEI fd7ae74f69 bugfix: Build script missing packages
snmp,socat,xinet.d are required package as part of the build

Change-Id: Ibb68dec4a5e92f8ee8511d971f1189f1d6e8a9a2
2016-05-30 11:44:57 -07:00
Conrad Lara - KG6JEI 1271db794a Merge 3.16.1.0 as released into develop
Merge branch 'release-3.16.1.0' into develop
2016-05-17 09:50:40 -07:00
Darryl Quinn 215e5abf47 fixes AREDN->ticket:166 2016-05-15 17:40:29 -05:00
Darryl Quinn 6912f69dc8 fixes AREDN->ticket:165 2016-05-15 17:35:43 -05:00
AE6XE 38a2835471 bugfix: sysupgrade full reboot message not displaying 2016-05-10 19:22:33 -07:00
Darryl Quinn 9800612d86 allow sysupgrade time to settle in order for http to finish delivering the "rebooting" page 2016-04-29 22:29:57 -05:00
Conrad Lara - KG6JEI 1adb471d31 hardware: Mark devices as supported for 3.16.1.0
Moving devices that have been tested in beta for 3.16.1.0 to supported status
2016-04-20 17:57:08 -07:00
Darryl Quinn 23bc85687c fixes AREDN->ticket:151 2016-04-08 13:02:35 -05:00
Conrad Lara - KG6JEI 36fd5a4618 Merge branch '155-DHCPDefaultGWFix' into release-3.16.1.0
fixes AREDN->ticket:155
2016-04-01 16:15:59 -07:00
Conrad Lara - KG6JEI 86d17e0998 bugfix: RFC Compliance for DHCP and Classless static routes
RFC requires that the DHCP server include the default gateway (0.0.0.0/0) route as part the Classless network list.

Moved to node-setup so it can be set dynamically at setup run time.

fixes AREDN->ticket:155
2016-03-31 22:54:29 -07:00
Trevor Paskett - K7FPV 7d437e2cb8 bug fix: run sysupgrade forked off from uhttpd, kill un-necessary processes and flush page cache during firmware upgrade 2016-03-08 20:29:35 -07:00