Fixed a bug in WiFi perf tests