staging: r8188eu: replace mlme_handler with function pointer
authorMartin Kaiser <martin@kaiser.cx>
Sun, 17 Apr 2022 10:22:19 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 16:37:17 +0000 (18:37 +0200)
commit9e9bbd6ffd0e2dfeb02b8233f069974c7d8c5a98
tree2b8adbe19df16da297d2e09e988be1c11a657ff4
parentbea6af5447fcbdc076dfaacc33db7e49a855f794
staging: r8188eu: replace mlme_handler with function pointer

mlme_sta_tbl is an array of struct mlme_handler. mlme_handler's num and
str components are not used. The code in mgt_dispatcher uses the subtype
number of the incoming frame to select the array entry for compiling the
repsonse.

We can remove struct mlme_handler and make mlme_sta_tbl an array of
function pointers.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220417102221.466524-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h