From: Martin Kaiser Date: Sun, 27 Feb 2022 16:41:46 +0000 (+0100) Subject: staging: r8188eu: use ieee80211 helper to read the protected bit X-Git-Tag: howlett/maple/20220722_2~883^2~73 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0beae891d3bae1161eaa2e48de4d68c0d5166afe;p=users%2Fjedix%2Flinux-maple.git staging: r8188eu: use ieee80211 helper to read the protected bit Use the ieee80211 helper to read the "protected" bit. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220227164147.1168847-8-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index e7a1aa9457b74..b245b0d54973d 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 */