At New Years Eve the Tianwen-1 Mars Orbiter mission team decided to celebrate the new year in a most unique way, releasing the selfies taken by the orbiter as it approached Mars, flying over its North Pole (watch the clip).
These amazing images were taken with a digital camera (not like the one you may have in your pocket!) tethered to the orbiter and communicating with the orbiter using WiFi. The Orbiter was then in charge to send those images back to Earth. As far as I know it is the farther away we have been using WiFi.
I have to say I am impressed by what humankind has been able to achieve in a relatively short period of time. For a quick, but effective, overview of the variety of technologies involved in space communications you may want to take a look at the NASA syntheses on the topic. For a focussed view on the possible use of WiFi in space communications you may take a look at the WiFi Alliance on this topic.