Commit 0c45e617 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_check_bcn_info23a(): Use ether_addr_equal() to check BSSID

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 51dacaa7
...@@ -910,10 +910,9 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter, ...@@ -910,10 +910,9 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter,
return _FAIL; return _FAIL;
} }
if (memcmp(cur_network->network.MacAddress, mgmt->bssid, 6)) { if (!ether_addr_equal(cur_network->network.MacAddress, mgmt->bssid)) {
DBG_8723A("Oops: rtw_check_network_encrypt linked but recv " DBG_8723A("%s: linked but recv other bssid bcn"
"other bssid bcn\n" MAC_FMT MAC_FMT, MAC_FMT MAC_FMT "\n", __func__, MAC_ARG(mgmt->bssid),
MAC_ARG(mgmt->bssid),
MAC_ARG(cur_network->network.MacAddress)); MAC_ARG(cur_network->network.MacAddress));
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment