staging: r8188eu: simplify the calculation of ie start offset
authorMartin Kaiser <martin@kaiser.cx>
Sat, 6 Aug 2022 11:13:52 +0000 (13:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:16:41 +0000 (15:16 +0200)
commitb5b26f1da5d9906a876693cc7598c54937a907d5
tree7860954745b5c143e30e1446792b6173e92623d8
parent12b7ad9e4940eba2e732ef948b6687ab2a291135
staging: r8188eu: simplify the calculation of ie start offset

Use offsetof to calculate the start offset of the information elements in
an association response message. This should make it easier to understand
how the offset is calculated.

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