/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_mgmt.c | 52 ctx->scan_ctx->pan_id = mpdu->mhr.src_addr->plain.pan_id; in ieee802154_handle_beacon() 129 params.dst.pan_id = IEEE802154_BROADCAST_PAN_ID; in ieee802154_scan() 149 ieee802154_radio_remove_pan_id(iface, ctx->pan_id); in ieee802154_scan() 213 ieee802154_radio_filter_pan_id(iface, ctx->pan_id); in ieee802154_scan() 263 __ASSERT_NO_MSG(ctx->pan_id != IEEE802154_PAN_ID_NOT_ASSOCIATED); in set_association() 290 ieee802154_radio_remove_pan_id(iface, ctx->pan_id); in remove_association() 293 ctx->pan_id = IEEE802154_PAN_ID_NOT_ASSOCIATED; in remove_association() 309 return ctx->pan_id != IEEE802154_PAN_ID_NOT_ASSOCIATED && in is_associated() 344 mpdu->mhr.dst_addr->plain.pan_id != sys_cpu_to_le16(ctx->pan_id) || in ieee802154_handle_mac_command() 412 mpdu->mhr.dst_addr->plain.pan_id != sys_cpu_to_le16(ctx->pan_id)) { in ieee802154_handle_mac_command() [all …]
|
D | ieee802154_shell.c | 101 params.pan_id = atoi(argv[1]); in cmd_ieee802154_associate() 120 argv[2], params.pan_id); in cmd_ieee802154_associate() 125 "Associated to PAN ID %u\n", params.pan_id); in cmd_ieee802154_associate() 218 "LQI: %u Associable: %s\n", params.channel, params.pan_id, in scan_result_cb() 367 uint16_t pan_id; in cmd_ieee802154_set_pan_id() local 382 pan_id = (uint16_t)atoi(argv[1]); in cmd_ieee802154_set_pan_id() 385 &pan_id, sizeof(uint16_t))) { in cmd_ieee802154_set_pan_id() 387 "Could not set PAN ID %u\n", pan_id); in cmd_ieee802154_set_pan_id() 392 "PAN ID %u set\n", pan_id); in cmd_ieee802154_set_pan_id() 402 uint16_t pan_id; in cmd_ieee802154_get_pan_id() local [all …]
|
D | ieee802154_utils.h | 167 static inline void ieee802154_radio_filter_pan_id(struct net_if *iface, uint16_t pan_id) in ieee802154_radio_filter_pan_id() argument 176 filter.pan_id = pan_id; in ieee802154_radio_filter_pan_id() 262 static inline void ieee802154_radio_remove_pan_id(struct net_if *iface, uint16_t pan_id) in ieee802154_radio_remove_pan_id() argument 271 filter.pan_id = pan_id; in ieee802154_radio_remove_pan_id()
|
D | ieee802154_frame.h | 118 uint16_t pan_id; member 381 uint16_t pan_id; member 460 uint16_t pan_id; /* in CPU byte order */ member 464 uint16_t pan_id; /* in CPU byte order */ member
|
D | ieee802154_frame.c | 252 if (mhr->src_addr->plain.pan_id != IEEE802154_BROADCAST_PAN_ID) { in validate_mac_command_cfi_to_mhr() 606 address_field->plain.pan_id = sys_cpu_to_le16(params->dst.pan_id); in generate_addressing_fields() 630 address_field->plain.pan_id = sys_cpu_to_le16(params->pan_id); in generate_addressing_fields() 689 params.dst.pan_id = ctx->pan_id; in ieee802154_create_data_frame() 690 params.pan_id = ctx->pan_id; in ieee802154_create_data_frame()
|
D | ieee802154.c | 316 if (!(dst_plain->pan_id == IEEE802154_BROADCAST_PAN_ID || in ieee802154_check_dst_addr() 317 dst_plain->pan_id == sys_cpu_to_le16(ctx->pan_id))) { in ieee802154_check_dst_addr() 644 ctx->pan_id = IEEE802154_PAN_ID_NOT_ASSOCIATED; in ieee802154_init()
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_shell_test.c | 64 zassert_equal(scan_ctx->pan_id, EXPECTED_COORDINATOR_PAN_CPU_ORDER, in scan_result_cb() 91 zassert_equal(mpdu->mhr.dst_addr->plain.pan_id, IEEE802154_BROADCAST_PAN_ID, in test_beacon_request() 180 zassert_equal(ctx->pan_id, EXPECTED_COORDINATOR_PAN_CPU_ORDER, in test_associate_shell_cmd() 278 .pan_id = EXPECTED_COORDINATOR_PAN_CPU_ORDER, in ZTEST() 328 ctx->pan_id = EXPECTED_COORDINATOR_PAN_CPU_ORDER; in ZTEST() 339 zassert_equal(ctx->pan_id, IEEE802154_PAN_ID_NOT_ASSOCIATED, in ZTEST() 372 .pan_id = EXPECTED_COORDINATOR_PAN_CPU_ORDER, in ZTEST() 383 ctx->pan_id = EXPECTED_COORDINATOR_PAN_CPU_ORDER; in ZTEST() 426 zassert_equal(ctx->pan_id, IEEE802154_PAN_ID_NOT_ASSOCIATED, in ZTEST() 449 zassert_equal(ctx->pan_id, IEEE802154_PAN_ID_NOT_ASSOCIATED, in ZTEST() [all …]
|
D | ieee802154_fake_driver.c | 144 ctx->pan_id = IEEE802154_PAN_ID_NOT_ASSOCIATED; in fake_iface_init()
|
/Zephyr-latest/subsys/net/lib/config/ |
D | ieee802154_settings.c | 23 uint16_t pan_id = CONFIG_NET_CONFIG_IEEE802154_PAN_ID; in z_net_config_ieee802154_setup() local 55 iface, &pan_id, sizeof(uint16_t)) || in z_net_config_ieee802154_setup()
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154.h | 262 uint16_t pan_id; member
|
D | ieee802154_mgmt.h | 321 uint16_t pan_id; /* in CPU byte order */ member
|
D | ieee802154_radio.h | 601 uint16_t pan_id; member
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_uart_pipe.c | 199 static int upipe_set_pan_id(const struct device *dev, uint16_t pan_id) in upipe_set_pan_id() argument 205 sys_put_le16(pan_id, pan_id_le); in upipe_set_pan_id() 249 return upipe_set_pan_id(dev, filter->pan_id); in upipe_filter()
|
D | ieee802154_b91.c | 38 static int b91_set_pan_id(uint16_t pan_id) in b91_set_pan_id() argument 42 sys_put_le16(pan_id, pan_id_le); in b91_set_pan_id() 471 return b91_set_pan_id(filter->pan_id); in b91_filter()
|
D | ieee802154_mcr20a.c | 965 static int mcr20a_set_pan_id(const struct device *dev, uint16_t pan_id) in mcr20a_set_pan_id() argument 969 pan_id = sys_le16_to_cpu(pan_id); in mcr20a_set_pan_id() 972 if (!write_burst_pan_id(dev, (uint8_t *) &pan_id)) { in mcr20a_set_pan_id() 979 LOG_DBG("0x%x", pan_id); in mcr20a_set_pan_id() 1041 return mcr20a_set_pan_id(dev, filter->pan_id); in mcr20a_filter()
|
D | ieee802154_cc2520.c | 300 static int cc2520_set_pan_id(const struct device *dev, uint16_t pan_id) in cc2520_set_pan_id() argument 302 LOG_DBG("0x%x", pan_id); in cc2520_set_pan_id() 304 pan_id = sys_le16_to_cpu(pan_id); in cc2520_set_pan_id() 306 if (!write_mem_pan_id(dev, (uint8_t *) &pan_id)) { in cc2520_set_pan_id() 725 return cc2520_set_pan_id(dev, filter->pan_id); in cc2520_filter()
|
D | ieee802154_cc2520.h | 159 DEFINE_MEM_WRITE(pan_id, CC2520_MEM_PAN_ID, 2)
|
D | ieee802154_nrf5.c | 331 static int nrf5_set_pan_id(const struct device *dev, uint16_t pan_id) in nrf5_set_pan_id() argument 337 sys_put_le16(pan_id, pan_id_le); in nrf5_set_pan_id() 340 LOG_DBG("0x%x", pan_id); in nrf5_set_pan_id() 388 return nrf5_set_pan_id(dev, filter->pan_id); in nrf5_filter()
|
D | ieee802154_kw41z.c | 395 static int kw41z_set_pan_id(const struct device *dev, uint16_t pan_id) in kw41z_set_pan_id() argument 399 ZLL_MACSHORTADDRS0_MACPANID0(pan_id); in kw41z_set_pan_id() 441 return kw41z_set_pan_id(dev, filter->pan_id); in kw41z_filter()
|
D | ieee802154_mcr20a.h | 176 DEFINE_BURST_WRITE(pan_id, MCR20A_MACPANID0_LSB, 2, false)
|
D | ieee802154_rf2xx.c | 590 uint16_t pan_id) in rf2xx_set_pan_id() argument 595 sys_put_le16(pan_id, pan_id_le); in rf2xx_set_pan_id() 617 return rf2xx_set_pan_id(dev, set, filter->pan_id); in rf2xx_filter()
|
D | ieee802154_dw1000.c | 708 static int dwt_set_pan_id(const struct device *dev, uint16_t pan_id) in dwt_set_pan_id() argument 713 dwt_reg_write_u16(dev, DWT_PANADR_ID, DWT_PANADR_PAN_ID_OFFSET, pan_id); in dwt_set_pan_id() 716 LOG_INF("Set PAN ID 0x%04x %p", pan_id, ctx); in dwt_set_pan_id() 766 return dwt_set_pan_id(dev, filter->pan_id); in dwt_filter()
|
D | ieee802154_cc13xx_cc26xx.c | 264 drv_data->cmd_ieee_rx.localPanID = filter->pan_id; in ieee802154_cc13xx_cc26xx_filter()
|
/Zephyr-latest/tests/subsys/openthread/ |
D | radio_test.c | 672 custom_filter_mock_pan_id = filter->pan_id; in custom_filter_mock() 689 const uint16_t pan_id = 0xDEAD; in ZTEST() local 698 otPlatRadioSetPanId(ot, pan_id); in ZTEST() 702 zassert_equal(pan_id, custom_filter_mock_pan_id); in ZTEST()
|
/Zephyr-latest/samples/net/wpan_serial/src/ |
D | main.c | 501 filter.pan_id = CONFIG_NET_CONFIG_IEEE802154_PAN_ID; in init_ieee802154()
|