wlan_common::ie::intersect

Function intersect_rates

Source
pub fn intersect_rates(
    ap_rates: ApRates<'_>,
    client_rates: ClientRates<'_>,
) -> Result<Vec<SupportedRate>, IntersectRatesError>
Expand description

Returns the rates specified by the AP that are also supported by the client, with basic bits following their values in the AP. Returns Error if intersection fails. Note: The client MUST support ALL the basic rates specified by the AP or the intersection fails.