pub fn on_mlme_scan_result(
        &mut self,
        msg: fidl_mlme::ScanResult,
        sme_inspect: &Arc<inspect::SmeTree>,
    ) {
        if !self.matching_mlme_txn_id(msg.txn_id) {
            error!("rejecting scan result with wrong txn id");
            return;
        }
        match &mut self.current {
            ScanState::NotScanning | ScanState::StaleJoinScan { .. } => {}
            ScanState::ScanningToJoin { bss_map, .. } => {
                maybe_insert_bss(bss_map, msg.bss, sme_inspect);
            }
            ScanState::ScanningToDiscover { bss_map, .. } => {
                maybe_insert_bss(bss_map, msg.bss, sme_inspect);
            }
        }
    }
// Should be called for every OnScanResult event received from MLME.
Should be called for every OnScanResult event received from MLME.
Should be called for every OnScanResult event received from MLME .
pub fn on_mlme_scan_result(
        &mut self,
        msg: fidl_mlme::ScanResult,
        sme_inspect: &Arc<inspect::SmeTree>,
    ) {
        if !self.matching_mlme_txn_id(msg.txn_id) {
            error!("rejecting scan result with wrong txn id");
            return;
        }
        match &mut self.current {
            ScanState::NotScanning | ScanState::StaleJoinScan { .. } => {}
            ScanState::ScanningToJoin { bss_map, .. } => {
                maybe_insert_bss(bss_map, msg.bss, sme_inspect);
            }
            ScanState::ScanningToDiscover { bss_map, .. } => {
                maybe_insert_bss(bss_map, msg.bss, sme_inspect);
            }
        }
    }
pub fn on_mlme_scan_result ( & mut self , msg : fidl_mlme :: ScanResult , sme_inspect : & Arc < inspect :: SmeTree > , ) { if ! self . matching_mlme_txn_id ( msg . txn_id ) { error ! ( " " ) ; return ; } match & mut self . current { ScanState :: NotScanning | ScanState :: StaleJoinScan { .. } => { } ScanState :: ScanningToJoin { bss_map , .. } => { maybe_insert_bss ( bss_map , msg . bss , sme_inspect ) ; } ScanState :: ScanningToDiscover { bss_map , .. } => { maybe_insert_bss ( bss_map , msg . bss , sme_inspect ) ; } } }
Should be called for every OnScanResult event received from MLME.
Should be called for every OnScanResult event received from MLME .
&mut self
msg
fidl_mlme::ScanResult
sme_inspect
&Arc<inspect::SmeTree>
&mut self
msg
fidl_mlme::ScanResult
sme_inspect
&Arc<inspect::SmeTree>