staging: r8188eu: use ieee80211 helper for destination address
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:54:29 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:32:42 +0000 (16:32 +0200)
Use the ieee80211_get_DA helper to get a pointer to the destination
address of the incoming data frame.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220403165438.357728-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c

index 597c629..89b6e30 100644 (file)
@@ -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);