WifiNetworkSuggestionRandomization Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects persistent or non-persistent MAC randomization for a network suggestion.
public enum WifiNetworkSuggestionRandomization
type WifiNetworkSuggestionRandomization =
- Inheritance
-
WifiNetworkSuggestionRandomization
Fields
| Name | Value | Description |
|---|---|---|
| Persistent | 0 | Generate a randomized MAC from a secret seed and information from the Wi-Fi configuration (SSID or Passpoint profile) and reuse it for all connections to this network. The randomized MAC address for this network will stay the same for each subsequent association until the device undergoes factory reset. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| NonPersistent | 1 | With this option, the randomized MAC address will periodically get re-randomized, and the randomized MAC address will change if the suggestion is removed and then added back. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Pass one of these codes to SetMacRandomizationSetting(Int32). The builder stores the choice for the suggested network's randomized MAC address.