Lines Matching refs:wpan_dev

29 	struct wpan_dev *wpan_dev = &sdata->wpan_dev;  in mac802154_wpan_update_llsec()  local
36 params.pan_id = wpan_dev->pan_id; in mac802154_wpan_update_llsec()
39 params.hwaddr = wpan_dev->extended_addr; in mac802154_wpan_update_llsec()
52 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_ioctl() local
67 pan_id = le16_to_cpu(wpan_dev->pan_id); in mac802154_wpan_ioctl()
68 short_addr = le16_to_cpu(wpan_dev->short_addr); in mac802154_wpan_ioctl()
100 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl()
101 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); in mac802154_wpan_ioctl()
123 if (sdata->wpan_dev.lowpan_dev) { in mac802154_wpan_mac_addr()
124 if (netif_running(sdata->wpan_dev.lowpan_dev)) in mac802154_wpan_mac_addr()
133 sdata->wpan_dev.extended_addr = extended_addr; in mac802154_wpan_mac_addr()
138 if (sdata->wpan_dev.lowpan_dev) in mac802154_wpan_mac_addr()
139 dev_addr_set(sdata->wpan_dev.lowpan_dev, dev->dev_addr); in mac802154_wpan_mac_addr()
147 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_setup_hw() local
153 local->addr_filt.pan_id = wpan_dev->pan_id; in ieee802154_setup_hw()
154 local->addr_filt.ieee_addr = wpan_dev->extended_addr; in ieee802154_setup_hw()
155 local->addr_filt.short_addr = wpan_dev->short_addr; in ieee802154_setup_hw()
159 ret = drv_set_lbt_mode(local, wpan_dev->lbt); in ieee802154_setup_hw()
165 ret = drv_set_csma_params(local, wpan_dev->min_be, in ieee802154_setup_hw()
166 wpan_dev->max_be, in ieee802154_setup_hw()
167 wpan_dev->csma_retries); in ieee802154_setup_hw()
173 ret = drv_set_max_frame_retries(local, wpan_dev->frame_retries); in ieee802154_setup_hw()
217 struct wpan_dev *nwpan_dev = &nsdata->wpan_dev; in ieee802154_check_mac_settings()
218 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_check_mac_settings() local
226 if (wpan_dev->pan_id != nwpan_dev->pan_id || in ieee802154_check_mac_settings()
227 wpan_dev->short_addr != nwpan_dev->short_addr || in ieee802154_check_mac_settings()
228 wpan_dev->extended_addr != nwpan_dev->extended_addr) in ieee802154_check_mac_settings()
233 if (wpan_dev->min_be != nwpan_dev->min_be || in ieee802154_check_mac_settings()
234 wpan_dev->max_be != nwpan_dev->max_be || in ieee802154_check_mac_settings()
235 wpan_dev->csma_retries != nwpan_dev->csma_retries) in ieee802154_check_mac_settings()
240 if (wpan_dev->frame_retries != nwpan_dev->frame_retries) in ieee802154_check_mac_settings()
245 if (wpan_dev->lbt != nwpan_dev->lbt) in ieee802154_check_mac_settings()
269 if (sdata->wpan_dev.iftype != NL802154_IFTYPE_MONITOR && in ieee802154_check_concurrent_iface()
270 nsdata->wpan_dev.iftype != NL802154_IFTYPE_MONITOR) in ieee802154_check_concurrent_iface()
289 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_open() local
291 rc = ieee802154_check_concurrent_iface(sdata, wpan_dev->iftype); in mac802154_wpan_open()
362 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_header_create() local
379 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || in ieee802154_header_create()
380 wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || in ieee802154_header_create()
381 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in ieee802154_header_create()
383 hdr.source.extended_addr = wpan_dev->extended_addr; in ieee802154_header_create()
386 hdr.source.short_addr = wpan_dev->short_addr; in ieee802154_header_create()
389 hdr.source.pan_id = wpan_dev->pan_id; in ieee802154_header_create()
428 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_header_create() local
437 hdr.fc.ack_request = wpan_dev->ackreq; in mac802154_header_create()
446 hdr.dest.pan_id = wpan_dev->pan_id; in mac802154_header_create()
454 hdr.source.extended_addr = wpan_dev->extended_addr; in mac802154_header_create()
551 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_setup_sdata() local
556 sdata->wpan_dev.iftype = type; in ieee802154_setup_sdata()
559 atomic_set(&wpan_dev->bsn, tmp); in ieee802154_setup_sdata()
561 atomic_set(&wpan_dev->dsn, tmp); in ieee802154_setup_sdata()
564 wpan_dev->min_be = 3; in ieee802154_setup_sdata()
565 wpan_dev->max_be = 5; in ieee802154_setup_sdata()
566 wpan_dev->csma_retries = 4; in ieee802154_setup_sdata()
567 wpan_dev->frame_retries = 3; in ieee802154_setup_sdata()
569 wpan_dev->pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in ieee802154_setup_sdata()
570 wpan_dev->short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in ieee802154_setup_sdata()
575 ieee802154_be64_to_le64(&wpan_dev->extended_addr, in ieee802154_setup_sdata()
584 wpan_dev->header_ops = &ieee802154_header_ops; in ieee802154_setup_sdata()
655 ndev->ieee802154_ptr = &sdata->wpan_dev; in ieee802154_if_add()
658 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
660 INIT_LIST_HEAD(&sdata->wpan_dev.list); in ieee802154_if_add()