Merge "Cache Wi-Fi state in worker thread" into tm-dev