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;
struct uwb_rc_evt_beacon *be;
struct uwb_beacon_frame *bf;
struct uwb_beca_e *bce;
- struct device *dev = &evt->rc->uwb_dev.dev;
unsigned long last_ts;
rc = evt->rc;
if (result < 0)
return result;
- /* Ignore beacon if it is from an alien. */
+ /* FIXME: handle alien beacons. */
if (be->bBeaconType == UWB_RC_BEACON_TYPE_OL_ALIEN ||
be->bBeaconType == UWB_RC_BEACON_TYPE_NOL_ALIEN) {
- if (printk_ratelimit())
- dev_err(dev, "BEACON received from ALIEN. Action? \n");
- result = -ENOSYS;
- return 0;
+ return -ENOSYS;
}
+
bf = (struct uwb_beacon_frame *) be->BeaconInfo;
/*