esp32: fix some STA certification issues Closes WIFI-295, WIFI-299, WIFI-305, WIFI-306, WIFI-358, WIFI-367, and WIFI-368 See merge request idf/esp-idf!4434