LinuxKPI: 802.11: fix ieee80211_add_channel_cbw() argument
authorBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 26 Oct 2023 00:11:43 +0000 (00:11 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 3 Nov 2023 21:08:03 +0000 (21:08 +0000)
commit5856761fd5f675c3871a82effdbf714a1d1bcc5e
treef0d0805afc7116d503df614f449030acb148bf4d
parent45c27ad5241f5491234afd0b47d13b8005fdb4de
LinuxKPI: 802.11: fix ieee80211_add_channel_cbw() argument

Fix the last argument passed to ieee80211_add_channel_cbw() in
lkpi_ic_getradiocaps() for both 2Ghz and 5Ghz bands.
We passed in the unmodified version rather than the adjusted version
based on the per-band channel information possibly leaving
ieee80211_channel_flags enabled which should not be.

So far this should not have made a difference given we did not enable
HT or VHT.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D42424
sys/compat/linuxkpi/common/src/linux_80211.c