psta->padapter = pstapriv->padapter;
- memcpy(psta->hwaddr, hwaddr, ETH_ALEN);
+ ether_addr_copy(psta->hwaddr, hwaddr);
index = wifi_mac_hash(hwaddr);
list_for_each(plist, phead) {
psta = container_of(plist, struct sta_info, hash_list);
- if (!memcmp(psta->hwaddr, addr, ETH_ALEN)) {
- /* if found the matched address */
+ /* if found the matched address */
+ if (ether_addr_equal(psta->hwaddr, addr))
break;
- }
+
psta = NULL;
}
spin_unlock_bh(&pstapriv->sta_hash_lock);
list_for_each(plist, phead) {
paclnode = container_of(plist, struct rtw_wlan_acl_node, list);
- if (!memcmp(paclnode->addr, mac_addr, ETH_ALEN)) {
+ if (ether_addr_equal(paclnode->addr, mac_addr)) {
if (paclnode->valid) {
match = true;
break;