commit | 2b7b3fec13b21c668000b065f64365f4181d1972 | [log] [tgz] |
---|---|---|
author | Quang Luong <qal@google.com> | Tue Apr 11 23:35:56 2023 +0000 |
committer | Quang Luong <qal@google.com> | Thu Apr 20 23:37:10 2023 +0000 |
tree | b4bb9d48d4662e57d6c123f23ddcfcdd0557162f | |
parent | 467eeea31d2f3f4c75a941a54ccca4f75c6e1d07 [diff] |
Fix cached usable channels for multi-band bitmap Multi-band bitmaps like WIFI_BAND_24_5_WITH_DFS are allowed in WifiManager.getUsableChannels(), but the current implementation for getting cached channels checks for equality instead of the individual bit value. Fix this by making sure we check each band's bit individually and returning the channels for all of the bands specified. Bug: 246244842 Test: atest WifiServiceImplTest Change-Id: I78ea3a116062353e48784d5c407bed02f14ff8e5