Skip to main content

remove_wlan_headers

Function remove_wlan_headers 

Source
pub fn remove_wlan_headers(data: &[u8]) -> Result<&[u8], String>
Available on crate feature transport only.
Expand description

Strips IEEE 802.11p and LLC headers from a binary message buffer

Convenience function combining remove_80211_hdr and remove_llc_hdr.

IEEE 802.11 data frames always have an LLC header. Since remove_80211_hdr only allows data frames, we usually need to remove them, too.

ยงErrors

Returns a human-readable error when parsing failed