Function wlan_common::wmm::derive_tid
source · pub fn derive_tid(ether_type: u16, payload: &[u8]) -> Option<u8>
Expand description
Given an ethernet payload, extract DS field and map it to User Priority if it’s an IP packet. Otherwise, return None. Note that this function does not check that the payload is a valid IP packet. It only requires that the payload is long enough to contain the DS field.