git: 950dc789cc63 - stable/14 - LinuxKPI: 802.11: make HT compile again
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Feb 2025 14:52:47 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=950dc789cc63e65882f65f5601911085e7f07e6c
commit 950dc789cc63e65882f65f5601911085e7f07e6c
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-12-01 19:53:06 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-02-10 14:52:09 +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
(cherry picked from commit 943a19c666d67424cdde6cbcd096f28359b2d314)
---
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 5aa86ab7ebec..3c9b9dc42fcc 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -1275,12 +1275,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 =