HomeFreeBSD

LinuxKPI: 802.11: fix counting the number of supbands

Description

LinuxKPI: 802.11: fix counting the number of supbands

While the main purpose was to assign an(y) early chandef with the
loop, later additions made use of it to also count supbands as well
as to initialise max_rates.
Due to the main goal we can exit the loop early and not properly
count and initialise supbands and max_rates.
Move the terminating condition into the loop and make it a continue
rather than ending the loop.

Fixes: d9945d7821b9b ("improve hw_scan")
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
bzAuthored on Sep 14 2023, 5:57 PM
Parents
rGe1e90be05017: LinuxKPI: 802.11: make sure bssid for scans (probe_req) is set
Branches
Unknown
Tags
Unknown