diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2021-07-29 12:00:31 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2021-07-29 12:00:31 +0000 |
commit | ad51ccb86496a342bfa800ceaa14d1609c89af02 (patch) | |
tree | 516bcf92cad723e5be880f43be09c119bee5f131 /sys/dev/pci/if_iwxreg.h | |
parent | db5d4d4cad9e1fddab14525f6aba167890129bdc (diff) |
Support the new iwx(4) firmware TLC_MNG_CONFIG command.
This command was expanded by a 4 byte max_tx_op field. As far as I can tell
the Linux driver makes no use of this field, so just initialize it to zero.
New firmware panics when we try to initialize Tx rate scaling otherwise.
ok kevlo@
Diffstat (limited to 'sys/dev/pci/if_iwxreg.h')
-rw-r--r-- | sys/dev/pci/if_iwxreg.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwxreg.h b/sys/dev/pci/if_iwxreg.h index 0af70424750..ba0f5a49d45 100644 --- a/sys/dev/pci/if_iwxreg.h +++ b/sys/dev/pci/if_iwxreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwxreg.h,v 1.27 2021/07/29 11:58:35 stsp Exp $ */ +/* $OpenBSD: if_iwxreg.h,v 1.28 2021/07/29 12:00:30 stsp Exp $ */ /*- * Based on BSD-licensed source modules in the Linux iwlwifi driver, @@ -4755,6 +4755,8 @@ enum iwx_tlc_mng_ht_rates { * @sgi_ch_width_supp: bitmap of SGI support per channel width * use (1 << @enum iwx_tlc_mng_cfg_cw) * @reserved2: reserved + * @max_tx_op: max TXOP in uSecs for all AC (BK, BE, VO, VI), + * set zero for no limit. */ struct iwx_tlc_config_cmd { uint8_t sta_id; @@ -4768,8 +4770,9 @@ struct iwx_tlc_config_cmd { uint16_t ht_rates[IWX_TLC_NSS_MAX][2]; uint16_t max_mpdu_len; uint8_t sgi_ch_width_supp; - uint8_t reserved2[1]; -} __packed; /* TLC_MNG_CONFIG_CMD_API_S_VER_2 */ + uint8_t reserved2; + uint32_t max_tx_op; +} __packed; /* TLC_MNG_CONFIG_CMD_API_S_VER_3 */ /** * @IWX_TLC_NOTIF_FLAG_RATE: last initial rate update |