Skip to content

Commit d7df653

Browse files
Adrian ChaddAdrian Chadd
Adrian Chadd
authored and
Adrian Chadd
committed
iwm: add sku_cap_mimo_disable; populate sku_cap_11n_enable
This is a flag to be used to disable >1 antenna support, even if the radio supports it. Also populate sku_cap_11n_enable, which indicates HT is available. It's a no-op right now; it's one of the requirements for properly configuring HT support and transmit/receive antenna configurations. Obtained from: OpenBSD (at a6e25c727a2214219715b51ba6af2221d7e0d674, 22-Oct-2021) Differential Revision: https://reviews.freebsd.org/D48210 Reviewed by: bz
1 parent 31a8b97 commit d7df653

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sys/dev/iwm/if_iwm.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,8 @@ iwm_parse_nvm_data(struct iwm_softc *sc,
22202220
sku = iwm_get_sku(sc, nvm_sw, phy_sku);
22212221
data->sku_cap_band_24GHz_enable = sku & IWM_NVM_SKU_CAP_BAND_24GHZ;
22222222
data->sku_cap_band_52GHz_enable = sku & IWM_NVM_SKU_CAP_BAND_52GHZ;
2223-
data->sku_cap_11n_enable = 0;
2223+
data->sku_cap_11n_enable = sku & IWM_NVM_SKU_CAP_11N_ENABLE;
2224+
data->sku_cap_mimo_disable = sku & IWM_NVM_SKU_CAP_MIMO_DISABLE;
22242225

22252226
data->n_hw_addrs = iwm_get_n_hw_addrs(sc, nvm_sw);
22262227

sys/dev/iwm/if_iwmvar.h

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ struct iwm_nvm_data {
200200
int sku_cap_11n_enable;
201201
int sku_cap_amt_enable;
202202
int sku_cap_ipan_enable;
203+
int sku_cap_mimo_disable;
203204

204205
uint8_t radio_cfg_type;
205206
uint8_t radio_cfg_step;

0 commit comments

Comments
 (0)