Set device scanning state to false from the scan callback