C
void WF_SetPSK( UINT8 * psk );
Description
DERIVE_KEY_FROM_PASSPHRASE_IN_HOST must be enabled. Applicable for MRF24WG0M only. Sends PSK to MRF24W FW in WPS mode.
Preconditions
MACInit must be called first.
Returns
None.
Remarks
This function is used in conjunction with WF_ConvPassphrase2Key(). MRF24W will generate an event (WF_EVENT_KEY_CALCULATION_REQUEST) to PIC32 and set g_WpsPassphrase.valid to TRUE. Upon receipt of this event, PIC32 will invoke this function WF_ConvPassphrase2Key to convert the passphrase to key. Once this conversion is completed, PIC32 will call WF_SetPSK to pass the converted key to MRF24W.