config: Check SSID length before comparing protected SSIDs