nx_iot_softap_discover_test.nx
buildroot/runtime/nx_iot_softap_discover_test.nx
about
nx_iot_softap_discover_test.nx -- gate for SoftAP (pairing-mode) discovery.
Grounded in a REAL Wi-Fi scan taken 2026-06-22 on the operator's LAN
(Intel AX211, netsh wlan show networks mode=bssid). The operator powered
on unpaired lights and asked to "show their ability to be paired".
The scan's pairable device is the operator's TP-Link Kasa HS210:
SSID TP-LINK_HS210_C209 Authentication: Open BSSID d8:0d:17:a1:c2:09
Two independent signals (SSID prefix "TP-LINK_" + OUI d8:0d:17) classify
it KASA. Real neighbour APs from the same scan are the negative controls.
Coverage:
- HS210 open SoftAP -> KASA, pairable, NEW (the real unpaired light)
- NEG: West_Family_Upstairs (WPA3 mesh AP) -> UNKNOWN, NOT pairable,
NOT anchored (we never provision a neighbour's router)
- NEG / liar-kill: an OPEN but non-IoT AP -> UNKNOWN, NOT pairable
(proves "pairable" is NOT just "open" -- it must be a known device)
- NEG: ATTu9skIKP (WPA2 neighbour) -> UNKNOWN, NOT pairable
- UNIFY: the SAME HS210, later seen ON-LAN (Kasa :9999 reply, same MAC
hwid) -> RE-ADOPTED to the SAME logical id (one identity across
pairing-mode and on-LAN -- no duplicate when it joins the network)
- MEASURED: duplicates_prevented == 1 over the 2 real adopt events
- NEG: bad arg (hwid_n=0) on a pairable device -> DISC_BAD_ARG, no change
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_iot_discover.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 32 | func main() -> i64 |