OSDN Git Service

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)
commite434254946c64bb27d7b202c0eeac03e49c166aa
treeea17abb92e362c85d2b9e4956df1b9236252e3ce
parent8a263dcb585f5d4193e33e22ae245e90dd0b0786
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