Q: How do I know if the WiFi Network that I am connecting to is 2.4 GHz or 5.8 GHz?
A: Well, your laptop can see and connect to 2.4 and 5.8 GHz networks. The ESP32 can only see and connect to 2.4GHz networks.
To see what networks are available to the ESP32
Q: How do I know if the WiFi Network that I am connecting to is 2.4 GHz or 5.8 GHz?
A: Well, your laptop can see and connect to 2.4 and 5.8 GHz networks. The ESP32 can only see and connect to 2.4GHz networks. To see what networks are available to the ESP32
Use: Example from WiFi > WiFiScan : https://randomnerdtutorials.com/esp32-useful-wi-fi-functions-arduino/
or https://www.upesy.com/blogs/tutorials/how-to-connect-wifi-acces-point-with-esp32
If you cannot find a useful network try a SoftAP https://randomnerdtutorials.com/esp32-access-point-ap-web-server/
A. To connect the the network of your choice, without changing the SSID and password in ESP32 code use a wifi manager https://randomnerdtutorials.com/esp32-wi-fi-manager-asyncwebserver/ references: https://github.com/littlefs-project/littlefs (seeAlso: https://github.com/pellepl/spiffs but LittleFS is the replacement see: https://www.youtube.com/watch?v=4r6YZlLfKfw) or https://dronebotworkshop.com/wifimanager/ , https://github.com/tzapu/WiFiManager
A. Use your laptop as a bridge between the SoftAP point network and the Internet https://askubuntu.com/questions/488588/how-do-i-connect-to-multiple-wifi-networks https://www.cyberciti.biz/tips/linux-find-out-wireless-network-speed-signal-strength.html
A. Scan it all using https://www.instructables.com/RTL8720DN/