Search code examples
androidandroid-wifiwifimanager

Check if android adapter supports 5GHz frequency WIFI


I would like to know how to use WifiManager to check if my device wifi adapter supports 5Ghz frequency or not. Small snippet for android code would be great.

Thanks


Solution

  • You can use is5GHzBandSupported() from Android API Level 21.

    This way:

    wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
    wifiManager.is5GHzBandSupported()