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

Commit 0fbb97de authored by Roshan Pius's avatar Roshan Pius
Browse files

WifiConfiguration: Add support for auto-selecting AP band

Add new constant indicating the band/channel for SoftAp operation will
be determined during softap initialization.

The term 'ANY' for this option to be consistent with terminology used
in hostapd.

Bug: 68763822
Test: Compiles
Change-Id: I9676caf5188601ca16c9229aaa8be2d0e43404a6
parent 633792e2
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -266,9 +266,16 @@ public class WifiConfiguration implements Parcelable {
     */
    public static final int AP_BAND_5GHZ = 1;

    /**
     * Device is allowed to choose the optimal band (2Ghz or 5Ghz) based on device capability,
     * operating country code and current radio conditions.
     * @hide
     */
    public static final int AP_BAND_ANY = -1;

    /**
     * The band which AP resides on
     * 0-2G  1-5G
     * -1:Any 0:2G 1:5G
     * By default, 2G is chosen
     * @hide
     */