staging: rtl8723au: rtw_check_bcn_info23a(): Use ether_addr_equal() to check BSSID
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:24 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 20:51:53 +0000 (13:51 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index 3195b444e3bce606a55b010591dbd5996137582b..a2c249fd88b5b4b1de8f4250dce4b6f40db7bc76 100644 (file)
@@ -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;
        }