staging: r8188eu: handle the non-ap case first
authorMartin Kaiser <martin@kaiser.cx>
Tue, 29 Nov 2022 20:51:51 +0000 (21:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:29:07 +0000 (13:29 +0100)
commit17580de3e2b876247f2201b6486559ef1e6b7f58
tree6a5c99fd8bafc9cb41d398473fa8c436d87fc8fd
parent8f7f05934ea24676c5c259a66bd71fa35ee22ef3
staging: r8188eu: handle the non-ap case first

The OnDisassoc function hasn't got much to do if we're not working as an
access point. Move this case out of the large if statement to simplify the
code.

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/20221129205152.128172-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c