espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.31k stars 1.57k forks source link

Newly added WPA3 causes large binary size increase (GIT8266O-481) #908

Open looi opened 4 years ago

looi commented 4 years ago

I am experiencing about 50KB binary size increase since WPA3 was added, mainly because Elliptic Curve Crypto is being linked in which was not before. This is a problem especially with the partitions_two_ota.1MB scenario where space is very limited.

Disabling ESP8266_WIFI_ENABLE_WPA3_SAE does not help because the SAE code is still linked in.

For now, I have fixed the problem locally by changing some defines: https://github.com/looi/ESP8266_RTOS_SDK/commit/1047012fe21518adf6a4919ef40b4016336f19de

Please allow WPA3 to be fully disabled to reduce the binary size.

d51x commented 4 years ago

this method not helped me, additionally I change file: components/wpa_supplicant/component.mk remove -DCONFIG_ECC and -DCONFIG_WPA3_SAE