platform_system_connectivit.../tests
Kai Shi c45449f634 Fallback to default PNO channels if no frequency
PNO scan is sometimes started with an empty channel list. This happens either because there is only suggested network (from mobile carrier) but no saved network or the frequency from saved network is too old or there is an issue with frequency history restore.

In the above case, current design is to scan all supported frequencies again and again which results in high power consumption. This defeats the purpose of "preferred network offload"  which is supposed to scan only a few channels.

The fix to mitigate this issue:
Fall back to default scan channel list if the PNO channel list from framework is empty.

Bug: 196246332
Bug: 195029545
Test: delete all saved network, add one saved network, turn off screen.
      wificond starts with the default PNO channels.
Test: scanner unit test
Change-Id: I153a04cfe9c82a2c9b21f87c10dd46706135cf3f
Merged-In: I153a04cfe9c82a2c9b21f87c10dd46706135cf3f
2021-08-12 14:34:56 -07: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 Enable 6Ghz RNR in wificond 2021-01-27 20:56:02 +00: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 Enable 6Ghz RNR in wificond 2021-01-27 20:56:02 +00: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 wificond: Fix corruption of iface to wiphy map 2021-01-22 09:17:14 -08: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 Enable 6Ghz RNR in wificond 2021-01-27 20:56:02 +00:00
scanner_unittest.cpp Fallback to default PNO channels if no frequency 2021-08-12 14:34:56 -07:00
server_unittest.cpp wificond: Fix corruption of iface to wiphy map 2021-01-22 09:17:14 -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