nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_modem_wifi_scan_cancel()

int nrf_modem_wifi_scan_cancel ( void )

#include <nrf_modem/include/nrf_modem_wifi_scan.h>

Cancel the ongoing Wi-Fi scan operation.

If there was an ongoing scan operation before this function is called, the result of the operation is sent via the NRF_MODEM_WIFI_SCAN_EVT_RESULT event.

Return values
0Success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EBADMSGThe modem responded with wrong response.
-NRF_EFAULTEvent handler is not set.
-NRF_ENOMEMNot enough shared memory for this request.
-NRF_ESHUTDOWNThe modem was shut down.