sudo modprobe batman-adv
sudo ifconfig wlan0 mtu 1528
sudo ifconfig wlan0 down; sudo iwconfig wlan0 mode ad-hoc essid my-mesh-network ap 02:12:34:56:78:90 channel 1
sudo batctl if add wlan0
sudo ifconfig wlan0 up
sudo ifconfig bat0 up
sudo ifconfig bat0 192.168.2.1
I check ifconfig -a and it shows bat0 with HWaddr. my question does bat0 interface becomes available when batman-adv module loaded? It's not a real device, but how does HWaddr got assigned to it? How does that work?