HomeFreeBSD

LinuxKPI: 802.11: get rid of lkpi_ic_getradiocaps warnings

Description

LinuxKPI: 802.11: get rid of lkpi_ic_getradiocaps warnings

Users are seeing warnings about 2 channels (1 per band)
triggered by an ioctl from wpa_supplicant usually:
lkpi_ic_getradiocaps: Adding chan ... returned error 55
This was an early FAQ.

Check the current number of channels against maxchans and the return
code from net80211. In case net80211 reports that we reached the limit
do not print the warning and do not try to add further channels.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
bzAuthored on Feb 14 2022, 10:29 PM
Parents
rG24360d83753a: pf tests: Basic 'set prio' test
Branches
Unknown
Tags
Unknown