You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a type has a flexible array member, any other types which use the type with a flexible array member in their own type does not have the generic for the flexible array member propagated.
#[repr(C, packed)]pubstructscan_params<FAM: ?Sized = [::core::ffi::c_uint;0]>{#[doc = " If 0x1, RPU force passive scan on all channels"]pubpassive_scan:::core::ffi::c_ushort,#[doc = " Number of ssid's in scan_ssids parameter"]pubnum_scan_ssids:::core::ffi::c_uchar,#[doc = " Specific SSID's to scan for"]pubscan_ssids:[ssid;2usize],#[doc = " used to send probe requests at non CCK rate in 2GHz band"]pubno_cck:::core::ffi::c_uchar,#[doc = " Bitmap of bands to be scanned. Value Zero will scan both 2.4 and 5 GHZ"]pubbands:::core::ffi::c_uchar,#[doc = " Information element(s) data ie"]pubie:ie,#[doc = " MAC address"]pubmac_addr:[::core::ffi::c_uchar;6usize],#[doc = " Max scan duration in active scan. If zero rpu programs 50msec"]pubdwell_time_active:::core::ffi::c_ushort,#[doc = " Max scan duration in passive scan. If zero rpu programs 150msec"]pubdwell_time_passive:::core::ffi::c_ushort,#[doc = " Number of channels to be scanned"]pubnum_scan_channels:::core::ffi::c_ushort,#[doc = " If true, skip local and IANA Unicast reserved MACs"]pubskip_local_admin_macs:::core::ffi::c_uchar,#[doc = " specific channels to be scanned"]pubcenter_frequency:::core::mem::ManuallyDrop<FAM>,}
If a type has a flexible array member, any other types which use the type with a flexible array member in their own type does not have the generic for the flexible array member propagated.
For example,
scan_params
has an FAM (with a regex pass to wrap the FAM in aManuallyDrop
(see #2936):https://github.com/i509VCB/nrf70/blob/issue/fam-bindgen/fw/bindings.rs#L3209-L3236
But then
scan_params
when used inumac_scan_info
, theFAM
type is not expanded:https://github.com/i509VCB/nrf70/blob/issue/fam-bindgen/fw/bindings.rs#L3489-L3495
Since the
FAM
type is not propagated toumac_scan_info
, it is not possible to use theFAM
parameterBindgen invocation:
https://github.com/i509VCB/nrf70/blob/issue/fam-bindgen/gen.py#L111-L124
The text was updated successfully, but these errors were encountered: