Skip to content
Commit 9e38bcc1 authored by Ravi Dondaputi's avatar Ravi Dondaputi Committed by Henrik Brix Andersen
Browse files

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: default avatarRavi Dondaputi <ravi.dondaputi@nordicsemi.no>
parent 885d271e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment