Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccd6b4ff authored by Jimmy Chen's avatar Jimmy Chen
Browse files

wifi: support 60GHz scan

Use WifiScanner.WIFI_BAND_60_GHZ for supporting getting
60GHz channels for scanning.

Bug: 147522434
Test: Manual - enable wifi and connect to an access point
Test: atest FrameworksWifiTests
Test: atest FrameworksWifiApiTests

Change-Id: I44078b3b8dd588b271b4eab64c0d104b4092d432
parent 25d969e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1048,6 +1048,7 @@ public class WifiNl80211Manager {
     * {@link WifiScanner#WIFI_BAND_5_GHZ},
     * {@link WifiScanner#WIFI_BAND_5_GHZ_DFS_ONLY},
     * {@link WifiScanner#WIFI_BAND_6_GHZ}
     * {@link WifiScanner.WIFI_BAND_60_GHZ}
     * @return frequencies vector of valid frequencies (MHz), or an empty array for error.
     * @throws IllegalArgumentException if band is not recognized.
     */
@@ -1071,6 +1072,9 @@ public class WifiNl80211Manager {
                case WifiScanner.WIFI_BAND_6_GHZ:
                    result = mWificond.getAvailable6gChannels();
                    break;
                case WifiScanner.WIFI_BAND_60_GHZ:
                    result = mWificond.getAvailable60gChannels();
                    break;
                default:
                    throw new IllegalArgumentException("unsupported band " + band);
            }