|
@@ -449,10 +449,10 @@ static int ath10k_mac_vif_update_wep_key(struct ath10k_vif *arvif,
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
|
|
|
|
list_for_each_entry(peer, &ar->peers, list) {
|
|
list_for_each_entry(peer, &ar->peers, list) {
|
|
- if (!memcmp(peer->addr, arvif->vif->addr, ETH_ALEN))
|
|
|
|
|
|
+ if (ether_addr_equal(peer->addr, arvif->vif->addr))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
- if (!memcmp(peer->addr, arvif->bssid, ETH_ALEN))
|
|
|
|
|
|
+ if (ether_addr_equal(peer->addr, arvif->bssid))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
if (peer->keys[key->keyidx] == key)
|
|
if (peer->keys[key->keyidx] == key)
|