Skip to content

Conversation

@valerioa
Copy link

For esp32 ports, these modifications are required to sync WIFI_AUTH enums with the enums in the most recent esp-if

Without these modifications, micropython will not build with the most recent esp-if

Signed-off-by: Valerio Aimale <valerio@aimale.com>
{ MP_ROM_QSTR(MP_QSTR_AUTH_OWE), MP_ROM_INT(WIFI_AUTH_OWE) },
#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 1, 1)
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_ENT_192), MP_ROM_INT(WIFI_AUTH_WPA3_ENT_192) },
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK) },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constant was added in IDF 5.2.0, so a new #if guard needs to be added, eg:

#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
{ MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK) },
#endif

And the logic in network_common.c changed appropriately.

@dpgeorge
Copy link
Member

dpgeorge commented Mar 1, 2024

Closing in favour of #13775.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants