1.1.6.5 WDRV_WINC_AntiRollbackSet
C
WDRV_WINC_STATUS WDRV_WINC_AntiRollbackSet
(
DRV_HANDLE handle,
uint8_t value,
WDRV_WINC_INFO_ANTIROLLBACK_CALLBACK pfArbCB
)Description
Sets the WINC device's anti-rollback counter to a higher value.
Precondition
WDRV_WINC_Initialize must have been called.
WDRV_WINC_Open must have been called to obtain a valid handle.
Parameters
| Parameters | Description |
|---|---|
| handle | Client handle obtained by a call to WDRV_WINC_Open. |
| value | Value to which to increase the WINC device's anti-rollback counter. A value of WINC_CMDARB_VALUE_IGNORE_VAL triggers a refresh of the anti-rollback information without increasing the WINC device's anti-rollback counter. |
| pfArbCB | Pointer to callback to be called when anti-rollback information is available. |
Returns
- WDRV_WINC_STATUS_OK - The request has been sent to the WINC.
- WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.
- WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
- WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.
- WDRV_WINC_STATUS_RETRY_REQUEST - The request could not be processed, try again.
Remarks
pfArbCB is optional and may be set to NULL.
