added automatic latest firmware spoofing (#16)

Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
2026-07-13 21:16:02 +01:00
parent da29d1a032
commit 93e6ac6716
6 changed files with 62 additions and 2 deletions
+5
View File
@@ -8,6 +8,7 @@ Daemon that makes an OpenWrt router appear as a UniFi AP to UniFi Network contro
| --- | --- | --- |
| **L2 Discovery** | UDP broadcast + multicast every 10s | `announce.c` → port 10001 |
| **Adoption** | AES-128-CBC handshake with the controller | `inform.c``handle_response()` |
| **Firmware spoofing** | Persists and reports the target version requested by an upgrade | `inform.c``handle_response()` |
| **WiFi Config** | Creates WiFi networks from the controller via UCI | `wlan.c``wlan_apply_config()` |
| **Band Steering** | 802.11k/v Neighbor Reports + BSS Transition | `wlan.c``apply_vap()` |
| **Fast Roaming** | 802.11r FT with mobility_domain derived from MAC | `wlan.c``apply_vap()` |
@@ -99,6 +100,10 @@ Daemon settings live in `/etc/openuf/openuf.conf`. Adoption and controller state
are persisted separately in `/etc/openuf/state.json`; do not copy that file
between devices because it contains the device authentication key.
Because UniFi firmware cannot run on the OpenWrt host, an upgrade request does
not download or install its image. Instead, openUF saves the requested firmware
version in `state.json` and reports it in subsequent inform packets.
---
## Glossary