git: b00a90df99f7 - main - iwm: bring over placeholder calibration information
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Oct 2026 02:51:32 UTC
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=b00a90df99f72c30bdeec17bb0fb0cd28342415d
commit b00a90df99f72c30bdeec17bb0fb0cd28342415d
Author: Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2026-10-12 02:41:20 +0000
Commit: Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-10-12 02:41:20 +0000
iwm: bring over placeholder calibration information
Like openbsd at this commit, it's not being used anywhere yet.
Obtained from: OpenBSD a6e25c727a2214219715b51ba6af2221d7e0d674
Differential Revision: https://reviews.freebsd.org/D60074
---
sys/dev/iwm/if_iwm.c | 6 ++++++
sys/dev/iwm/if_iwmvar.h | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c
index dcebda12e263..32d6dbc864fc 100644
--- a/sys/dev/iwm/if_iwm.c
+++ b/sys/dev/iwm/if_iwm.c
@@ -2247,6 +2247,12 @@ iwm_parse_nvm_data(struct iwm_softc *sc,
data->n_hw_addrs = iwm_get_n_hw_addrs(sc, nvm_sw);
+ data->calib_version = 255; /* TODO:
+ this value will prevent some checks from
+ failing, we need to check if this
+ field is still needed, and if it does,
+ where is it in the NVM */
+
if (sc->cfg->device_family >= IWM_DEVICE_FAMILY_8000) {
/* TODO: use IWL_NVM_EXT */
uint16_t lar_offset = data->nvm_version < 0xE39 ?
diff --git a/sys/dev/iwm/if_iwmvar.h b/sys/dev/iwm/if_iwmvar.h
index af1c484e9690..361c2d073520 100644
--- a/sys/dev/iwm/if_iwmvar.h
+++ b/sys/dev/iwm/if_iwmvar.h
@@ -195,6 +195,14 @@ struct iwm_nvm_data {
int n_hw_addrs;
uint8_t hw_addr[IEEE80211_ADDR_LEN];
+ uint8_t calib_version;
+ uint16_t calib_voltage;
+
+ uint16_t raw_temperature;
+ uint16_t kelvin_temperature;
+ uint16_t kelvin_voltage;
+ uint16_t xtal_calib[2];
+
int sku_cap_band_24GHz_enable;
int sku_cap_band_52GHz_enable;
int sku_cap_11n_enable;