Lines Matching refs:net_idx

44 	uint16_t net_idx;  member
51 uint16_t net_idx; member
65 .net_idx = BT_MESH_KEY_UNUSED,
109 key.net_idx = app->net_idx, in store_app_key()
182 cb->evt_handler(app->app_idx, app->net_idx, evt); in app_key_evt()
214 app->net_idx = BT_MESH_KEY_UNUSED; in app_key_del()
239 uint8_t bt_mesh_app_key_add(uint16_t app_idx, uint16_t net_idx, in bt_mesh_app_key_add() argument
244 LOG_DBG("net_idx 0x%04x app_idx %04x val %s", net_idx, app_idx, bt_hex(key, 16)); in bt_mesh_app_key_add()
246 if (!bt_mesh_subnet_get(net_idx)) { in bt_mesh_app_key_add()
256 if (app->net_idx != net_idx) { in bt_mesh_app_key_add()
273 app->net_idx = net_idx; in bt_mesh_app_key_add()
291 uint8_t bt_mesh_app_key_update(uint16_t app_idx, uint16_t net_idx, in bt_mesh_app_key_update() argument
297 LOG_DBG("net_idx 0x%04x app_idx %04x val %s", net_idx, app_idx, bt_hex(key, 16)); in bt_mesh_app_key_update()
304 if (net_idx != BT_MESH_KEY_UNUSED && app->net_idx != net_idx) { in bt_mesh_app_key_update()
308 sub = bt_mesh_subnet_get(app->net_idx); in bt_mesh_app_key_update()
352 uint8_t bt_mesh_app_key_del(uint16_t app_idx, uint16_t net_idx) in bt_mesh_app_key_del() argument
358 if (net_idx != BT_MESH_KEY_UNUSED && !bt_mesh_subnet_get(net_idx)) { in bt_mesh_app_key_del()
370 if (net_idx != BT_MESH_KEY_UNUSED && net_idx != app->net_idx) { in bt_mesh_app_key_del()
399 int bt_mesh_app_key_set(uint16_t app_idx, uint16_t net_idx, in bt_mesh_app_key_set() argument
423 app->net_idx = net_idx; in bt_mesh_app_key_set()
441 ssize_t bt_mesh_app_keys_get(uint16_t net_idx, uint16_t app_idxs[], size_t max, in bt_mesh_app_keys_get() argument
453 if (net_idx != BT_MESH_KEY_ANY && app->net_idx != net_idx) { in bt_mesh_app_keys_get()
482 *sub = bt_mesh_subnet_get(ctx->net_idx); in bt_mesh_keys_resolve()
484 LOG_WRN("Unknown NetKey 0x%03x", ctx->net_idx); in bt_mesh_keys_resolve()
518 *sub = bt_mesh_subnet_get(app->net_idx); in bt_mesh_keys_resolve()
520 LOG_WRN("Unknown NetKey 0x%03x", app->net_idx); in bt_mesh_keys_resolve()
594 if (app->net_idx != rx->sub->net_idx) { in bt_mesh_app_key_find()
632 if (app->net_idx != sub->net_idx) { in subnet_evt()
690 err = bt_mesh_app_key_set(app_idx, key.net_idx, &val[0], in app_key_set()