mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
staging: r8188eu: remove category check in OnAction_p2p
The caller of OnAction_p2p has already checked the action category. We can remove the check in OnAction_p2p. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20221030173326.1588647-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa415931f9
commit
b31b29788f
@@ -3835,7 +3835,7 @@ static void on_action_public(struct adapter *padapter, struct recv_frame *precv_
|
||||
static void OnAction_p2p(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
u8 *frame_body;
|
||||
u8 category, OUI_Subtype;
|
||||
u8 OUI_Subtype;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint len = precv_frame->len;
|
||||
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
|
||||
@@ -3846,10 +3846,6 @@ static void OnAction_p2p(struct adapter *padapter, struct recv_frame *precv_fram
|
||||
|
||||
frame_body = (unsigned char *)(pframe + sizeof(struct ieee80211_hdr_3addr));
|
||||
|
||||
category = frame_body[0];
|
||||
if (category != RTW_WLAN_CATEGORY_P2P)
|
||||
return;
|
||||
|
||||
if (be32_to_cpu(*((__be32 *)(frame_body + 1))) != P2POUI)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user