setWEPKey(_:flags:index:)
Sets the interface WEP key.
Declaration
func setWEPKey(_ key: Data?, flags: CWCipherKeyFlags, index: Int) throwsParameters
- key:
An NSData object containing the WEP key.
- flags:
An NSUInteger indicating which cipher key flags to use for the specified key.
- index:
An NSUInteger indicating which default key index to use for the specified key.
Discussion
key must be 5 octets for WEP-40 or 13 octets for WEP-104. If key is nil, this method clears the WEP key for the interface. index must correspond to default key index 1-4.