Yes. There are two steps:
First you need to add the UIRequiresPersistentWiFi key to your Info.plist applications. This ensures that the Wi-Fi connection does not fall asleep while your application is open.
Secondly, you need to query the system (using the SCNetworkReachability API) to find out which radio is currently on. See this question in the iPhone documentation.
source share