Modified the wifi_ssid_scan routine for sefmentation fault issue