summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-05-24 12:00:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-06 08:59:47 +0300
commit76d01595b24c53ff223f888289d362a4dd94420c (patch)
tree4f7b562ba54970874b80b42b3327d39c2b025299 /include
parent56580e22fecb7cbe11f9debb8de07662a847d444 (diff)
downloadlinux-76d01595b24c53ff223f888289d362a4dd94420c.tar.xz
staging: r8188eu: calculate the addba request length
When issue_action_BA compiles an addba request, it does not add any extensions. start_seq_num is the last field of the addba request. The length of the request is the offset of the end of start_seq_num in the struct ieee80211_mgmt that defines the message. Use offsetofend to calculate this offset and drop the intermediate pktlen increments as we add addba request components. (We have to keep the increments for other message types until we use offsetofend for them as well.) Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220524090029.242584-13-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions