diff options
author | Quang Luong <qal@google.com> | 2020-08-10 18:36:13 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2020-08-12 10:03:00 -0700 |
commit | 4976b67589de4033211b4495b1e1c5274cf03474 (patch) | |
tree | 97165e3128bdbaf9a7345d5b805315c7f1ffd7aa /service | |
parent | 1252c1e8cd21a9b5878c2bdff1f9c1d234b74745 (diff) |
[WifiTrackerLib] Handle isAutoJoinEnabled when no configs available
PasspointWifiEntry may have cases where mPasspointConfig and mWifiConfig
are both null, which can happen for a suggestion passpoint entry that
goes out of range, or the brief moment when a subscription passpoint
entry is forgotten but not yet removed. isAutoJoinEnabled needs to
default to false in case both configs are missing. In addition, to
prevent the wrong value from appearing for the out of range suggestion
case, keep a reference to the old WifiConfig when updating with null
scans.
Bug: 163084959
Test: atest WifiTrackerLibTests
Change-Id: I5eb40308cc01dc6e6f25b90828dd551f0cf4c633
Diffstat (limited to 'service')
0 files changed, 0 insertions, 0 deletions