chris-bc/esp32-gravity

Fix MAC randomisation

Opened this issue · 0 comments

MAC changing of most (all?) sorts has been disabled in Gravity because it caused tremendous packet loss.
ESP32 can, according to documentation, only change its MAC address before it is configured.
Re-running WiFi configuration commands in-flight (send packet, change MAC, re-init, send packet) results in crash.

Figure out how to successfully change the device's MAC:

  1. Initially, for one-off operations (spoofing a particular MAC);
  2. Then for MAC randomisation (a new MAC every packet)