From: stsp Date: Tue, 14 Feb 2023 12:14:07 +0000 (+0000) Subject: jca@ points out that the field I split in iwx(4) Rx descriptors is in a union. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7875a01294023658517e9b93bb7e08368353dce7;p=openbsd jca@ points out that the field I split in iwx(4) Rx descriptors is in a union. Keep semantics of the field intact by wrapping the split values in struct { }. Again no size change, because of union semantics. diff from jca@ with request to commit if ok, thanks! build-tested again + ok tb@ --- diff --git a/sys/dev/pci/if_iwxreg.h b/sys/dev/pci/if_iwxreg.h index 29dc5cbe965..3b9cbde8fc5 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.40 2023/02/13 15:50:06 stsp Exp $ */ +/* $OpenBSD: if_iwxreg.h,v 1.41 2023/02/14 12:14:07 stsp Exp $ */ /*- * Based on BSD-licensed source modules in the Linux iwlwifi driver, @@ -3628,8 +3628,10 @@ struct iwx_rx_mpdu_desc_v3 { * TSF value on air rise (INA), only valid if * IWX_RX_MPDU_PHY_TSF_OVERLOAD isn't set */ - uint32_t tsf_on_air_rise0; - uint32_t tsf_on_air_rise1; + struct { + uint32_t tsf_on_air_rise0; + uint32_t tsf_on_air_rise1; + }; struct { uint32_t phy_data0; @@ -3658,8 +3660,10 @@ struct iwx_rx_mpdu_desc_v1 { uint8_t mac_context; uint32_t gp2_on_air_rise; union { - uint32_t tsf_on_air_rise0; - uint32_t tsf_on_air_rise1; + struct { + uint32_t tsf_on_air_rise0; + uint32_t tsf_on_air_rise1; + }; struct { uint32_t phy_data0; uint32_t phy_data1;