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

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

p2p: add p2p random MAC feature flag in framework

P2P random MAC needs the driver to support changing MAC address.

Bug: 118904478
Test: manual test
      * Enter WiFI Direct Page
      * check the feature is enabled in logcat
        * WifiP2pService: Supported feature: P2P MAC randomization
      * check p2p0 MAC address is randomized.

Change-Id: I189a984b27886ca009b5f269c848fa38faedf0d9
parent df3ad8c5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2054,6 +2054,8 @@ public class WifiManager {
    public static final int WIFI_FEATURE_LOW_LATENCY      = 0x40000000; // Low Latency modes
    /** @hide */
    public static final int WIFI_FEATURE_DPP              = 0x80000000; // DPP (Easy-Connect)
    /** @hide */
    public static final long WIFI_FEATURE_P2P_RAND_MAC    = 0x100000000L; // Random P2P MAC

    private long getSupportedFeatures() {
        try {