platform_system_connectivit.../tests
David Su 3a8f36348d wificond: don't delete wiphy immediately upon iface deletion
- Multiple ifaces can map to one wiphy.
- One band can only map to one wiphy.

Previously, if any iface was removed, all wiphy's associated
with that iface will also be removed, including all
associated bands. This is not correct, as there could also
be other ifaces associated with that wiphy which are still
active.

Fixed to only remove the wiphy (and associated bands) once
no active ifaces remain for that wiphy.

Also, cleaned up weird idiom of deleting from a map while
iterating over it (no change in behavior intended).

Bug: 175614847
Test: system/connectivity/wificond/runtests.sh
Test: 1. Connect to network1 on device1.
      2. Turn on SAP for network2 on device2.
      3. Since device1 prefers network1 (configured ahead of time with user
         connect choice), it will connect to network2 using Make-Before-Break
         (MBB).
      4. After MBB completes and network1 is disconnected, turn off SAP.
      5. device1 will disconnect from network2.
      6. Verify scans are triggered and connects back to network1.
Change-Id: Ie8d2f6e12a350501dee82d6bdde3501afc556d69
2020-12-15 09:00:05 -08:00
..
integration [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
ap_interface_impl_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
client_interface_impl_unittest.cpp wificond: Handle NL80211_CMD_CH_SWITCH_NOTIFY 2020-05-15 11:38:22 -07:00
looper_backed_event_loop_unittest.cpp wificond: use PLOG rather than LOG sterror. 2019-03-08 13:30:11 -08:00
main.cpp Add a module for binder callback handling in tests 2016-07-25 13:29:49 -07:00
mock_ap_interface_event_callback.h [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
mock_client_interface_impl.cpp Migrate MAC Addresses and BSSIDs from std::vector to std::array 2018-10-08 13:26:31 -07:00
mock_client_interface_impl.h wificond: Move enable/disable Supplicant 2017-11-20 10:46:01 -08:00
mock_i_send_mgmt_frame_event.h [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
mock_netlink_manager.cpp Add unit tests for NetlinkUtils 2016-08-08 15:50:03 -07:00
mock_netlink_manager.h Get rid of NL80211Packet copying 2016-08-22 09:49:38 -07:00
mock_netlink_utils.cpp Seperate netlink util functions to NL80211Utils 2016-08-03 12:56:30 -07:00
mock_netlink_utils.h wificond: don't delete wiphy immediately upon iface deletion 2020-12-15 09:00:05 -08:00
mock_scan_utils.cpp Monitor scan results for current client interface 2016-08-18 18:03:49 -07:00
mock_scan_utils.h [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
native_wifi_client_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
netlink_manager_unittest.cpp Get wiphy index using NL80211 messages 2016-07-27 15:57:09 -07:00
netlink_utils_unittest.cpp Bug fix of HE cap parsing for HE device capability 2020-06-11 19:08:21 -07:00
nl80211_attribute_unittest.cpp wificond: Bug fix for parsing radio chain info 2018-02-02 15:03:58 -08:00
nl80211_packet_unittest.cpp wificond: Keep a local copy of the latest nl80211.h 2018-02-01 15:48:48 -08:00
scan_result_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
scan_settings_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
scan_utils_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
scanner_unittest.cpp [WifiNl80211] Rename WifiNl80211Manager namespace 2020-02-15 17:37:33 -08:00
server_unittest.cpp wificond: don't delete wiphy immediately upon iface deletion 2020-12-15 09:00:05 -08:00
shell_unittest.cpp Change include directory 2016-07-18 12:39:42 -07:00
shell_utils.cpp wificond: use PLOG rather than LOG sterror. 2019-03-08 13:30:11 -08:00
shell_utils.h Add a utility for executing shell commands 2016-06-09 09:14:32 -07:00