diff options
author | Sunil Ravi <sunilravi@google.com> | 2022-03-01 22:57:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-03-01 22:57:20 +0000 |
commit | e2d8efbde2e0523b717d2d9724ba9622b75542a1 (patch) | |
tree | 6373ecdfbcd22be322d543d5c7f9d2a6a7fc2b31 | |
parent | 8eaccb726f2c75257695b966c62de73c06e05e00 (diff) | |
parent | 07b464d9bd2db22a12d86329559c41c9d3475e30 (diff) | |
download | wificond-e2d8efbde2e0523b717d2d9724ba9622b75542a1.tar.gz |
Merge "wificond: Update BandWiphyIndexMap when country code changed" into tm-dev
-rw-r--r-- | server.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -495,7 +495,12 @@ void Server::OnRegDomainChanged(uint32_t wiphy_index, std::string& country_code) << " on wiphy_index: " << wiphy_index; BroadcastRegDomainChanged(country_code); } - UpdateBandWiphyIndexMap(wiphy_index); + // Sometimes lower layer sends stale wiphy index when there are no + // interfaces. So update band - wiphy index mapping only if an + // interface exists + if (!hasNoIfaceForWiphyIndex(wiphy_index)) { + UpdateBandWiphyIndexMap(wiphy_index); + } LogSupportedBands(wiphy_index); } |