TechnologiesNetworking & Connectivity

CoreWLAN

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    CWWiFiClientmacOS 10.10+
    @class
  • Cl
    CWInterfacemacOS 10.6+
    @class

Scanning for Networks 2

Types that represent discovered wireless networks and the radio channels they use.

  • Cl
    CWNetworkmacOS 10.6+
    @class
  • Cl
    CWChannelmacOS 10.7+
    @class

Managing Configurations and Profiles 4

Types for reading and editing saved Wi-Fi settings and preferred network profiles.

  • Cl
    CWConfigurationmacOS 10.6+
    @class
  • Cl
    CWMutableConfigurationmacOS 10.6+
    @class
  • Cl
    CWNetworkProfilemacOS 10.7+
    @class
  • Cl
    CWMutableNetworkProfilemacOS 10.7+
    @class

Responding to Events 2

The delegate and event identifiers used to react to changing Wi-Fi conditions.

  • Pr
    CWEventDelegate
    @protocol
  • En
    CWEventTypemacOS 10.10+
    @typedef CWEventType

Interface and Radio State 2

Enumerations describing an interface's operating mode and its PHY capabilities.

  • En
    CWInterfaceModemacOS 10.7+
    @typedef CWInterfaceMode
  • En
    CWPHYModemacOS 10.7+
    @typedef CWPHYMode

Channel Characteristics 2

Enumerations that describe the frequency band and bandwidth of a Wi-Fi channel.

  • En
    CWChannelBandmacOS 10.7+
    @typedef CWChannelBand
  • En
    CWChannelWidthmacOS 10.7+
    @typedef CWChannelWidth

Security and Encryption 4

Types describing network security modes, cipher options, and keychain storage.

  • En
    CWSecuritymacOS 10.7+
    @typedef CWSecurity
  • En
    CWIBSSModeSecurity
    @typedef CWIBSSModeSecurity
  • St
    CWCipherKeyFlagsmacOS 10.7+
    @typedef CWCipherKeyFlags
  • En
    CWKeychainDomainmacOS 10.10+
    @typedef CWKeychainDomain

Errors 1

Error codes reported by CoreWLAN operations.

  • En
    CWErrmacOS 10.6+
    @typedef CWErr

Extends 1

NSNotification
← Networking & Connectivity