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
152 wpan_dev->promiscuous_mode); in ieee802154_setup_hw()
158 ret = drv_set_pan_id(local, wpan_dev->pan_id); in ieee802154_setup_hw()
162 ret = drv_set_extended_addr(local, wpan_dev->extended_addr); in ieee802154_setup_hw()
166 ret = drv_set_short_addr(local, wpan_dev->short_addr); in ieee802154_setup_hw()
172 ret = drv_set_lbt_mode(local, wpan_dev->lbt); in ieee802154_setup_hw()
178 ret = drv_set_csma_params(local, wpan_dev->min_be, in ieee802154_setup_hw()
179 wpan_dev->max_be, in ieee802154_setup_hw()
180 wpan_dev->csma_retries); in ieee802154_setup_hw()
186 ret = drv_set_max_frame_retries(local, wpan_dev->frame_retries); in ieee802154_setup_hw()
226 struct wpan_dev *wpan_dev, in ieee802154_check_mac_settings() argument
227 struct wpan_dev *nwpan_dev) in ieee802154_check_mac_settings()
232 if (wpan_dev->promiscuous_mode != nwpan_dev->promiscuous_mode) in ieee802154_check_mac_settings()
237 if (wpan_dev->pan_id != nwpan_dev->pan_id || in ieee802154_check_mac_settings()
238 wpan_dev->short_addr != nwpan_dev->short_addr || in ieee802154_check_mac_settings()
239 wpan_dev->extended_addr != nwpan_dev->extended_addr) in ieee802154_check_mac_settings()
244 if (wpan_dev->min_be != nwpan_dev->min_be || in ieee802154_check_mac_settings()
245 wpan_dev->max_be != nwpan_dev->max_be || in ieee802154_check_mac_settings()
246 wpan_dev->csma_retries != nwpan_dev->csma_retries) in ieee802154_check_mac_settings()
251 if (wpan_dev->frame_retries != nwpan_dev->frame_retries) in ieee802154_check_mac_settings()
256 if (wpan_dev->lbt != nwpan_dev->lbt) in ieee802154_check_mac_settings()
268 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_check_concurrent_iface() local
281 if (wpan_dev->iftype == NL802154_IFTYPE_NODE && in ieee802154_check_concurrent_iface()
282 nsdata->wpan_dev.iftype == NL802154_IFTYPE_NODE) in ieee802154_check_concurrent_iface()
288 ret = ieee802154_check_mac_settings(local, wpan_dev, in ieee802154_check_concurrent_iface()
289 &nsdata->wpan_dev); in ieee802154_check_concurrent_iface()
302 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_open() local
304 rc = ieee802154_check_concurrent_iface(sdata, wpan_dev->iftype); in mac802154_wpan_open()
369 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_header_create() local
386 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || in ieee802154_header_create()
387 wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || in ieee802154_header_create()
388 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in ieee802154_header_create()
390 hdr.source.extended_addr = wpan_dev->extended_addr; in ieee802154_header_create()
393 hdr.source.short_addr = wpan_dev->short_addr; in ieee802154_header_create()
396 hdr.source.pan_id = wpan_dev->pan_id; in ieee802154_header_create()
435 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_header_create() local
444 hdr.fc.ack_request = wpan_dev->ackreq; in mac802154_header_create()
453 hdr.dest.pan_id = wpan_dev->pan_id; in mac802154_header_create()
461 hdr.source.extended_addr = wpan_dev->extended_addr; in mac802154_header_create()
558 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_setup_sdata() local
563 sdata->wpan_dev.iftype = type; in ieee802154_setup_sdata()
566 atomic_set(&wpan_dev->bsn, tmp); in ieee802154_setup_sdata()
568 atomic_set(&wpan_dev->dsn, tmp); in ieee802154_setup_sdata()
571 wpan_dev->min_be = 3; in ieee802154_setup_sdata()
572 wpan_dev->max_be = 5; in ieee802154_setup_sdata()
573 wpan_dev->csma_retries = 4; in ieee802154_setup_sdata()
574 wpan_dev->frame_retries = 3; in ieee802154_setup_sdata()
576 wpan_dev->pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in ieee802154_setup_sdata()
577 wpan_dev->short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in ieee802154_setup_sdata()
581 ieee802154_be64_to_le64(&wpan_dev->extended_addr, in ieee802154_setup_sdata()
589 wpan_dev->promiscuous_mode = false; in ieee802154_setup_sdata()
590 wpan_dev->header_ops = &ieee802154_header_ops; in ieee802154_setup_sdata()
603 wpan_dev->promiscuous_mode = true; in ieee802154_setup_sdata()
660 ndev->ieee802154_ptr = &sdata->wpan_dev; in ieee802154_if_add()
663 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
665 INIT_LIST_HEAD(&sdata->wpan_dev.list); in ieee802154_if_add()