Repository navigation
Releases
v0.3.0
Fast roaming with genuine UniFi APs. A client now moves between an OpenWrt AP and a UniFi AP without a new login, in both directions.
New
- Fast roaming (802.11r) between this AP and UniFi APs. With Fast Roaming on in the WLAN, the daemon relays the key exchange between the two kinds of AP and speaks UniFi's roam announcements, so the AP a client left drops it at once. The Wi-Fi configuration stays stock: Without the daemon the Wi-Fi starts as on any OpenWrt AP, and only the fast roaming to UniFi APs stops. Each key type (WPA2, WPA3) gets fast roaming only if the WLAN's other APs offer it too. The frame formats were found and documented by the rrb-unifi project. To switch it off:
option ft_relay '0'. - More per client in the UniFi: Spatial streams, the transmit rate index, transmit power and retries. By @Lukas-Heiligenbrunner.
- Transmit power modes: Auto, High, Medium and Low are honoured, not only Custom. By @Lukas-Heiligenbrunner.
- LED colour and brightness from the UniFi, for APs whose LEDs can show them. Built before, now tested on an RGB LED ring. The UniFi only offers it when the AP claims the ability with
hw_caps. - Adoption over SSH from the current inform host, and a
consoleoption for one more host. By @Lukas-Heiligenbrunner.
Fixed
- A clock that stayed wrong after every boot. On an AP with a DHCP address, OpenWrt's time service could start before the AP had a DNS server and never recover. The daemon now compares the AP's clock with the controller's and repairs it.
- Informing to a host name the AP cannot resolve. The daemon keeps informing to the controller address it learned at adoption. By @Lukas-Heiligenbrunner.
- Radio width in the UniFi no longer depends on interface names. A radio's WLAN rows now come before its uplink row. Seen by @rbferreira.
- A client's Wi-Fi generation is taken from hostapd or from its last frames, whichever says yes.
- A one-time token in the system log. A request the daemon does not know was logged with its values, and the controller's "Generate support file" carries an upload token. Such requests are now logged without the values of secret-looking fields.
Not built, on purpose
- Debug terminal: It would be a root shell on the AP, opened through a third party's relay servers. OpenWrt has SSH and LuCI.
- Support file: The bundle is meant for Ubiquiti's support, which does not cover this AP. For a report to this project there is
uow -dump.
The daemon now logs a clear line for both, and for the controller's request to run a shell command, which it also refuses. In the UniFi, "Generating" ends by itself after three minutes, and the debug window stays on "Connecting" until it is closed.
Before you upgrade
- New dependency:
kmod-veth. apk installs it from the OpenWrt feed, so the AP needs to reach the feed during the upgrade. - The Wi-Fi restarts once after the upgrade on a WLAN with Fast Roaming on, when the roaming settings change.
Docs
- A fifth tested device: The D-Link DIR-878 A1, tested by @Lukas-Heiligenbrunner. The table now says which UniFi each device was adopted by.
- A new section on fast roaming in
docs/internals.md.
Should you upgrade?
Yes, if you have UniFi APs next to the OpenWrt AP, or an AP that gets its address by DHCP.
Install
Pick the package for your AP's architecture (cat /etc/apk/arch), check it against SHA256SUMS, then:
apk add --allow-untrusted ./unifi-openwrt_0.3.0-r1_<arch>.apk
The packages need OpenWrt 25.12 or later and are unsigned. On older OpenWrt, build from source and use the installer; see the README.
Tested
- Fast roaming: On a Google OnHub (OpenWrt 25.12.6, adopted as a U7PG2) next to a UniFi Express 7. 178 ordered roams of a WPA3 test client across the four radios, all fast, typically 120 to 150 ms; a walk with a WPA3 laptop, both ways.
- This package on the same AP: 18 more ordered roams. All 14 between the OpenWrt AP's two radios and the UniFi AP's 5 GHz radio were fast. The 4 ordered to the UniFi AP's 6 GHz radio were not answered by it, one of them from its own 5 GHz radio, so with no OpenWrt AP involved; in an earlier run the same happened with its 2.4 GHz radio. The cause is not established.
- Not tested: Phones, more than one UniFi AP, WLANs on a VLAN. There was no run in virtual machines for this release.
- The adoption and inform-host changes were tested by @Lukas-Heiligenbrunner on the D-Link DIR-878 A1.
v0.2.2
A robustness release. It fixes two ways an AP could be lost, adds support for Wi-Fi 7 devices with one chip for all bands, and comes with a new round of testing in virtual machines.
Fixed
- An AP with a static address on a network without DHCP was lost after adoption. A new device is set to DHCP by the controller. The AP dropped its address, and the change was confirmed because the radios were up. Now a change is confirmed only while the controller can still be reached; if not, it is rolled back at once. Settings that cut the AP off are not tried again, and the rest of the controller's settings still apply.
- A mesh uplink that never came back after a reboot. Seen on
mwl8k: An AP that was meshing stayed off the network after a reboot without cable. The watcher now removes an uplink that does not connect and adds it back, with longer waits when no parent is in range. By @rbferreira. - Devices with one Wi-Fi chip for several bands (
ath12kon Wi-Fi 7 devices such as the TP-Link Archer BE800): All bands were treated as one radio, so WLANs on the other bands were dropped, and channel use was reported for the wrong band. By @Kelon5212001. - The mesh watcher on devices with unusual interface names. A Wi-Fi interface in the bridge could be taken for a cable. By @Kelon5212001.
New
uow -dump <file>: Writes what the daemon reads from your AP to a file, with MAC and IP addresses, SSIDs and the hostname replaced and passwords left out. Attached to a bug report, it becomes a test case for your device.- A clear message for radios that are switched off. A radio that is switched off in OpenWrt is left alone and not shown in the UniFi. Up to OpenWrt 24.10 that is how a fresh install starts, and the AP then showed up without radios and without explanation. The log now says so at start, with the commands to hand the radio over.
Docs
- New section How it is tested in the README.
- A fourth tested device: The TP-Link Archer BE800, tested by @Kelon5212001.
- Mesh note for
ath12k: The uplink joins but passes almost no traffic.
Should you upgrade?
Yes. The first fix protects any AP with a static address.
Install
Pick the package for your AP's architecture (cat /etc/apk/arch), check it against SHA256SUMS, then:
apk add --allow-untrusted ./unifi-openwrt_0.2.2-r1_<arch>.apk
The packages need OpenWrt 25.12 or later and are unsigned. On older OpenWrt, build from source and use the installer; see the README.
Tested
- In virtual machines against a real UniFi Network controller (10.6.109, and 10.0.160 on one version): OpenWrt 25.12.6, 24.10.8, 23.05.6 and a snapshot. Install, adoption, upgrade from v0.2.1, a WLAN on both radios, Forget and adopt again, the rollback, and removal. These runs were made before the two mesh changes went in, which they do not cover.
- This build runs on a Google OnHub (OpenWrt 25.12.6, adopted as a U7PG2).
- The
ath12kfixes were tested by @Kelon5212001 on the Archer BE800 before they were merged; their confirmation on the merged code is pending. The mesh fix was tested by @rbferreira on the Linksys E4200 v2; the longer waits on top of it were only simulated.
v0.2.1
A small bug-fix release. All three fixes come from @rbferreira, found on a third tested device: a Linksys E4200 v2 on OpenWrt 23.05. Obrigado!
Fixed
- Adoption with the controller on another address. With the package installed, the adoption responder only accepted connections from 192.168.1.1, so a controller on any other address could not adopt the AP. The host of the configured inform address is now accepted too. By @rbferreira.
- The rollback timer on images without
setsid. On a BusyBox built without thesetsidcommand, the timed rollback after an apply silently never started. It now starts with or without it. By @rbferreira. - Mesh uplink shown in the controller. A meshed AP could show no uplink, because the parent AP was looked up in the ARP table only. The bridge forwarding table is now used as well. By @rbferreira.
Docs
- New Tested devices table in the README: three devices, with who tested what.
- Status icons in the What works table.
- Mesh note for Marvell
mwl8kradios (88W8366): the uplink passes traffic only while the 5 GHz radio also carries a WLAN. Reported by @rbferreira.
Should you upgrade?
Yes if your controller is not on 192.168.1.1, if your image has no setsid (command -v setsid prints nothing), or if you use the mesh uplink. Otherwise nothing changes for you.
Install
Pick the package for your AP's architecture (cat /etc/apk/arch), check it against SHA256SUMS, then:
apk add --allow-untrusted ./unifi-openwrt_0.2.1-r1_<arch>.apk
The packages need OpenWrt 25.12 or later and are unsigned. On older OpenWrt, build from source and use the installer; see the README.
Tested
This build runs on a Google OnHub (OpenWrt 25.12.6, adopted as a U7PG2), where none of the three fixes changes anything. The fixes themselves were tested by @rbferreira on the Linksys E4200 v2; an unconfirmed rollback timer was not left to expire there.
v0.2.0
Second release. The big news: a second tested device and the project's first outside contributions, both from @dohun0310. Thank you!
New
- Second tested device: Linksys LN1301 (MX4300), adopted as a U6-IW. Tested by @dohun0310.
- Wired clients per port: devices plugged into the AP's LAN ports show up in the controller. New
-uplink-port/uplink_portoption to name the uplink port; the rear uplink jack of the in-wall models is mapped. By @dohun0310. - LLDP neighbours: with the optional
lldpdpackage listening on the Ethernet ports, the controller sees which switch port the AP hangs on. unhandled.json: a small, capped list in the state directory of what the controller sent and the daemon did not act on (short samples; secrets are never written). Useful in bug reports.- The controller's inform address is honoured when it changes.
Fixed
- Wi-Fi 6 / Wi-Fi 7 radios keep their mode when the controller sets a width;
htmodeis never the invalidHT80. By @dohun0310. - All enabled radios are reported, also one with no WLAN up yet, so a freshly adopted AP shows every band. By @dohun0310.
- 802.11v is detected exactly; on a
wpadbuild without it, the option is left out instead of stopping Wi-Fi from starting. By @dohun0310. - 160 MHz is reported for radios that can do it. By @dohun0310.
- WEP and OWE WLANs are never opened, and other security types the AP cannot do are left off rather than degraded.
- The daemon keeps informing after errors instead of exiting.
- Full country table; virtual interfaces are left out of the port list.
Upgrade note
Radios are now named wifiN by band, then by wifi-device section. On an AP with two radios in the same band, wifi1 and wifi2 may swap once at upgrade; check the per-radio settings in the controller afterwards. Single-radio-per-band APs are not affected.
Install
Pick the package for your AP's architecture (cat /etc/apk/arch), check it against SHA256SUMS, then:
apk add --allow-untrusted ./unifi-openwrt_0.2.0-r1_<arch>.apk
Needs OpenWrt 25.12 or later. The packages are unsigned. See the README for setup and adoption.
Tested
On a Google/TP-Link OnHub (OpenWrt 25.12.6, adopted as a U7PG2) and, for the contributed parts, on the Linksys LN1301 by @dohun0310. The Wi-Fi 6, 160 MHz and two-radios-per-band fixes are not exercised by the OnHub.