### Answers checklist. - [X] I have read the documentation [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/) and the issue is not addressed there. - [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there. - [X] I have searched the issue tracker for a similar issue and not found a similar issue. ### General issue report See the define of this macro: https://github.com/espressif/esp-idf/blob/6673376297b921d438790d195014b860eaf8bb17/components/esp_wifi/include/esp_wifi_types_generic.h#L154C9-L159 This macro does not clear the `channel_bitmap` members, which can cause issues as those will then contain random data. See related PR in arduino-esp32: https://github.com/espressif/arduino-esp32/pull/10282 and related issue: https://github.com/espressif/arduino-esp32/issues/10281