Cannot change STATION MAC
Posted: Sun Jul 02, 2017 10:21 am
Hi All,
The following code does not work properly, so STA MAC is not changing, it stays as it is.
I call it after setup of WiFi.mode to WIFI_AP_STA.
Please help.
Another question, is it possible AP and STA macs can be same?
Thanks.
The following code does not work properly, so STA MAC is not changing, it stays as it is.
I call it after setup of WiFi.mode to WIFI_AP_STA.
Code: Select all
short id = 0xAA55;
mac[0] = 1 + (chip_id >> 24) & 0xff;
mac[1] = (chip_id >> 16) & 0xff;
mac[2] = (chip_id >> 8) & 0xff;
mac[3] = chip_id & 0xff;
mac[4] = highByte(id);
mac[5] = lowByte(id);
ret = wifi_set_macaddr(STATION_IF, mac);
yield();
Please help.
Another question, is it possible AP and STA macs can be same?
Thanks.