summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/beacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/beacon.c')
-rw-r--r--drivers/uwb/beacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c
index c7f3c972f07..46b18eec502 100644
--- a/drivers/uwb/beacon.c
+++ b/drivers/uwb/beacon.c
@@ -207,7 +207,7 @@ struct uwb_beca_e *__uwb_beca_find_bymac(const struct uwb_mac_addr *mac_addr)
struct uwb_beca_e *bce, *next;
list_for_each_entry_safe(bce, next, &uwb_beca.list, node) {
if (!memcmp(bce->mac_addr, mac_addr->data,
- sizeof(bce->mac_addr)))
+ sizeof(struct uwb_mac_addr)))
goto out;
}
bce = NULL;