wifi: Use WPA2 only when in AP mode