p2p: synchronize p2p random MAC feature flag from driver.

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: Iadae3cf74722d29014caffe7080e0efa44a7659e
This commit is contained in:
Jimmy Chen 2018-12-14 14:45:51 +08:00
parent 4035c5ce86
commit a922b0809f

View file

@ -159,6 +159,7 @@ void wifi_get_error_info(wifi_error err, const char **msg); // return a pointer
#define WIFI_FEATURE_SET_TX_POWER_LIMIT 0x4000000 // Support Tx Power Limit setting
#define WIFI_FEATURE_USE_BODY_HEAD_SAR 0x8000000 // Support Using Body/Head Proximity for SAR
#define WIFI_FEATURE_SET_LATENCY_MODE 0x40000000 // Support Latency mode setting
#define WIFI_FEATURE_P2P_RAND_MAC 0x80000000 // Support Support P2P MAC randomization
// Add more features here