1.1.6.4 WDRV_WINC_InfoAntiRollbackGet

C

WDRV_WINC_STATUS WDRV_WINC_InfoAntiRollbackGet
(
    DRV_HANDLE handle,
    WDRV_WINC_ANTIROLLBACK_INFO *const pArbInfo,
    WDRV_WINC_INFO_ANTIROLLBACK_CALLBACK pfArbCB
)

Description

Provides the WINC device's anti-rollback counter value and the current firmware's security version.

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
pArbInfoPointer to structure to receive anti-rollback information.
pfArbCBPointer to callback to be called when anti-rollback information is available.

Returns

  • WDRV_WINC_STATUS_OK - The information has been returned.
  • WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.
  • WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
  • WDRV_WINC_STATUS_RETRY_REQUEST - The information is not available, try again.

Remarks

The caller may choose to receive the information directly or via callback. Either pArbInfo or pfArbCB may be set to NULL accordingly.