hanwckf/immortalwrt-mt798x

Cannot modify BSSID

xichuanxc opened this issue · 3 comments

I have tried adding option macaddr and option bssid in both config wifi-device and wifi-iface section of /etc/config/wireless file. But it didn't work.

ImmortalWrt 21.02-SNAPSHOT r20511-9a211f4270

Not supported yet, wait.....

2gdat="$(l1dat if2dat ra0)"
5gdat="$(l1dat if2dat rax0)"
2gmac="xx:xx"
5gmac="xx:xx"
echo "MacAddress=$2gmac" >> ${2gdat}
echo "MacAddress=$5gmac" >> ${5gdat}

reboot router

2gdat="$(l1dat if2dat ra0)" 5gdat="$(l1dat if2dat rax0)" 2gmac="xx:xx" 5gmac="xx:xx" echo "MacAddress=$2gmac" >> ${2gdat} echo "MacAddress=$5gmac" >> ${5gdat}

reboot router

It didn't work, I only need to change the BSSID of 5G hotspot, and I got the result:

root@Easy:~# bash /root/change_5g_bssid.sh
/root/change_5g_bssid.sh: line 2: l1dat: command not found
/root/change_5g_bssid.sh: line 6: ${dat5g}: ambiguous redirect