diff options
author | 2022-07-07 15:28:14 +0200 | |
---|---|---|
committer | 2022-07-15 11:43:19 +0200 | |
commit | e434254946c64bb27d7b202c0eeac03e49c166aa (patch) | |
tree | ea17abb92e362c85d2b9e4956df1b9236252e3ce /net/mac80211/ieee80211_i.h | |
parent | wifi: mac80211: skip rate statistics for MLD STAs (diff) | |
download | linux-e434254946c64bb27d7b202c0eeac03e49c166aa.tar.gz linux-e434254946c64bb27d7b202c0eeac03e49c166aa.tar.bz2 linux-e434254946c64bb27d7b202c0eeac03e49c166aa.zip |
wifi: mac80211: add a helper to fragment an element
The way this works is that you add all the element data,
keeping a pointer to the length field of the element.
Then call this helper function, which will fragment the
element if there was more than 255 bytes in the element,
memmove()ing the data back if needed.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 74d5fc5889bb..d17d73e8d19f 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -2193,6 +2193,7 @@ ieee802_11_parse_elems(const u8 *start, size_t len, bool action, return ieee802_11_parse_elems_crc(start, len, action, 0, 0, bss); } +void ieee80211_fragment_element(struct sk_buff *skb, u8 *len_pos); extern const int ieee802_1d_to_ac[8]; |