C
void WF_CPSetSecurity( UINT8 CpId, UINT8 securityType, UINT8 wepKeyIndex, UINT8 * p_securityKey, UINT8 securityKeyLength );
Description
Configures security for a Connection Profile.
Security |
Key |
Length |
WF_SECURITY_OPEN |
N/A |
N/A |
WF_SECURITY_WEP_40 |
hex |
4, 5 byte keys |
WF_SECURITY_WEP_104 |
hex |
4, 13 byte keys |
WF_SECURITY_WPA_WITH_KEY |
hex |
32 bytes |
WF_SECURITY_WPA_WITH_PASS_PHRASE |
ascii |
8-63 ascii characters |
WF_SECURITY_WPA2_WITH_KEY |
hex |
32 bytes |
WF_SECURITY_WPA2_WITH_PASS_PHRASE |
ascii |
8-63 ascii characters |
WF_SECURITY_WPA_AUTO_WITH_KEY |
hex |
32 bytes |
WF_SECURITY_WPA_AUTO_WITH_PASS_PHRASE |
ascii |
8-63 ascii characters |
WF_SECURITY_WPS_PUSH_BUTTON |
|
|
WF_SECURITY_WPS_PIN |
|
|
WF_SECURITY_WPA2_ENTERPRISE |
|
|
Preconditions
MACInit must be called first.
Parameters
Parameters |
Description |
CpId |
Connection Profile ID |
securityType |
Value corresponding to the security type desired. |
wepKeyIndex |
Only index 0 is valid. (Applicable for WF_SECURITY_WEP_40 or WF_SECURITY_WEP_104) |
p_securityKey |
Binary key or passphrase (not used if security is WF_SECURITY_OPEN) |
securityKeyLength |
Number of bytes in p_securityKey (not used if security is WF_SECURITY_OPEN) |
Returns
None.
Remarks
None.