Latency spikes with Apple/Mac WiFi

It would be a service that triggers a wifi scan. You can reproduce the latency issue by clicking in the wifi icon at the top; Macbook starts scanning for available networks and you get the latency. I never tried to figure out what exactly causes it, because it seems to be a non-issue to me.