]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/adm8211.c
Merge remote-tracking branch 'wireless-next/master'
[karo-tx-linux.git] / drivers / net / wireless / adm8211.c
index 84e57230b31a4d0a8e134ff0c6d82fb4327714d4..f35f93c31b09902c41e0f1b95e544a2c2940b77c 100644 (file)
@@ -1313,7 +1313,7 @@ static void adm8211_bss_info_changed(struct ieee80211_hw *dev,
        if (!(changes & BSS_CHANGED_BSSID))
                return;
 
-       if (memcmp(conf->bssid, priv->bssid, ETH_ALEN)) {
+       if (!ether_addr_equal(conf->bssid, priv->bssid)) {
                adm8211_set_bssid(dev, conf->bssid);
                memcpy(priv->bssid, conf->bssid, ETH_ALEN);
        }