From: Martin Kaiser Date: Sun, 3 Apr 2022 16:54:29 +0000 (+0200) Subject: staging: r8188eu: use ieee80211 helper for destination address X-Git-Tag: v5.19-rc1~48^2~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd99aa12bad9a534f981fa5c114c1d3f6ef0941;p=thirdparty%2Fkernel%2Fstable.git staging: r8188eu: use ieee80211 helper for destination address Use the ieee80211_get_DA helper to get a pointer to the destination address of the incoming data frame. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220403165438.357728-3-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 597c6291f0984..89b6e30915ce2 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -946,7 +946,7 @@ static int validate_recv_data_frame(struct adapter *adapter, int ret = _SUCCESS; bretry = GetRetry(ptr); - pda = get_da(ptr); + pda = ieee80211_get_DA(hdr); psa = ieee80211_get_SA(hdr); pbssid = get_hdr_bssid(ptr);