git: 943a19c666d6 - main - LinuxKPI: 802.11: make HT compile again

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 01 Dec 2024 19:57:14 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=943a19c666d67424cdde6cbcd096f28359b2d314

commit 943a19c666d67424cdde6cbcd096f28359b2d314
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-12-01 19:53:06 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-12-01 19:56:10 +0000

    LinuxKPI: 802.11: make HT compile again
    
    Bring in changes missed during the last driver updates to make HT
    compile when enabled.
    
    Sponsored by:   The FreeBSD Foundation
    Fixes:          7b43f4d064195
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index 543a11b1f729..44c96909a002 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -1272,12 +1272,12 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int
 			vif->bss_conf.chanreq.oper.center_freq1 =
 			    chanctx_conf->def.center_freq1;
 #ifdef LKPI_80211_HT
-			if (vif->bss_conf.chandef.width == NL80211_CHAN_WIDTH_40) {
+			if (vif->bss_conf.chanreq.oper.width == NL80211_CHAN_WIDTH_40) {
 				/* Note: it is 10 not 20. */
 				if (IEEE80211_IS_CHAN_HT40U(ni->ni_chan))
-					vif->bss_conf.chandef.center_freq1 += 10;
+					vif->bss_conf.chanreq.oper.center_freq1 += 10;
 				else if (IEEE80211_IS_CHAN_HT40D(ni->ni_chan))
-					vif->bss_conf.chandef.center_freq1 -= 10;
+					vif->bss_conf.chanreq.oper.center_freq1 -= 10;
 			}
 #endif
 			vif->bss_conf.chanreq.oper.center_freq2 =