From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:24 +0000 (+0200) Subject: staging: rtl8723au: rtw_check_bcn_info23a(): Use ether_addr_equal() to check BSSID X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c45e6170d65332e9f314dbc36468884a650b412;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: rtw_check_bcn_info23a(): Use ether_addr_equal() to check BSSID Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index 3195b444e3bc..a2c249fd88b5 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -910,10 +910,9 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter, return _FAIL; } - if (memcmp(cur_network->network.MacAddress, mgmt->bssid, 6)) { - DBG_8723A("Oops: rtw_check_network_encrypt linked but recv " - "other bssid bcn\n" MAC_FMT MAC_FMT, - MAC_ARG(mgmt->bssid), + if (!ether_addr_equal(cur_network->network.MacAddress, mgmt->bssid)) { + DBG_8723A("%s: linked but recv other bssid bcn" + MAC_FMT MAC_FMT "\n", __func__, MAC_ARG(mgmt->bssid), MAC_ARG(cur_network->network.MacAddress)); return true; }