staging: r8188eu: use a qos_hdr in validate_recv_data_frame
authorMartin Kaiser <martin@kaiser.cx>
Mon, 7 Nov 2022 20:28:22 +0000 (21:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:29:55 +0000 (16:29 +0100)
commitd54b6ac14d3f1ac033fe88a7f9935ba9f1f47077
tree17d4e33682338e13a06bf7620dd16ea6f8409e47
parenta57ef65a09a0214776675dcf931ace146724b63c
staging: r8188eu: use a qos_hdr in validate_recv_data_frame

Define a struct ieee80211_qos_hdr in the validate_recv_data_frame
function. Use this struct to replace some numeric offsets and make the
code easier to understand.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221107202824.61431-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c