Encode security type in external network IDs for S-on-R
R WifiTracker depends on each network ID of each wifi config to be
unique, but S wifi module will return multiple legacy configs with the
same network ID of the corresponding multi-type config.
To create unique network IDs for each legacy config, this change
encodes a security type in the network IDs exposed to external callers,
and then masks it out when passed back through the Wifi APIs.
Bug: 192304591
Test: atest FrameworkWifiTests, manual verification of Open/OWE and
PSK/SAE networks showing the correct security string in network details,
manual verification that connecting, forgetting, toggling auto-connect,
and modifying config work for OWE and SAE networks.
Change-Id: I3c4f25bb11b201e42aa28d5e12b709946d184550
5 files changed