@@ -123,9 +123,9 @@ static void timeout_handler(struct k_work *work)
123
123
return ;
124
124
}
125
125
126
- static void cfg_client_cancel (struct bt_mesh_model * model ,
127
- struct bt_mesh_msg_ctx * ctx ,
128
- void * status , size_t len )
126
+ static void cfg_client_recv_status (struct bt_mesh_model * model ,
127
+ struct bt_mesh_msg_ctx * ctx ,
128
+ void * status , size_t len )
129
129
{
130
130
bt_mesh_client_node_t * node = NULL ;
131
131
struct net_buf_simple buf = {0 };
@@ -265,7 +265,7 @@ static void comp_data_status(struct bt_mesh_model *model,
265
265
266
266
net_buf_simple_add_mem (status .comp_data , buf -> data , buf -> len );
267
267
268
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_comp_data_status ));
268
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_comp_data_status ));
269
269
}
270
270
271
271
static void state_status_u8 (struct bt_mesh_model * model ,
@@ -280,7 +280,7 @@ static void state_status_u8(struct bt_mesh_model *model,
280
280
281
281
status = net_buf_simple_pull_u8 (buf );
282
282
283
- cfg_client_cancel (model , ctx , & status , sizeof (u8_t ));
283
+ cfg_client_recv_status (model , ctx , & status , sizeof (u8_t ));
284
284
}
285
285
286
286
static void beacon_status (struct bt_mesh_model * model ,
@@ -324,7 +324,7 @@ static void relay_status(struct bt_mesh_model *model,
324
324
status .relay = net_buf_simple_pull_u8 (buf );
325
325
status .retransmit = net_buf_simple_pull_u8 (buf );
326
326
327
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_relay_status ));
327
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_relay_status ));
328
328
}
329
329
330
330
static void net_key_status (struct bt_mesh_model * model ,
@@ -340,7 +340,7 @@ static void net_key_status(struct bt_mesh_model *model,
340
340
status .status = net_buf_simple_pull_u8 (buf );
341
341
status .net_idx = net_buf_simple_pull_le16 (buf ) & 0xfff ;
342
342
343
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_netkey_status ));
343
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_netkey_status ));
344
344
}
345
345
346
346
static void app_key_status (struct bt_mesh_model * model ,
@@ -356,7 +356,7 @@ static void app_key_status(struct bt_mesh_model *model,
356
356
status .status = net_buf_simple_pull_u8 (buf );
357
357
key_idx_unpack (buf , & status .net_idx , & status .app_idx );
358
358
359
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_appkey_status ));
359
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_appkey_status ));
360
360
}
361
361
362
362
static void mod_app_status (struct bt_mesh_model * model ,
@@ -379,7 +379,7 @@ static void mod_app_status(struct bt_mesh_model *model,
379
379
}
380
380
status .mod_id = net_buf_simple_pull_le16 (buf );
381
381
382
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_app_status ));
382
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_app_status ));
383
383
}
384
384
385
385
static void mod_pub_status (struct bt_mesh_model * model ,
@@ -408,7 +408,7 @@ static void mod_pub_status(struct bt_mesh_model *model,
408
408
}
409
409
status .mod_id = net_buf_simple_pull_le16 (buf );
410
410
411
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_pub_status ));
411
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_pub_status ));
412
412
}
413
413
414
414
static void mod_sub_status (struct bt_mesh_model * model ,
@@ -431,7 +431,7 @@ static void mod_sub_status(struct bt_mesh_model *model,
431
431
}
432
432
status .mod_id = net_buf_simple_pull_le16 (buf );
433
433
434
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_sub_status ));
434
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_mod_sub_status ));
435
435
}
436
436
437
437
static void hb_sub_status (struct bt_mesh_model * model ,
@@ -452,7 +452,7 @@ static void hb_sub_status(struct bt_mesh_model *model,
452
452
status .min = net_buf_simple_pull_u8 (buf );
453
453
status .max = net_buf_simple_pull_u8 (buf );
454
454
455
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_hb_sub_status ));
455
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_hb_sub_status ));
456
456
}
457
457
458
458
static void hb_pub_status (struct bt_mesh_model * model ,
@@ -473,7 +473,7 @@ static void hb_pub_status(struct bt_mesh_model *model,
473
473
status .feat = net_buf_simple_pull_u8 (buf );
474
474
status .net_idx = net_buf_simple_pull_u8 (buf );
475
475
476
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_hb_sub_status ));
476
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_hb_sub_status ));
477
477
}
478
478
479
479
static void node_reset_status (struct bt_mesh_model * model ,
@@ -484,7 +484,7 @@ static void node_reset_status(struct bt_mesh_model *model,
484
484
ctx -> net_idx , ctx -> app_idx , ctx -> addr , buf -> len ,
485
485
bt_hex (buf -> data , buf -> len ));
486
486
487
- cfg_client_cancel (model , ctx , NULL , 0 );
487
+ cfg_client_recv_status (model , ctx , NULL , 0 );
488
488
}
489
489
490
490
static void mod_sub_list (struct bt_mesh_model * model ,
@@ -513,7 +513,7 @@ static void mod_sub_list(struct bt_mesh_model *model,
513
513
}
514
514
net_buf_simple_add_mem (list .addr , buf -> data , buf -> len );
515
515
516
- cfg_client_cancel (model , ctx , & list , sizeof (struct bt_mesh_cfg_mod_sub_list ));
516
+ cfg_client_recv_status (model , ctx , & list , sizeof (struct bt_mesh_cfg_mod_sub_list ));
517
517
}
518
518
519
519
static void net_key_list (struct bt_mesh_model * model ,
@@ -533,7 +533,7 @@ static void net_key_list(struct bt_mesh_model *model,
533
533
}
534
534
net_buf_simple_add_mem (list .net_idx , buf -> data , buf -> len );
535
535
536
- cfg_client_cancel (model , ctx , & list , sizeof (struct bt_mesh_cfg_net_key_list ));
536
+ cfg_client_recv_status (model , ctx , & list , sizeof (struct bt_mesh_cfg_net_key_list ));
537
537
}
538
538
539
539
static void app_key_list (struct bt_mesh_model * model ,
@@ -555,7 +555,7 @@ static void app_key_list(struct bt_mesh_model *model,
555
555
}
556
556
net_buf_simple_add_mem (list .app_idx , buf -> data , buf -> len );
557
557
558
- cfg_client_cancel (model , ctx , & list , sizeof (struct bt_mesh_cfg_app_key_list ));
558
+ cfg_client_recv_status (model , ctx , & list , sizeof (struct bt_mesh_cfg_app_key_list ));
559
559
}
560
560
561
561
static void node_id_status (struct bt_mesh_model * model ,
@@ -572,7 +572,7 @@ static void node_id_status(struct bt_mesh_model *model,
572
572
status .net_idx = net_buf_simple_pull_le16 (buf );
573
573
status .identity = net_buf_simple_pull_u8 (buf );
574
574
575
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_node_id_status ));
575
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_node_id_status ));
576
576
}
577
577
578
578
static void mod_app_list (struct bt_mesh_model * model ,
@@ -601,7 +601,7 @@ static void mod_app_list(struct bt_mesh_model *model,
601
601
}
602
602
net_buf_simple_add_mem (list .app_idx , buf -> data , buf -> len );
603
603
604
- cfg_client_cancel (model , ctx , & list , sizeof (struct bt_mesh_cfg_mod_app_list ));
604
+ cfg_client_recv_status (model , ctx , & list , sizeof (struct bt_mesh_cfg_mod_app_list ));
605
605
}
606
606
607
607
static void kr_phase_status (struct bt_mesh_model * model ,
@@ -618,7 +618,7 @@ static void kr_phase_status(struct bt_mesh_model *model,
618
618
status .net_idx = net_buf_simple_pull_le16 (buf );
619
619
status .phase = net_buf_simple_pull_u8 (buf );
620
620
621
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_key_refresh_status ));
621
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_key_refresh_status ));
622
622
}
623
623
624
624
static void lpn_pollto_status (struct bt_mesh_model * model ,
@@ -636,7 +636,7 @@ static void lpn_pollto_status(struct bt_mesh_model *model,
636
636
status .timeout |= net_buf_simple_pull_u8 (buf ) << 8 ;
637
637
status .timeout |= net_buf_simple_pull_u8 (buf ) << 16 ;
638
638
639
- cfg_client_cancel (model , ctx , & status , sizeof (struct bt_mesh_cfg_lpn_pollto_status ));
639
+ cfg_client_recv_status (model , ctx , & status , sizeof (struct bt_mesh_cfg_lpn_pollto_status ));
640
640
}
641
641
642
642
static void net_trans_status (struct bt_mesh_model * model ,
0 commit comments