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.
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.