I went through the sample code (WiFiClientTest) and observed that it also uses a shell script to initialize wlan1 and WiFi router connectivity. So, I continued to test my logic again.
I figured that there is an issue with GPIO2 - activating this one, causing the PING and any other TCP/HTTP transactions fail from the app and even the overall system (mangOH red).
IP configuration is all good.