This is being tested right now eg. 802.11p/ITS-G5/Vehicle-to-everything (V2X) communication https://en.wikipedia.org/wiki/Vehicle-to-everything
A video of some demonstrations by Ford Motors https://www.youtube.com/watch?v=PF1a-g9suR8
Tesla might already have the hardware needed; this implementation for Linux uses Qualcomm Atheros AR93xx chipset devices operating in the 5.9 GHz band https://rtime.felk.cvut.cz/publications/public/ieee80211p_li...
(https://events.ccc.de/congress/2015/Fahrplan/system/event_at... outlines the current security model - car manufacturers are a small set of organisations that could act as intermediary Certificate Authorities and manage key exchange so messages via these protocols can be "trusted")
I wonder how useful it would actually be though. I don't think you'd want to involve such a complex a distributed system in a hard-realtime domain like deciding whether you're about to hit the other vehicle, the CAP theorem seems pretty unavoidable there.
That being said, i would imagine said hardware would evolve over time with new releases. It would be nice, and probably safer, if cars could actually communicate with each other, rather than have to rely on their own cameras, to determine another vehicles position. Same with traffic lights, road signs, etc.
that's probably a long way off, although i wonder if Teslas have hardware that would allow them to communicate with one another.