staging: r8188eu: don't store addba request
authorMartin Kaiser <martin@kaiser.cx>
Sun, 6 Nov 2022 12:48:53 +0000 (13:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:29:29 +0000 (16:29 +0100)
commitcc027b3e4087e27d23e5c1d778e802c35f4c987d
tree3576b3d2ef3abdd0e22109219031afd6fe6a3ed2
parent30534c72bac17a6c160017229ba38fcd0cc21ac6
staging: r8188eu: don't store addba request

There's no need to store an incoming addba request in struct
mlme_ext_info. We only need the addba request to copy some of its fields
into our addba response.

It's simpler to pass the incoming request's management frame to
issue_action_BA as an additional parameter. issue_action_BA can then
extract the required fields. If issue_action_BA prepares a request rather
than a response, the caller sets the parameter for the incoming request to
NULL.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221106124901.720785-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h
drivers/staging/r8188eu/include/wifi.h