Optionalinterface: string | null
the interface name as returned by interfaces(); omit for the system's default Wi-Fi interface
The interface's details, or null if the interface doesn't exist. ssid/bssid/countryCode/wlanChannel may be absent without Location Services authorization
Whether the interface is in use
e.g. "AX" for 802.11ax
Optionalbssid?: stringThe MAC address of the access point it's using
OptionalcountryCode?: stringThe country code the interface is using
OptionalhardwareAddress?: stringThe interface's MAC address
Optionalinterface?: stringThe interface's name
e.g. "Station"
Noise in dBm
Whether the interface is powered on
Signal strength in dBm
The security of the network it's on
Optionalssid?: stringThe name of the network it's on
The channels the interface supports
The transmit power, in mW
The transmit rate, in Mbps
OptionalwlanChannel?: HSWifiChannelThe channel it's on
Returns detailed information about a Wi-Fi interface.
This is safe to call frequently. The interface's cached scan results and its configuration are available from
cachedScanResults()andconfiguration(), which are kept separate because fetching them can leak memory inside macOS.activereports whether the interface is in use, and does not need Location Services authorization, so it's a way to check that Wi-Fi is connected without that permission.