Merge "wifi: fix NULL pointer in unit tests" into tm-dev