staging: r8188eu: use ieee80211 helpers to check the frame type
authorMartin Kaiser <martin@kaiser.cx>
Sun, 27 Feb 2022 16:41:41 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:34:15 +0000 (22:34 +0100)
commitd7e168c76f16c280f7ad8a09b8ecddd53c208a3f
treef32adebcc3ebfda388e5b706b7747c644b4c9826
parente9f3ac5edb25e47d6cc2b6fd2f4e1542ec7150e6
staging: r8188eu: use ieee80211 helpers to check the frame type

Use the ieee80211_is_... helper functions to check the frame type in
the validate_recv_frame function. Add a temporary variable for the
16-bit frame control field.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220227164147.1168847-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c