pub fn convert_bss_description_skip_compatibility_check(
        &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(),
            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()),

            // Default to false since we didn't do compatibility check
            compatible: false,
        }
    }
/// Convert a given BssDescription into a BssInfo. Because we don't do compatibility check
/// in this method, the |compatible| flag is always set to `false`.
Convert a given BssDescription into a BssInfo. Because we don't do compatibility check
in this method, the |compatible| flag is always set to `false`.
Convert a given BssDescription into a BssInfo . Because we don ' t do compatibility check in this method the |compatible| flag is always set to ` false ` .
pub fn convert_bss_description_skip_compatibility_check(
        &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(),
            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()),
            // Default to false since we didn't do compatibility check
            compatible: false,
        }
    }
pub fn convert_bss_description_skip_compatibility_check ( & 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 ( ) , 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 ( ) ) , // Default to false since we didn't do compatibility check compatible : false , } }
Convert a given BssDescription into a BssInfo.
Convert a given BssDescription into a BssInfo .
&self
bss
&BssDescription
wmm_param
Option<ie::WmmParam>
&self
bss
&BssDescription
wmm_param
Option<ie::WmmParam>