@@ -339,7 +339,7 @@ const NL80211_ATTR_MAX_CSA_COUNTERS: u16 = 206;
339339const NL80211_ATTR_MAC_MASK : u16 = 215 ;
340340const NL80211_ATTR_WIPHY_SELF_MANAGED_REG : u16 = 216 ;
341341const NL80211_ATTR_EXT_FEATURES : u16 = 217 ;
342- // const NL80211_ATTR_SURVEY_RADIO_STATS:u16 = 218;
342+ const NL80211_ATTR_SURVEY_RADIO_STATS : u16 = 218 ;
343343// const NL80211_ATTR_NETNS_FD:u16 = 219;
344344const NL80211_ATTR_SCHED_SCAN_DELAY : u16 = 220 ;
345345// const NL80211_ATTR_REG_INDOOR:u16 = 221;
@@ -520,6 +520,7 @@ pub enum Nl80211Attr {
520520 /// in milliseconds
521521 MaxRemainOnChannelDuration ( u32 ) ,
522522 OffchannelTxOk ,
523+ SurveyRadioStats ,
523524 WowlanTrigersSupport ( Vec < Nl80211WowlanTrigersSupport > ) ,
524525 SoftwareIftypes ( Vec < Nl80211InterfaceType > ) ,
525526 Features ( Nl80211Features ) ,
@@ -637,6 +638,7 @@ impl Nla for Nl80211Attr {
637638 | Self :: TdlsExternalSetup
638639 | Self :: ControlPortEthertype
639640 | Self :: OffchannelTxOk
641+ | Self :: SurveyRadioStats
640642 | Self :: WiphySelfManagedReg => 0 ,
641643 Self :: CipherSuites ( s) => 4 * s. len ( ) ,
642644 Self :: SupportedIftypes ( s) => s. as_slice ( ) . buffer_len ( ) ,
@@ -707,6 +709,7 @@ impl Nla for Nl80211Attr {
707709 Self :: Ssid ( _) => NL80211_ATTR_SSID ,
708710 Self :: StationInfo ( _) => NL80211_ATTR_STA_INFO ,
709711 Self :: SurveyInfo ( _) => NL80211_ATTR_SURVEY_INFO ,
712+ Self :: SurveyRadioStats => NL80211_ATTR_SURVEY_RADIO_STATS ,
710713 Self :: TransmitQueueStats ( _) => NL80211_ATTR_TXQ_STATS ,
711714 Self :: TransmitQueueLimit ( _) => NL80211_ATTR_TXQ_LIMIT ,
712715 Self :: TransmitQueueMemoryLimit ( _) => NL80211_ATTR_TXQ_MEMORY_LIMIT ,
@@ -839,6 +842,7 @@ impl Nla for Nl80211Attr {
839842 | Self :: TdlsExternalSetup
840843 | Self :: ControlPortEthertype
841844 | Self :: OffchannelTxOk
845+ | Self :: SurveyRadioStats
842846 | Self :: WiphySelfManagedReg => ( ) ,
843847 Self :: WiphyChannelType ( d) => write_u32 ( buffer, ( * d) . into ( ) ) ,
844848 Self :: ChannelWidth ( d) => write_u32 ( buffer, ( * d) . into ( ) ) ,
@@ -1079,6 +1083,7 @@ impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Nl80211Attr {
10791083 }
10801084 Self :: SurveyInfo ( nlas)
10811085 }
1086+ NL80211_ATTR_SURVEY_RADIO_STATS => Self :: SurveyRadioStats ,
10821087 NL80211_ATTR_TXQ_STATS => {
10831088 let err_msg = format ! (
10841089 "Invalid NL80211_ATTR_TXQ_STATS value {:?}" ,
0 commit comments