Instance Method

setWLANChannel(_:)

Sets the interface channel.

Declaration

func setWLANChannel(_ channel: CWChannel) throws

Parameters

channel

A CWChannel object corresponding to the channel.

error

An NSError object passed by reference, which will be populated with the error code and the error description if an error occurs during the execution of this method. This parameter is optional and can be passed as nil.

Return Value

A Boolean value which will indicate whether or not a failure occurred during execution. YES indicates no error occurred.

Discussion

The channel cannot be changed if the interface is associated to a network.

See Also

Setting interface parameters

func setPairwiseMasterKey(Data?)

Sets the interface pairwise master key (PMK).

func setPower(Bool)

Sets the interface power state.