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

(cherry picked from commit cee56e77d77909df69624cc707a571647651c853)

Details

Provenance
bzAuthored on Feb 14 2022, 10:29 PM
Parents
rG3dff0341d910: LinuxKPI: add get_unaligned_le16()
Branches
Unknown
Tags
Unknown