simplify and optimize `process_wifi_measure`