@@ -42,12 +42,18 @@ use crate::{
4242 } ,
4343} ;
4444pub mod ap;
45- #[ cfg( all( feature = "csi" , feature = "unstable" ) ) ]
46- pub mod csi;
47- pub mod event;
45+
46+ unstable_module ! (
47+ #[ cfg( feature = "csi" ) ]
48+ #[ cfg_attr( docsrs, doc( cfg( feature = "csi" ) ) ) ]
49+ pub mod csi;
50+ pub mod event;
51+ #[ cfg( feature = "sniffer" ) ]
52+ #[ cfg_attr( docsrs, doc( cfg( feature = "sniffer" ) ) ) ]
53+ pub mod sniffer;
54+ ) ;
55+
4856pub mod scan;
49- #[ cfg( all( feature = "sniffer" , feature = "unstable" ) ) ]
50- pub mod sniffer;
5157pub mod sta;
5258
5359pub ( crate ) mod os_adapter;
@@ -1111,6 +1117,7 @@ pub enum Bandwidth {
11111117#[ derive( Debug , Clone , Copy , Eq , PartialEq , Hash ) ]
11121118#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
11131119#[ cfg( all( any( feature = "esp-now" , feature = "sniffer" ) , feature = "unstable" ) ) ]
1120+ #[ instability:: unstable]
11141121pub struct RxControlInfo {
11151122 /// Received Signal Strength Indicator (RSSI) of the packet, in dBm.
11161123 pub rssi : i32 ,
@@ -1169,6 +1176,7 @@ pub struct RxControlInfo {
11691176#[ derive( Debug , Clone , Copy , Eq , PartialEq , Hash ) ]
11701177#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
11711178#[ cfg( all( any( feature = "esp-now" , feature = "sniffer" ) , feature = "unstable" ) ) ]
1179+ #[ instability:: unstable]
11721180pub struct RxControlInfo {
11731181 /// Received Signal Strength Indicator (RSSI) of the packet, in dBm.
11741182 pub rssi : i32 ,
@@ -1219,7 +1227,7 @@ impl RxControlInfo {
12191227 /// # Safety
12201228 /// When calling this, you must ensure, that `rx_cntl` points to a valid
12211229 /// instance of [wifi_pkt_rx_ctrl_t].
1222- pub unsafe fn from_raw ( rx_cntl : * const wifi_pkt_rx_ctrl_t ) -> Self {
1230+ pub ( super ) unsafe fn from_raw ( rx_cntl : * const wifi_pkt_rx_ctrl_t ) -> Self {
12231231 #[ cfg( not( esp32c6) ) ]
12241232 let rx_control_info = unsafe {
12251233 RxControlInfo {
0 commit comments