refactor: Dedupe wifi scan in-place without std::map (#2262)
## Summary `std::map` heap-allocates each node. Avoid using it for wifi SSID dedupe, and instead just dedupe in-place with the existing `networks` vector. Removed dead `ipAddress` member in `WifiNetworkInfo` struct. --- ### AI Usage Did you use AI tools to help write this code? _**PARTIALLY**_
This commit is contained in:
@@ -18,7 +18,6 @@ struct WifiNetworkInfo {
|
||||
int32_t rssi;
|
||||
bool isEncrypted;
|
||||
bool hasSavedPassword; // Whether we have saved credentials for this network
|
||||
std::string ipAddress; // Populated after connection for display
|
||||
};
|
||||
|
||||
// WiFi selection states
|
||||
|
||||
Reference in New Issue
Block a user