UINT16 WFStartScan(void) { /* If scan already in progress bail out */ if (IS_SCAN_IN_PROGRESS(SCANCXT.scanState)) return WF_ERROR_OPERATION_CANCELLED; WF_Scan(WF_SCAN_ALL); SCAN_SET_IN_PROGRESS(SCANCXT.scanState); /* Should they be invalidated??? */ //SCAN_CLEAR_VALID(SCANCXT.scanState); return WF_SUCCESS; }
uint16_t WFStartScan(void) { /* If scan already in progress bail out */ if (IS_SCAN_IN_PROGRESS(SCANCXT.scanState)) { return DRV_WIFI_ERROR_OPERATION_CANCELLED; } if (DRV_WIFI_Scan(true) != DRV_WIFI_SUCCESS) { return DRV_WIFI_ERROR_OPERATION_CANCELLED; } SCAN_SET_IN_PROGRESS(SCANCXT.scanState); return DRV_WIFI_SUCCESS; }
UINT16 WFStartScan(void) { /* If scan already in progress bail out */ if (IS_SCAN_IN_PROGRESS(SCANCXT.scanState)) return WF_ERROR_OPERATION_CANCELLED; if (WF_Scan(WF_SCAN_ALL) != WF_SUCCESS) return WF_ERROR_OPERATION_CANCELLED; SCAN_SET_IN_PROGRESS(SCANCXT.scanState); return WF_SUCCESS; }
uint16_t WFStartScan(void) { // save the state and ID // WF_CMCheckConnectionState(&state_SavedBeforeScan, &ID_SavedBeforeScan); /* If scan already in progress bail out */ if (IS_SCAN_IN_PROGRESS(SCANCXT.scanState)) return WF_ERROR_OPERATION_CANCELLED; if (WF_Scan(WF_SCAN_ALL) != WF_SUCCESS) return WF_ERROR_OPERATION_CANCELLED; SCAN_SET_IN_PROGRESS(SCANCXT.scanState); return WF_SUCCESS; }
uint16_t WDRV_ScanStart(void) { if (IS_SCAN_IN_PROGRESS(g_scanStatus.scanState)) return 0; WDRV_EXT_CmdScanStart(); SCAN_SET_IN_PROGRESS(g_scanStatus.scanState); SCAN_CLEAR_VALID(g_scanStatus.scanState); SCAN_CLEAR_DISPLAY(g_scanStatus.scanState); g_wdrv_priv.isScanDone = false; g_scanStatus.displayIdx = 0; return WDRV_SUCCESS; }