]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: add a helper to fragment an element
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Jul 2022 13:28:14 +0000 (15:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:19 +0000 (11:43 +0200)
commit16fdb5fbe6036fb0896f364e4306388c429be922
treeea17abb92e362c85d2b9e4956df1b9236252e3ce
parent7cf0aac0a8885808206a75799f6a34e74dcce9f9
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>
net/mac80211/ieee80211_i.h
net/mac80211/util.c