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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user