For mediatek wifi driver, we can get the internal temperture by command “iwpriv ra0 stat | grep CurrentTemperature”, for example
root@OpenWrt:~# iwpriv ra0 stat | grep Temp
CurrentTemperature = 73
For open source wifi driver, we can get temperture by user level driver (need to enable /dev/mem) source code here: https://github.com/Vonger/vocore2/tree/master/utils/mt7628tool