1.3.5.9 WDRV_PIC32MZW_AuthCtxSetPersonal Function

C

WDRV_PIC32MZW_STATUS WDRV_PIC32MZW_AuthCtxSetPersonal
(
WDRV_PIC32MZW_AUTH_CONTEXT *const pAuthCtx,
uint8_t *pPassword,
uint8_t size,
WDRV_PIC32MZW_AUTH_TYPE authType
)

Summary

Configure an authentication context for WPA personal authentication.

Description

The auth type and information are configured appropriately for personal authentication with the password or PSK provided. The Management Frame Protection configuration is initialised to WDRV_PIC32MZW_AUTH_MFP_ENABLED.

Precondition

None.

Parameters

ParamDescription
pAuthCtxPointer to an authentication context.
pPasswordPointer to password (or 64-character PSK).
sizeSize of password (or 64 for PSK).
authTypeAuthentication type (or WDRV_PIC32MZW_AUTH_TYPE_DEFAULT).

Returns

WDRV_PIC32MZW_STATUS_OK - The context has been configured.

WDRV_PIC32MZW_STATUS_INVALID_ARG - The parameters were incorrect.

Remarks

None.