Lines Matching refs:pdu
157 static void sol_fixed_pdu_create(struct bt_mesh_subnet *sub, struct net_buf_simple *pdu) in sol_fixed_pdu_create() argument
161 net_buf_simple_add_u8(pdu, sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.nid); in sol_fixed_pdu_create()
162 net_buf_simple_add_u8(pdu, 0x80); in sol_fixed_pdu_create()
163 net_buf_simple_add_le24(pdu, sys_cpu_to_be24(fixed_seq_n)); in sol_fixed_pdu_create()
164 net_buf_simple_add_le16(pdu, sys_cpu_to_be16(bt_mesh_primary_addr())); in sol_fixed_pdu_create()
165 net_buf_simple_add_le16(pdu, 0x0000); in sol_fixed_pdu_create()
167 ASSERT_OK(bt_mesh_net_encrypt(&sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.enc, pdu, 0, in sol_fixed_pdu_create()
170 ASSERT_OK(bt_mesh_net_obfuscate(pdu->data, 0, in sol_fixed_pdu_create()
173 net_buf_simple_push_u8(pdu, 0); in sol_fixed_pdu_create()
174 net_buf_simple_push_le16(pdu, BT_UUID_MESH_PROXY_SOLICITATION_VAL); in sol_fixed_pdu_create()
179 NET_BUF_SIMPLE_DEFINE(pdu, 20); in sol_fixed_pdu_send()
180 net_buf_simple_init(&pdu, 3); in sol_fixed_pdu_send()
186 sol_fixed_pdu_create(sub, &pdu); in sol_fixed_pdu_send()
192 BT_DATA(BT_DATA_SVC_DATA16, pdu.data, pdu.size), in sol_fixed_pdu_send()