commit | 9e38bcc173b1590d2c60bf3182227d62bb3aadb8 | [log] [tgz] |
---|---|---|
author | Ravi Dondaputi <ravi.dondaputi@nordicsemi.no> | Mon May 27 06:27:26 2024 +0530 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Wed May 29 07:32:09 2024 +0200 |
tree | 3f5b311b34e1399ba6d1b3c528e3506f134991e5 | |
parent | 885d271e5721aef143fdec5ad73da70ab518bb3a [diff] |
wifi: utils: Get correct channel count When channel range is configured in scan params, get the channel count from `chan_idx` instead of taking a difference of start and end of the channel range. The `difference` method fails in case of 5GHz band since channels may not be consecutive numbers. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>