/// Establish the RSNA if all conditions are met.
Establish the RSNA if all conditions are met.
Establish the RSNA if all conditions are met .
fn try_establish(self, bss: &BssDescription, context: &mut Context) -> RsnaProgressed {
        if self.handshake_complete && self.pending_key_ids.is_empty() {
            context.mlme_sink.send(MlmeRequest::SetCtrlPort(fidl_mlme::SetControlledPortRequest {
                peer_sta_address: bss.bssid.0,
                state: fidl_mlme::ControlledPortState::Open,
            }));
            let now = now();
            RsnaProgressed::Complete(LinkUp { protection: Protection::Rsna(self.rsna), since: now })
        } else {
            RsnaProgressed::InProgress(self)
        }
    }
fn try_establish ( self , bss : & BssDescription , context : & mut Context ) -> RsnaProgressed { if self . handshake_complete && self . pending_key_ids . is_empty ( ) { context . mlme_sink . send ( MlmeRequest :: SetCtrlPort ( fidl_mlme :: SetControlledPortRequest { peer_sta_address : bss . bssid . 0 , state : fidl_mlme :: ControlledPortState :: Open , } ) ) ; let now = now ( ) ; RsnaProgressed :: Complete ( LinkUp { protection : Protection :: Rsna ( self . rsna ) , since : now } ) } else { RsnaProgressed :: InProgress ( self ) } }
Establish the RSNA if all conditions are met.
Establish the RSNA if all conditions are met .
self
bss
&BssDescription
context
&mut Context