pub fn convert_bss_description(
        &self,
        bss: &BssDescription,
        wmm_param: Option<ie::WmmParam>,
    ) -> BssInfo {
        BssInfo {
            bssid: bss.bssid.clone(),
            ssid: bss.ssid().to_vec(),
            rssi_dbm: bss.rssi_dbm,
            snr_db: bss.snr_db,
            signal_report_time: zx::Time::ZERO,
            channel: Channel::from_fidl(bss.chan),
            protection: bss.protection(),
            compatible: self.is_bss_compatible(bss),
            ht_cap: bss.raw_ht_cap(),
            vht_cap: bss.raw_vht_cap(),
            probe_resp_wsc: bss.probe_resp_wsc(),
            wmm_param,
            bss_desc: Some(bss.clone().to_fidl()),
        }
    }
/// Converts a given BssDescription into a BssInfo.
Converts a given BssDescription into a BssInfo.
Converts a given BssDescription into a BssInfo .
pub fn convert_bss_description(
        &self,
        bss: &BssDescription,
        wmm_param: Option<ie::WmmParam>,
    ) -> BssInfo {
        BssInfo {
            bssid: bss.bssid.clone(),
            ssid: bss.ssid().to_vec(),
            rssi_dbm: bss.rssi_dbm,
            snr_db: bss.snr_db,
            signal_report_time: zx::Time::ZERO,
            channel: Channel::from_fidl(bss.chan),
            protection: bss.protection(),
            compatible: self.is_bss_compatible(bss),
            ht_cap: bss.raw_ht_cap(),
            vht_cap: bss.raw_vht_cap(),
            probe_resp_wsc: bss.probe_resp_wsc(),
            wmm_param,
            bss_desc: Some(bss.clone().to_fidl()),
        }
    }
pub fn convert_bss_description ( & self , bss : & BssDescription , wmm_param : Option < ie :: WmmParam > , ) -> BssInfo { BssInfo { bssid : bss . bssid . clone ( ) , ssid : bss . ssid ( ) . to_vec ( ) , rssi_dbm : bss . rssi_dbm , snr_db : bss . snr_db , signal_report_time : zx :: Time :: ZERO , channel : Channel :: from_fidl ( bss . chan ) , protection : bss . protection ( ) , compatible : self . is_bss_compatible ( bss ) , ht_cap : bss . raw_ht_cap ( ) , vht_cap : bss . raw_vht_cap ( ) , probe_resp_wsc : bss . probe_resp_wsc ( ) , wmm_param , bss_desc : Some ( bss . clone ( ) . to_fidl ( ) ) , } }
Converts a given BssDescription into a BssInfo.
Converts a given BssDescription into a BssInfo .
&self
bss
&BssDescription
wmm_param
Option<ie::WmmParam>
&self
bss
&BssDescription
wmm_param
Option<ie::WmmParam>