https://github.com/espressif/arduino-esp32/blob/a153f6ad280e5932be9c80341556348ff505d586/libraries/WiFi/examples/WiFiScan/WiFiScan.ino#L13. As reported in the title, the member 'mode' is missing in the library