From: Martin Kaiser Date: Sun, 3 Apr 2022 16:54:30 +0000 (+0200) Subject: staging: r8188eu: use ieee80211 helper for retry bit X-Git-Tag: v6.6.17~7348^2~260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d296a81b551eeefdcd2cd5f7d28e6a7a7a089668;p=platform%2Fkernel%2Flinux-rpi.git staging: r8188eu: use ieee80211 helper for retry bit Use the ieee80211 helper to check if the retry bit is set in the incoming data frame. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220403165438.357728-4-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 89b6e30..c75b059 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -945,7 +945,7 @@ static int validate_recv_data_frame(struct adapter *adapter, struct security_priv *psecuritypriv = &adapter->securitypriv; int ret = _SUCCESS; - bretry = GetRetry(ptr); + bretry = ieee80211_has_retry(hdr->frame_control); pda = ieee80211_get_DA(hdr); psa = ieee80211_get_SA(hdr); pbssid = get_hdr_bssid(ptr);