diff options
author | haohuang <haohuang@codeaurora.org> | 2021-08-10 10:35:35 +0800 |
---|---|---|
committer | Lakshmi Prasanna <tlakshmi@codeaurora.org> | 2021-10-28 15:18:59 +0530 |
commit | 1ec396cbb15224022368ec878900b0f3164a6cbc (patch) | |
tree | 8435ca2f236d8fcca9c48b8942f6b677b8e2432b | |
parent | 58c3ca45bd856a600b61ec9b4426bca640088cdd (diff) |
Fix an issue in SystemStatusNetworkInfo DataItem
the equals function cannot work fine due to
an issue in mApn string comparison. Fix this
issue.
Change-Id: Idbe430e2209b9a2c119532dee23d6074b1ca0b19
CRs-Fixed: 3010278
-rw-r--r-- | core/SystemStatus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/SystemStatus.h b/core/SystemStatus.h index bd4279e..638933a 100644 --- a/core/SystemStatus.h +++ b/core/SystemStatus.h @@ -509,7 +509,7 @@ public: for (uint8_t i = 0; rtv && i < MAX_NETWORK_HANDLES; ++i) { rtv &= (mAllNetworkHandles[i] == peer.mAllNetworkHandles[i]); } - return rtv & peer.mApn.compare(mApn); + return rtv && !peer.mApn.compare(mApn); } inline virtual SystemStatusItemBase& collate(SystemStatusItemBase& curInfo) { LOC_LOGv("NetworkInfo: mAllTypes=%" PRIx64 " connected=%u mType=%x mApn=%s", |