Challenges and opportunities of wifi-based V2X communications