/// Performs capability negotiation with an AP assuming the Fuchsia device is a client.
Performs capability negotiation with an AP assuming the Fuchsia device is a client.
Performs capability negotiation with an AP assuming the Fuchsia device is a client .
pub fn intersect_with_ap_as_client(
    client: &ClientCapabilities,
    ap: &ApCapabilities,
) -> Result<StaCapabilities, Error> {
    let rates = intersect_rates(ApRates(&ap.0.rates[..]), ClientRates(&client.0.rates[..]))
        .map_err(|e| format_err!("could not intersect rates: {:?}", e))?;
    let (capability_info, ht_cap, vht_cap) = intersect(&client.0, &ap.0);
    Ok(StaCapabilities { rates, capability_info, ht_cap, vht_cap })
}
pub fn intersect_with_ap_as_client ( client : & ClientCapabilities , ap : & ApCapabilities , ) -> Result < StaCapabilities , Error > { let rates = intersect_rates ( ApRates ( & ap . 0 . rates [ .. ] ) , ClientRates ( & client . 0 . rates [ .. ] ) ) . map_err ( | e | format_err ! ( " " e ) ) ? ; let ( capability_info , ht_cap , vht_cap ) = intersect ( & client . 0 , & ap . 0 ) ; Ok ( StaCapabilities { rates , capability_info , ht_cap , vht_cap } ) }
Performs capability negotiation with an AP assuming the Fuchsia device is a client.
Performs capability negotiation with an AP assuming the Fuchsia device is a client .
client
&ClientCapabilities
ap
&ApCapabilities