linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Kaiser <martin@kaiser.cx>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
	Phillip Potter <phil@philpotter.co.uk>,
	Michael Straube <straube.linux@gmail.com>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Pavel Skripkin <paskripkin@gmail.com>,
	Martin Kaiser <martin@kaiser.cx>
Subject: [PATCH v2 7/8] staging: r8188eu: use ieee80211 helper to read the protected bit
Date: Sun, 27 Feb 2022 17:41:46 +0100	[thread overview]
Message-ID: <20220227164147.1168847-8-martin@kaiser.cx> (raw)
In-Reply-To: <20220227164147.1168847-1-martin@kaiser.cx>

Use the ieee80211 helper to read the "protected" bit.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
 drivers/staging/r8188eu/core/rtw_recv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */
-- 
2.30.2


  parent reply	other threads:[~2022-02-27 16:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18 13:50 [PATCH 0/4] staging: r8188eu: use ieee80211 defines and helpers Martin Kaiser
2022-02-18 13:50 ` [PATCH 1/4] staging: r8188eu: use ieee80211 define for management frame type Martin Kaiser
2022-02-18 13:50 ` [PATCH 2/4] staging: r8188eu: use ieee80211 helpers to check the " Martin Kaiser
2022-02-18 13:50 ` [PATCH 3/4] staging: r8188eu: refactor validate_recv_frame's error handling Martin Kaiser
2022-02-18 13:50 ` [PATCH 4/4] staging: r8188eu: use ieee80211 helper for qos bit Martin Kaiser
2022-02-27 16:41 ` [PATCH v2 0/8] staging: r8188eu: use ieee80211 defines and helpers Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 1/8] staging: r8188eu: use ieee80211 define for management frame type Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 2/8] staging: r8188eu: use ieee80211 helpers to check the " Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 3/8] staging: r8188eu: refactor validate_recv_frame's error handling Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 4/8] staging: r8188eu: use ieee80211 helper for qos bit Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 5/8] staging: r8188eu: use ieee80211 helper to check for more fragments Martin Kaiser
2022-02-27 16:41   ` [PATCH v2 6/8] staging: r8188eu: use ieee80211 helper to read "more data" Martin Kaiser
2022-02-27 16:41   ` Martin Kaiser [this message]
2022-02-27 16:41   ` [PATCH v2 8/8] staging: r8188eu: use ieee80211 helper to read the "order" bit Martin Kaiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220227164147.1168847-8-martin@kaiser.cx \
    --to=martin@kaiser.cx \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=paskripkin@gmail.com \
    --cc=phil@philpotter.co.uk \
    --cc=straube.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).