1.3.6.5 WDRV_PIC32MZW_AssocDisconnect Function

C

WDRV_PIC32MZW_STATUS WDRV_PIC32MZW_AssocDisconnect(WDRV_PIC32MZW_ASSOC_HANDLE assocHandle)

Summary

Disconnects an association.

Description

This API disconnects the STA associated with softAP based on the input association handle. Association handle is updated to the application whenever a new STA is connected to the softAP This API can also be used in STA mode to disconnect the STA from an AP.

Precondition

WDRV_PIC32MZW_Initialize should have been called. WDRV_PIC32MZW_Open should have been called to obtain a valid handle. WDRV_PIC32MZW_APStart should have been called to start softAP in softAP mode. WDRV_PIC32MZW_BSSConnect should have been called to connect to an AP in STA mode.

Parameters

ParamDescription
assocHandleWDRV_PIC32MZW_ASSOC_HANDLE obtained when STA joins an AP or an association is done.

Returns

WDRV_PIC32MZW_STATUS_OK - The request has been accepted.

WDRV_PIC32MZW_STATUS_NOT_OPEN - The driver instance is not open.

WDRV_PIC32MZW_STATUS_INVALID_ARG - The parameters were incorrect.

WDRV_PIC32MZW_STATUS_REQUEST_ERROR - The request to the PIC32MZW was rejected.

WDRV_PIC32MZW_STATUS_NOT_CONNECTED - The association isn't valid.

Remarks

None.