staging: r8188eu: get reason code from mgmt struct
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Oct 2022 15:24:33 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:35:03 +0000 (17:35 +0200)
commitf54ded554f04cc0e7f5edcc571d9c09581f67312
treea2277c34b8ccd66de1a7d2b2537259f56ed05f16
parentc5997186452ae29b535fd6cb65b4f5534b52ea25
staging: r8188eu: get reason code from mgmt struct

Read the deauth reson code from the newly added mgmt structure instead of
calculating the offset ourselves.

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