CoreWLAN queries and controls Wi-Fi interfaces on macOS, letting you scan for networks, inspect channels, and configure and associate to wireless networks. Use CWWiFiClient to access a CWInterface, scan to obtain CWNetwork results, and read channel details through CWChannel including its CWChannelBand and CWChannelWidth. Manage saved settings with CWConfiguration and CWMutableConfiguration along with CWNetworkProfile, and inspect interface state through enumerations such as CWInterfaceMode, CWPHYMode, and CWSecurity. Adopt CWEventDelegate to respond to CWEventType notifications as Wi-Fi conditions change.
Essentials 2
The entry point for accessing and controlling the Mac's Wi-Fi interfaces.
- ClCWWiFiClientmacOS 10.10+@class
- ClCWInterfacemacOS 10.6+@class
Scanning for Networks 2
Types that represent discovered wireless networks and the radio channels they use.
- ClCWNetworkmacOS 10.6+@class
- ClCWChannelmacOS 10.7+@class
Managing Configurations and Profiles 4
Types for reading and editing saved Wi-Fi settings and preferred network profiles.
- ClCWConfigurationmacOS 10.6+@class
- ClCWMutableConfigurationmacOS 10.6+@class
- ClCWNetworkProfilemacOS 10.7+@class
- ClCWMutableNetworkProfilemacOS 10.7+@class
Responding to Events 2
The delegate and event identifiers used to react to changing Wi-Fi conditions.
- PrCWEventDelegate@protocol
- EnCWEventTypemacOS 10.10+@typedef CWEventType
Interface and Radio State 2
Enumerations describing an interface's operating mode and its PHY capabilities.
- EnCWInterfaceModemacOS 10.7+@typedef CWInterfaceMode
- EnCWPHYModemacOS 10.7+@typedef CWPHYMode
Channel Characteristics 2
Enumerations that describe the frequency band and bandwidth of a Wi-Fi channel.
- EnCWChannelBandmacOS 10.7+@typedef CWChannelBand
- EnCWChannelWidthmacOS 10.7+@typedef CWChannelWidth
Security and Encryption 4
Types describing network security modes, cipher options, and keychain storage.
- EnCWSecuritymacOS 10.7+@typedef CWSecurity
- EnCWIBSSModeSecurity@typedef CWIBSSModeSecurity
- StCWCipherKeyFlagsmacOS 10.7+@typedef CWCipherKeyFlags
- EnCWKeychainDomainmacOS 10.10+@typedef CWKeychainDomain
Errors 1
Error codes reported by CoreWLAN operations.
- EnCWErrmacOS 10.6+@typedef CWErr