staging: r8188eu: use ieee80211 define for version check
authorMartin Kaiser <martin@kaiser.cx>
Sun, 27 Mar 2022 18:09:36 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 05:33:46 +0000 (07:33 +0200)
commitea1728b5cdb7496305d9b5a43a1070f3a413d022
tree286d8bd4630a57366cbe0a2635d3ca0d3180dbb5
parentb4c5ec356c7215beba2d54700c27d58926b7684c
staging: r8188eu: use ieee80211 define for version check

Use the IEEE80211_FCTL_VERS define to check the version number
of a received frame.

Covert IEEE80211_FCTL_VERS to le16 before using it as a mask for fc,
which is also an le16 value. The ieee80211_... helper functions use
the same approach.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220327180944.712545-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c