WF_CPGetSecurity Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
WF_CPGetSecurity Function
C
void WF_CPGetSecurity(
    UINT8 CpId, 
    UINT8 * p_securityType, 
    UINT8 * p_wepKeyIndex, 
    UINT8 * p_securityKey, 
    UINT8 * p_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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.