diff options
author | 2022-02-27 17:41:46 +0100 | |
---|---|---|
committer | 2022-03-01 22:34:15 +0100 | |
commit | 0beae891d3bae1161eaa2e48de4d68c0d5166afe (patch) | |
tree | e29c5ab8582e34ddf0151f6f70182eb459b41c5c | |
parent | staging: r8188eu: use ieee80211 helper to read "more data" (diff) | |
download | wireguard-linux-0beae891d3bae1161eaa2e48de4d68c0d5166afe.tar.xz wireguard-linux-0beae891d3bae1161eaa2e48de4d68c0d5166afe.zip |
staging: r8188eu: use ieee80211 helper to read the protected bit
Use the ieee80211 helper to read the "protected" bit.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220227164147.1168847-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index e7a1aa9457b7..b245b0d54973 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -1083,7 +1083,7 @@ static int validate_recv_frame(struct adapter *adapter, struct recv_frame *precv pattrib->pw_save = GetPwrMgt(ptr); pattrib->mfrag = ieee80211_has_morefrags(fc); pattrib->mdata = ieee80211_has_moredata(fc); - pattrib->privacy = GetPrivacy(ptr); + pattrib->privacy = ieee80211_has_protected(fc); pattrib->order = GetOrder(ptr); /* Dump rx packets */ |