aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8188ee/trx.c')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8188ee/trx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c b/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
index a8871d66d56a..68685a898257 100644
--- a/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8188ee/trx.c
@@ -305,13 +305,14 @@ static void _rtl88ee_translate_rx_signal_stuff(struct ieee80211_hw *hw,
305 psaddr = ieee80211_get_SA(hdr); 305 psaddr = ieee80211_get_SA(hdr);
306 memcpy(pstatus->psaddr, psaddr, ETH_ALEN); 306 memcpy(pstatus->psaddr, psaddr, ETH_ALEN);
307 307
308 addr = (!compare_ether_addr(mac->bssid, (ufc & IEEE80211_FCTL_TODS) ? 308 addr = ether_addr_equal(mac->bssid,
309 hdr->addr1 : (ufc & IEEE80211_FCTL_FROMDS) ? 309 (ufc & IEEE80211_FCTL_TODS) ? hdr->addr1 :
310 hdr->addr2 : hdr->addr3)); 310 (ufc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 :
311 hdr->addr3);
311 match_bssid = ((IEEE80211_FTYPE_CTL != type) && (!pstatus->hwerror) && 312 match_bssid = ((IEEE80211_FTYPE_CTL != type) && (!pstatus->hwerror) &&
312 (!pstatus->crc) && (!pstatus->icv)) && addr; 313 (!pstatus->crc) && (!pstatus->icv)) && addr;
313 314
314 addr = (!compare_ether_addr(praddr, rtlefuse->dev_addr)); 315 addr = ether_addr_equal(praddr, rtlefuse->dev_addr);
315 packet_toself = match_bssid && addr; 316 packet_toself = match_bssid && addr;
316 317
317 if (ieee80211_is_beacon(fc)) 318 if (ieee80211_is_beacon(fc))