Could you check whether you are running a dhcp client in your STA. The problem might be that you are not assigned an IP yourself to begin with before pinging the AP.
Thanks for writing back. I just want to clarify that the issue with placing the drivers into APSTA mode. I have already placed the board in STA mode and associated it to an AP, but for the second step, I am trying to configure the board as an APSTA so that it can connect to an upstream AP as a client and clients can connect to it downstream.
What are the configurations required to place the board into APSTA mode?
EDIT: Also, it's not an IP address issue. When configured as a STA, the board is able to get an IP address with udhcpc running.