code wiki / (root) / nx_iot_softap_discover_test.nx

nx_iot_softap_discover_test.nx

buildroot/runtime/nx_iot_softap_discover_test.nx

5619 B117 linesdepth 3pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

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

nx_syscalls_x86_64.nx nx_iot_discover.nx nx_iot_softap_discover_test.nx

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

main nx_iot_anchor_init nx_iot_disc_ingest_softap nx_iot_disc_classify_softa nx_iot_classify_by_ssid nx_iot_cls_starts_with nx_iot_cls_strlen nx_iot_classify_by_oui nx_iot_classify_fuse nx_iot_disc_softap_pairabl nx_iot_anchor_adopt nx_iot_vendor_is_valid nx_iot_anchor_find nx_iot_anchor_hwid_eq nx_iot_anchor_hwid_base nx_iot_anchor_meta_ptr nx_iot_anchor_store_hwid nx_iot_anchor_hwid_base ↻ nx_iot_anchor_count nx_iot_kasa_puts_z nx_iot_kasa_encrypt nx_iot_disc_ingest nx_iot_disc_to_plain nx_iot_kasa_decrypt nx_iot_disc_classify nx_iot_classify_by_reply nx_iot_cls_find nx_iot_cls_strlen ↻ nx_iot_classify_by_oui ↻ nx_iot_classify_by_port nx_iot_classify_fuse ↻ nx_iot_anchor_adopt ↻ nx_iot_anchor_naive_adopts nx_iot_disc_duplicates_pre nx_iot_anchor_duplicates_p

structs

none

consts

none

functions

32func main() -> i64