# nomad WAN-aware operation. See docs/companion-app-plan.md § 4.5.
#
# Each `wan_zone` section matches an upstream backhaul (WiFi BSSID,
# gateway MAC, etc.) and declares what to do when we land on it.
# Default: feature is OFF – user opts in via `Hub → Companion app →
# Enable WAN-aware` or `nomad wan-aware enable`.

config wan_aware 'main'
    option enabled '0'
    option default_unknown_wifi 'cellular_backup'
    option default_unknown_ethernet 'cellular_backup'

# Example zones (commented out until the user configures real ones).
# Either edit here or push via POST /v1/wan/zones from the companion app.
#
#config wan_zone 'home'
#    option backhaul_type 'wifi'
#    option identifier '00:11:22:33:44:55'    # BSSID of the home AP
#    option ssid_hint 'MyHomeNet'              # for debug only
#    option action 'airplane_both'
#    option hysteresis_s '30'
#    option label 'Home (no cellular)'
#
#config wan_zone 'office'
#    option backhaul_type 'ethernet'
#    option identifier 'aa:bb:cc:dd:ee:ff'    # gateway MAC
#    option action 'airplane_both'
#    option label 'Office'
