Bugfix: Connect example to add scan mode config Closes IDFGH-4793 and IDFGH-4812 See merge request espressif/esp-idf!12525