On Tue, Jan 16, 2024 at 02:38:58PM +0800, Kevin Lo wrote:
> The below diff fixes clang warning about possible unaligned access.
> With that fixed, iwm(4) works as expected on my Rock 3A.
> 
> iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 9260" rev 0x29, 
> msix
> iwm0: hw rev 0x320, fw ver 46.ff18e32a.0, address fc:77:74:xx:xx:xx

Thank you! ok stsp@

> Index: sys/dev/pci/if_iwmreg.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_iwmreg.h,v
> retrieving revision 1.68
> diff -u -p -u -p -r1.68 if_iwmreg.h
> --- sys/dev/pci/if_iwmreg.h   19 Mar 2022 10:26:52 -0000      1.68
> +++ sys/dev/pci/if_iwmreg.h   16 Jan 2024 06:06:00 -0000
> @@ -3361,7 +3361,7 @@ struct iwm_rx_mpdu_desc_v1 {
>                       uint32_t phy_data0;
>                       uint32_t phy_data1;
>               };
> -     };
> +     } __packed;
>  } __packed;
>  
>  #define IWM_RX_REORDER_DATA_INVALID_BAID     0x7f
> 

Reply via email to