Search code examples
ioswifi

How to get the current connection wifi channel (frequency) in iOS?


I want to know how to get WIFI channel and frequency information in iOS.

It would be better not to get from the private APIs (because I need to submit it to the iTunes Store).


Solution

  • There's no way to do this using publicly available APIs, as of iOS 7. The OS algorithm controls networking and decides which channel to use based on congestion, interference, and other factors.

    If you're okay with using private APIs, then you can use Stumbler, a library that exposes the data you're interested in: https://code.google.com/p/iphone-wireless/wiki/Stumbler

    Warning: If you want to use private APIs, then you won't be able to distribute through the App Store (and you'll have all the other hazards that come with using Apple's private API: the banhammer, breakage at any time, et cetera).