How does a managed WiFi network work?