Merge "Adapt scan settings based on client state."