1.2.12.8 WDRV_WINC_CustIEStoreCtxSetStorage Function

C

WDRV_WINC_CUST_IE_STORE_CONTEXT* WDRV_WINC_CustIEStoreCtxSetStorage
(
uint8_t *const pStorage,
uint16_t lenStorage
)

Summary

Initialize the custom IE store.

Description

The caller provides storage for the custom IE store, this will be initialized and a pointer provided which can be passed to WDRV_WINC_APSetCustIE after custom IEs are added by WDRV_WINC_CustIEStoreCtxAddIE.

Precondition

None.

Parameters

ParamDescription
pStoragePointer to storage to use for custom IE store.
lenStorageLength of storage pointed to by pStorage.

Returns

Pointer to custom IE store, or NULL if error occurs.

Remarks

lenStorage should be: (2 <= lenStorage <= 257). If less than 2 then an error will be signalled, if more that 257 only 257 bytes will be used.