mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
staging: r8188eu: replace get_da with ieee80211_get_DA
Replace a call to the driver-specific get_da function with ieee80211_get_DA from ieee80211.h. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20221029171011.1572091-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1838742b1d
commit
1a048cde49
@@ -798,11 +798,12 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram
|
||||
unsigned char *p;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)precv_frame->rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint pkt_len = precv_frame->len;
|
||||
|
||||
/* check A1 matches or not */
|
||||
if (memcmp(myid(&padapter->eeprompriv), get_da(pframe), ETH_ALEN))
|
||||
if (memcmp(myid(&padapter->eeprompriv), ieee80211_get_DA(hdr), ETH_ALEN))
|
||||
return;
|
||||
|
||||
if (!(pmlmeinfo->state & WIFI_FW_AUTH_STATE))
|
||||
|
||||
Reference in New Issue
Block a user