diff options
| author | Martin Kaiser <martin@kaiser.cx> | 2022-04-17 12:22:18 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-20 18:37:17 +0200 |
| commit | bea6af5447fcbdc076dfaacc33db7e49a855f794 (patch) | |
| tree | 8f22feb79d4afc5e2eb8d701c40279814033a061 /drivers/staging | |
| parent | bd379a21488bbe694984ba5d1bd7d4cd4a17d416 (diff) | |
| download | cachepc-linux-bea6af5447fcbdc076dfaacc33db7e49a855f794.tar.gz cachepc-linux-bea6af5447fcbdc076dfaacc33db7e49a855f794.zip | |
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>
Diffstat (limited to 'drivers/staging')
| -rw-r--r-- | drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index d45245da5266..a234ffb8172f 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -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; |
