aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/compat/linuxkpi/common/src/linux_80211.c6
1 files 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 =