Merge "Make Wi-Fi stress tests output log consistent. Fix: record average at the beginning of each iteration"