staging: r8188eu: restructure mlme subfunction handling
authorMartin Kaiser <martin@kaiser.cx>
Mon, 24 Oct 2022 08:14:01 +0000 (10:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:19:37 +0000 (19:19 +0200)
commita12960f970d3d47d1aefd4293738b878a6e7d024
tree21787c0ad6ea964e9465bc38ebdf374323211843
parent4a1fc310e739d63d2d28952e358b33adde0d87e4
staging: r8188eu: restructure mlme subfunction handling

Move some code around in rtw_mlme_ext.c to make it simpler.

mlme_sta_tbl is used only by mgt_dispatcher. Move the table inside the
function. Move mgt_dispatcher behind the handler functions. We can then
make the handler functions static.

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