Optionalinterface: string | null
the interface name as returned by interfaces(); omit for the system's default Wi-Fi interface
The interface's configuration, or null if the interface doesn't exist
The remembered networks. Their ssid may be absent without Location Services authorization
Whether networks the interface joins are remembered
Whether changing networks needs an administrator
Whether creating an ad-hoc network needs an administrator
Whether turning Wi-Fi on or off needs an administrator
Returns an interface's configuration: its remembered network profiles and administrator settings.
Avoid calling this frequently: macOS leaks memory on every call, so polling this function in a long-running configuration grows Hammerspoon's memory use.