mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 07:35:44 +08:00
staging: r8188eu: the frame type is shifted out
The index calculation in mgt_dispatcher does not use the frame type. The 4-bit right shift ignores protocol version and frame type. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220417102221.466524-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd379a2148
commit
bea6af5447
@ -408,8 +408,7 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
|
||||
ptable = mlme_sta_tbl;
|
||||
|
||||
index = (le16_to_cpu(hdr->frame_control) &
|
||||
(IEEE80211_FCTL_STYPE | IEEE80211_FCTL_FTYPE)) >> 4;
|
||||
index = (le16_to_cpu(hdr->frame_control) & IEEE80211_FCTL_STYPE) >> 4;
|
||||
if (index > 13)
|
||||
return;
|
||||
ptable += index;
|
||||
|
Loading…
Reference in New Issue
Block a user