]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d5eebd4906ead5ce7c9c25c9bb3c7579222c615
tree7860954745b5c143e30e1446792b6173e92623d8
parent54af85e0e150bc05d70e772a12017d867d7e0980
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