-
Notifications
You must be signed in to change notification settings - Fork 1
/
latency
2345 lines (2345 loc) · 188 KB
/
latency
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
./subsys/bluetooth/shell/bt.c: if (!strcmp(argv[1], "conn-scan")) {
./subsys/bluetooth/shell/bt.c: } else if (!strcmp(argv[1], "conn-nscan")) {
./subsys/bluetooth/shell/bt.c: } else if (!strcmp(argv[1], "nconn-scan")) {
./subsys/bluetooth/shell/bt.c: } else if (!strcmp(argv[1], "nconn-nscan")) {
./subsys/bluetooth/shell/bt.c:#define EXT_ADV_PARAM "<type: conn-scan conn-nscan, nconn-scan nconn-nscan> " \
./subsys/bluetooth/shell/bt.c: SHELL_CMD_ARG(conn-update, NULL, "<min> <max> <latency> <timeout>",
./subsys/bluetooth/host/smp.c: if (atomic_test_bit(conn->flags, BT_CONN_FORCE_PAIR)) {
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_LTK_P256,
./subsys/bluetooth/host/smp.c: conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_LTK,
./subsys/bluetooth/host/smp.c: conn->id,
./subsys/bluetooth/host/smp.c: &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys ||
./subsys/bluetooth/host/smp.c: !(conn->le.keys->keys & (BT_KEYS_LTK | BT_KEYS_LTK_P256))) {
./subsys/bluetooth/host/smp.c: if (conn->required_sec_level > BT_SECURITY_L2 &&
./subsys/bluetooth/host/smp.c: !(conn->le.keys->flags & BT_KEYS_AUTHENTICATED)) {
./subsys/bluetooth/host/smp.c: if (conn->required_sec_level > BT_SECURITY_L3 &&
./subsys/bluetooth/host/smp.c: !(conn->le.keys->flags & BT_KEYS_AUTHENTICATED) &&
./subsys/bluetooth/host/smp.c: !(conn->le.keys->keys & BT_KEYS_LTK_P256) &&
./subsys/bluetooth/host/smp.c: !(conn->le.keys->enc_size == BT_SMP_MAX_ENC_KEY_SIZE)) {
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys ||
./subsys/bluetooth/host/smp.c: !(conn->le.keys->keys & (BT_KEYS_LTK_P256 | BT_KEYS_LTK))) {
./subsys/bluetooth/host/smp.c: if (conn->le.keys->enc_size > get_encryption_key_size(smp)) {
./subsys/bluetooth/host/smp.c: if ((conn->le.keys->keys & BT_KEYS_LTK_P256) &&
./subsys/bluetooth/host/smp.c: if ((conn->le.keys->flags & BT_KEYS_AUTHENTICATED) &&
./subsys/bluetooth/host/smp.c: (!(conn->le.keys->flags & BT_KEYS_AUTHENTICATED)
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys ||
./subsys/bluetooth/host/smp.c: !(conn->le.keys->keys & (BT_KEYS_LTK_P256 | BT_KEYS_LTK))) {
./subsys/bluetooth/host/smp.c: if (conn->le.keys->flags & BT_KEYS_DEBUG) {
./subsys/bluetooth/host/smp.c: if (conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/smp.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/smp.c: link_key = bt_keys_get_link_key(&conn->le.dst.a);
./subsys/bluetooth/host/smp.c: if (smp_h7(salt, conn->le.keys->ltk.val, ilk)) {
./subsys/bluetooth/host/smp.c: if (smp_h6(conn->le.keys->ltk.val, tmp1, ilk)) {
./subsys/bluetooth/host/smp.c: if (conn->le.keys->flags & BT_KEYS_AUTHENTICATED) {
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: keys = bt_keys_find_addr(conn->id, &addr);
./subsys/bluetooth/host/smp.c: struct bt_keys_link_key *link_key = conn->br.link_key;
./subsys/bluetooth/host/smp.c: if (IS_ENABLED(CONFIG_BT_SMP_FORCE_BREDR) && conn->encrypt != 0x02) {
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_LTK_P256, conn->id, &addr);
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_addr(conn->id, &addr);
./subsys/bluetooth/host/smp.c: memcpy(id_info->irk, bt_dev.irk[conn->id], 16);
./subsys/bluetooth/host/smp.c: bt_addr_le_copy(&id_addr_info->addr, &bt_dev.id_addr[conn->id]);
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->encrypt == 0x02) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->encrypt == 0x01) {
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_IRK, conn->id, &addr);
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: if (conn->role == BT_CONN_ROLE_MASTER && !smp->remote_dist) {
./subsys/bluetooth/host/smp.c: bt_addr_copy(&addr.a, &conn->br.dst);
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_REMOTE_CSRK, conn->id, &addr);
./subsys/bluetooth/host/smp.c: if (conn->role == BT_CONN_ROLE_MASTER && !smp->remote_dist) {
./subsys/bluetooth/host/smp.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/smp.c: if (conn->required_sec_level != conn->sec_level) {
./subsys/bluetooth/host/smp.c: conn->required_sec_level = conn->sec_level;
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: bt_keys_store(smp->chan.chan.conn->le.keys);
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->le.keys &&
./subsys/bluetooth/host/smp.c: (!smp->chan.chan.conn->le.keys->enc_size ||
./subsys/bluetooth/host/smp.c: bt_keys_clear(smp->chan.chan.conn->le.keys);
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->le.keys = NULL;
./subsys/bluetooth/host/smp.c: struct bt_keys *keys = conn->le.keys;
./subsys/bluetooth/host/smp.c: struct bt_keys *keys = conn->le.keys;
./subsys/bluetooth/host/smp.c: BT_ERR("No keys space for %s", bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: memcpy(id_info->irk, bt_dev.irk[conn->id], 16);
./subsys/bluetooth/host/smp.c: bt_addr_le_copy(&id_addr_info->addr, &bt_dev.id_addr[conn->id]);
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: keys = bt_keys_find_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: &conn->le.init_addr, &conn->le.resp_addr, req->val)) {
./subsys/bluetooth/host/smp.c: &conn->le.init_addr, &conn->le.resp_addr, tmp);
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_LTK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_LTK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER && !smp->remote_dist) {
./subsys/bluetooth/host/smp.c: (conn->required_sec_level < BT_SECURITY_L3))) {
./subsys/bluetooth/host/smp.c: switch (conn->required_sec_level) {
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_LTK_P256, conn->id,
./subsys/bluetooth/host/smp.c: &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_SLAVE_LTK,
./subsys/bluetooth/host/smp.c: conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: conn->le.keys && (conn->le.keys->keys & BT_KEYS_LTK_P256)) {
./subsys/bluetooth/host/smp.c: enc_size = conn->le.keys->enc_size;
./subsys/bluetooth/host/smp.c: memcpy(ltk, conn->le.keys->ltk.val, enc_size);
./subsys/bluetooth/host/smp.c: if (conn->le.keys && (conn->le.keys->keys & BT_KEYS_SLAVE_LTK) &&
./subsys/bluetooth/host/smp.c: !memcmp(conn->le.keys->slave_ltk.rand, &rand, 8) &&
./subsys/bluetooth/host/smp.c: !memcmp(conn->le.keys->slave_ltk.ediv, &ediv, 2)) {
./subsys/bluetooth/host/smp.c: enc_size = conn->le.keys->enc_size;
./subsys/bluetooth/host/smp.c: memcpy(ltk, conn->le.keys->slave_ltk.val, enc_size);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->required_sec_level == BT_SECURITY_L4) &&
./subsys/bluetooth/host/smp.c: conn->required_sec_level == BT_SECURITY_L4) &&
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->required_sec_level == BT_SECURITY_L4) &&
./subsys/bluetooth/host/smp.c: conn->required_sec_level == BT_SECURITY_L4) &&
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr, smp->mackey,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr, e)) {
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr, smp->mackey,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr, e)) {
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr, re)) {
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_IRK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: BT_ERR(" for %s", bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_IRK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: * We can't use conn->dst here as this might already contain
./subsys/bluetooth/host/smp.c: if (conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: dst = &conn->le.resp_addr;
./subsys/bluetooth/host/smp.c: dst = &conn->le.init_addr;
./subsys/bluetooth/host/smp.c: if (!bt_addr_le_is_identity(&conn->le.dst)) {
./subsys/bluetooth/host/smp.c: bt_addr_le_copy(&conn->le.dst, &req->addr);
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER && !smp->remote_dist) {
./subsys/bluetooth/host/smp.c: keys = bt_keys_get_type(BT_KEYS_REMOTE_CSRK, conn->id,
./subsys/bluetooth/host/smp.c: &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER && !smp->remote_dist) {
./subsys/bluetooth/host/smp.c: if (conn->le.keys) {
./subsys/bluetooth/host/smp.c: if (!(conn->le.keys->keys & (BT_KEYS_LTK_P256 | BT_KEYS_LTK))) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_LTK_P256, conn->id,
./subsys/bluetooth/host/smp.c: &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_find(BT_KEYS_LTK, conn->id,
./subsys/bluetooth/host/smp.c: &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: !(conn->le.keys->flags & BT_KEYS_AUTHENTICATED)) {
./subsys/bluetooth/host/smp.c: !(conn->le.keys->keys & BT_KEYS_LTK_P256)) {
./subsys/bluetooth/host/smp.c: if (bt_conn_le_start_encryption(conn, conn->le.keys->ltk.rand,
./subsys/bluetooth/host/smp.c: conn->le.keys->ltk.ediv,
./subsys/bluetooth/host/smp.c: conn->le.keys->ltk.val,
./subsys/bluetooth/host/smp.c: conn->le.keys->enc_size) < 0) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.resp_addr,
./subsys/bluetooth/host/smp.c: &smp->chan.chan.conn->le.init_addr, e)) {
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->role == BT_HCI_ROLE_SLAVE) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: struct bt_keys *keys = chan->conn->le.keys;
./subsys/bluetooth/host/smp.c: chan, conn, conn->handle, conn->encrypt, hci_status);
./subsys/bluetooth/host/smp.c: if (!conn->encrypt) {
./subsys/bluetooth/host/smp.c: bt_id_add(conn->le.keys);
./subsys/bluetooth/host/smp.c: conn->role == BT_HCI_ROLE_MASTER && smp->remote_dist) {
./subsys/bluetooth/host/smp.c: keys = bt_keys_find(BT_KEYS_REMOTE_CSRK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: keys = bt_keys_find(BT_KEYS_LOCAL_CSRK, conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: if (smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: smp->chan.chan.conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: conn->role == BT_CONN_ROLE_MASTER) {
./subsys/bluetooth/host/smp.c: switch (conn->role) {
./subsys/bluetooth/host/smp.c: conn->le.keys->ltk.rand,
./subsys/bluetooth/host/smp.c: conn->le.keys->ltk.ediv,
./subsys/bluetooth/host/smp.c: conn->le.keys->ltk.val,
./subsys/bluetooth/host/smp.c: conn->le.keys->enc_size);
./subsys/bluetooth/host/smp.c: if (conn->le.keys) {
./subsys/bluetooth/host/smp.c: bt_keys_clear(conn->le.keys);
./subsys/bluetooth/host/smp.c: conn->le.keys = bt_keys_get_addr(conn->id, &conn->le.dst);
./subsys/bluetooth/host/smp.c: if (!conn->le.keys) {
./subsys/bluetooth/host/smp.c: bt_addr_le_str(&conn->le.dst));
./subsys/bluetooth/host/smp.c: conn->le.keys->flags |= BT_KEYS_DEBUG;
./subsys/bluetooth/host/smp.c: conn->le.keys->flags |= BT_KEYS_AUTHENTICATED;
./subsys/bluetooth/host/smp.c: conn->le.keys->flags &= ~BT_KEYS_AUTHENTICATED;
./subsys/bluetooth/host/smp.c: conn->le.keys->enc_size = get_encryption_key_size(smp);
./subsys/bluetooth/host/smp.c: conn->le.keys->flags |= BT_KEYS_SC;
./subsys/bluetooth/host/smp.c: bt_keys_add_type(conn->le.keys, BT_KEYS_LTK_P256);
./subsys/bluetooth/host/smp.c: memcpy(conn->le.keys->ltk.val, smp->tk,
./subsys/bluetooth/host/smp.c: sizeof(conn->le.keys->ltk.val));
./subsys/bluetooth/host/smp.c: (void)memset(conn->le.keys->ltk.rand, 0,
./subsys/bluetooth/host/smp.c: sizeof(conn->le.keys->ltk.rand));
./subsys/bluetooth/host/smp.c: (void)memset(conn->le.keys->ltk.ediv, 0,
./subsys/bluetooth/host/smp.c: sizeof(conn->le.keys->ltk.ediv));
./subsys/bluetooth/host/smp.c: conn->le.keys->flags &= ~BT_KEYS_SC;
./subsys/bluetooth/host/smp.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/smp_null.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/a2dp.c: *session = &(a2dp_conn->session);
./subsys/bluetooth/host/a2dp.c: BT_DBG("session: %p", &(a2dp_conn->session));
./subsys/bluetooth/host/a2dp.c: err = bt_avdtp_connect(conn, &(a2dp_conn->session));
./subsys/bluetooth/host/l2cap_br.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap_br.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap_br.c: !BT_FEAT_HOST_SSP(chan->conn->br.features)) {
./subsys/bluetooth/host/l2cap_br.c: if (BT_FEAT_HOST_SSP(chan->conn->br.features)) {
./subsys/bluetooth/host/l2cap_br.c: chan->conn->sec_level >= chan->required_sec_level) {
./subsys/bluetooth/host/l2cap_br.c: BT_FEAT_HOST_SSP(conn->br.features) && !conn->encrypt) {
./subsys/bluetooth/host/l2cap_br.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap_br.c: sys_slist_remove(&conn->channels, prev, &chan->node);
./subsys/bluetooth/host/l2cap_br.c: chan->conn->encrypt);
./subsys/bluetooth/host/l2cap_br.c: if (!chan->conn->encrypt) {
./subsys/bluetooth/host/l2cap_br.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap_br.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/rfcomm.c: if (conn->sec_level >= dlc->required_sec_level) {
./subsys/bluetooth/host/rfcomm.c: conn->encrypt);
./subsys/bluetooth/host/rfcomm.c: if (hci_status || !conn->encrypt ||
./subsys/bluetooth/host/rfcomm.c: conn->sec_level < dlc->required_sec_level) {
./subsys/bluetooth/host/rfcomm.c: if (!conn || conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/hci_core.c: if (conn->state != BT_CONN_CONNECTED &&
./subsys/bluetooth/host/hci_core.c: conn->state != BT_CONN_DISCONNECT) {
./subsys/bluetooth/host/hci_core.c: if (conn->pending_no_cb) {
./subsys/bluetooth/host/hci_core.c: conn->pending_no_cb--;
./subsys/bluetooth/host/hci_core.c: node = sys_slist_get(&conn->tx_pending);
./subsys/bluetooth/host/hci_core.c: conn->pending_no_cb = tx->pending_no_cb;
./subsys/bluetooth/host/hci_core.c: sys_slist_append(&conn->tx_complete, &tx->node);
./subsys/bluetooth/host/hci_core.c: k_work_submit(&conn->tx_complete_work);
./subsys/bluetooth/host/hci_core.c: phy->conn_interval_min = sys_cpu_to_le16(conn->le.interval_min);
./subsys/bluetooth/host/hci_core.c: phy->conn_interval_max = sys_cpu_to_le16(conn->le.interval_max);
./subsys/bluetooth/host/hci_core.c: phy->conn_latency = sys_cpu_to_le16(conn->le.latency);
./subsys/bluetooth/host/hci_core.c: phy->supervision_timeout = sys_cpu_to_le16(conn->le.timeout);
./subsys/bluetooth/host/hci_core.c: use_filter = atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT);
./subsys/bluetooth/host/hci_core.c: const bt_addr_le_t *peer_addr = &conn->le.dst;
./subsys/bluetooth/host/hci_core.c: peer_addr = &conn->le.resp_addr;
./subsys/bluetooth/host/hci_core.c: use_filter = atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT);
./subsys/bluetooth/host/hci_core.c: const bt_addr_le_t *peer_addr = &conn->le.dst;
./subsys/bluetooth/host/hci_core.c: peer_addr = &conn->le.resp_addr;
./subsys/bluetooth/host/hci_core.c: cp->conn_interval_min = sys_cpu_to_le16(conn->le.interval_min);
./subsys/bluetooth/host/hci_core.c: cp->conn_interval_max = sys_cpu_to_le16(conn->le.interval_max);
./subsys/bluetooth/host/hci_core.c: cp->conn_latency = sys_cpu_to_le16(conn->le.latency);
./subsys/bluetooth/host/hci_core.c: cp->supervision_timeout = sys_cpu_to_le16(conn->le.timeout);
./subsys/bluetooth/host/hci_core.c: disconn->handle = sys_cpu_to_le16(handle);
./subsys/bluetooth/host/hci_core.c: disconn->reason = reason;
./subsys/bluetooth/host/hci_core.c: conn->err = evt->reason;
./subsys/bluetooth/host/hci_core.c: conn->handle = 0U;
./subsys/bluetooth/host/hci_core.c: if (conn->type != BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_SCO) {
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_BR &&
./subsys/bluetooth/host/hci_core.c: atomic_test_and_clear_bit(conn->flags, BT_CONN_BR_NOBOND)) {
./subsys/bluetooth/host/hci_core.c: bt_keys_link_key_clear(conn->br.link_key);
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT)) {
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_AUTO_VERSION_INFO)) {
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: conn->le.phy.tx_phy = get_phy(rp->tx_phy);
./subsys/bluetooth/host/hci_core.c: conn->le.phy.rx_phy = get_phy(rp->rx_phy);
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_SLAVE_PARAM_UPDATE)) {
./subsys/bluetooth/host/hci_core.c: k_delayed_work_submit(&conn->update_work, CONN_UPDATE_TIMEOUT);
./subsys/bluetooth/host/hci_core.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/hci_core.c: if (!atomic_test_bit(conn->flags, BT_CONN_AUTO_FEATURE_EXCH) &&
./subsys/bluetooth/host/hci_core.c: ((conn->role == BT_HCI_ROLE_MASTER) ||
./subsys/bluetooth/host/hci_core.c: !atomic_test_bit(conn->flags, BT_CONN_AUTO_VERSION_INFO)) {
./subsys/bluetooth/host/hci_core.c: !atomic_test_bit(conn->flags, BT_CONN_AUTO_PHY_COMPLETE) &&
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_PHY_UPDATE);
./subsys/bluetooth/host/hci_core.c: conn->role == BT_CONN_ROLE_SLAVE) {
./subsys/bluetooth/host/hci_core.c: conn->err = BT_HCI_ERR_UNKNOWN_CONN_ID;
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT)) {
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_AUTO_CONNECT)) {
./subsys/bluetooth/host/hci_core.c: conn->err = BT_HCI_ERR_ADV_TIMEOUT;
./subsys/bluetooth/host/hci_core.c: conn->handle = handle;
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.dst, &id_addr);
./subsys/bluetooth/host/hci_core.c: conn->le.interval = sys_le16_to_cpu(evt->interval);
./subsys/bluetooth/host/hci_core.c: conn->le.latency = sys_le16_to_cpu(evt->latency);
./subsys/bluetooth/host/hci_core.c: conn->le.timeout = sys_le16_to_cpu(evt->supv_timeout);
./subsys/bluetooth/host/hci_core.c: conn->role = evt->role;
./subsys/bluetooth/host/hci_core.c: conn->err = 0U;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.tx_max_len = BT_GAP_DATA_LEN_DEFAULT;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.tx_max_time = BT_GAP_DATA_TIME_DEFAULT;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.rx_max_len = BT_GAP_DATA_LEN_DEFAULT;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.rx_max_time = BT_GAP_DATA_TIME_DEFAULT;
./subsys/bluetooth/host/hci_core.c: conn->le.phy.tx_phy = BT_GAP_LE_PHY_1M;
./subsys/bluetooth/host/hci_core.c: conn->le.phy.rx_phy = BT_GAP_LE_PHY_1M;
./subsys/bluetooth/host/hci_core.c: conn->role == BT_HCI_ROLE_SLAVE) {
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.init_addr, &peer_addr);
./subsys/bluetooth/host/hci_core.c: conn->le.resp_addr.type = BT_ADDR_LE_RANDOM;
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.resp_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.resp_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.resp_addr,
./subsys/bluetooth/host/hci_core.c: &bt_dev.id_addr[conn->id]);
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.resp_addr.a, &evt->local_rpa);
./subsys/bluetooth/host/hci_core.c: conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.resp_addr, &peer_addr);
./subsys/bluetooth/host/hci_core.c: conn->le.init_addr.type = BT_ADDR_LE_RANDOM;
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.init_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.init_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.init_addr,
./subsys/bluetooth/host/hci_core.c: &bt_dev.id_addr[conn->id]);
./subsys/bluetooth/host/hci_core.c: conn->le.phy.tx_phy == BT_HCI_LE_PHY_PREFER_2M &&
./subsys/bluetooth/host/hci_core.c: conn->le.phy.rx_phy == BT_HCI_LE_PHY_PREFER_2M) {
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags,
./subsys/bluetooth/host/hci_core.c: conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/hci_core.c: memcpy(conn->le.features, evt->features,
./subsys/bluetooth/host/hci_core.c: sizeof(conn->le.features));
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_FEATURE_EXCH);
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_DATA_LEN_COMPLETE);
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.tx_max_len = max_tx_octets;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.tx_max_time = max_tx_time;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.rx_max_len = max_rx_octets;
./subsys/bluetooth/host/hci_core.c: conn->le.data_len.rx_max_time = max_rx_time;
./subsys/bluetooth/host/hci_core.c: atomic_test_and_clear_bit(conn->flags, BT_CONN_AUTO_PHY_UPDATE)) {
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_PHY_COMPLETE);
./subsys/bluetooth/host/hci_core.c: conn->le.phy.tx_phy = get_phy(evt->tx_phy);
./subsys/bluetooth/host/hci_core.c: conn->le.phy.rx_phy = get_phy(evt->rx_phy);
./subsys/bluetooth/host/hci_core.c: conn->le.interval = sys_le16_to_cpu(evt->interval);
./subsys/bluetooth/host/hci_core.c: conn->le.latency = sys_le16_to_cpu(evt->latency);
./subsys/bluetooth/host/hci_core.c: conn->le.timeout = sys_le16_to_cpu(evt->supv_timeout);
./subsys/bluetooth/host/hci_core.c: conn->role == BT_HCI_ROLE_SLAVE &&
./subsys/bluetooth/host/hci_core.c: !atomic_test_and_set_bit(conn->flags,
./subsys/bluetooth/host/hci_core.c: param.interval_min = conn->le.interval_min;
./subsys/bluetooth/host/hci_core.c: param.interval_max = conn->le.interval_max;
./subsys/bluetooth/host/hci_core.c: param.latency = conn->le.pending_latency;
./subsys/bluetooth/host/hci_core.c: param.timeout = conn->le.pending_timeout;
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.resp_addr, addr);
./subsys/bluetooth/host/hci_core.c: conn->err = BT_HCI_ERR_UNSPECIFIED;
./subsys/bluetooth/host/hci_core.c: /* Clear the conn->le.keys pointer since we'll invalidate it,
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/hci_core.c: keys = conn->le.keys;
./subsys/bluetooth/host/hci_core.c: conn->le.keys = NULL;
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/hci_core.c: atomic_clear_bit(conn->flags, BT_CONN_BR_PAIRING);
./subsys/bluetooth/host/hci_core.c: atomic_clear_bit(conn->flags, BT_CONN_BR_PAIRING_INITIATOR);
./subsys/bluetooth/host/hci_core.c: atomic_clear_bit(conn->flags, BT_CONN_BR_LEGACY_SECURE);
./subsys/bluetooth/host/hci_core.c: conn->required_sec_level = conn->sec_level;
./subsys/bluetooth/host/hci_core.c: cp->pkt_type = sco_conn->sco.pkt_type;
./subsys/bluetooth/host/hci_core.c: sco_conn->role = BT_HCI_ROLE_SLAVE;
./subsys/bluetooth/host/hci_core.c: conn->role = BT_HCI_ROLE_SLAVE;
./subsys/bluetooth/host/hci_core.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/hci_core.c: if (conn->sec_level == BT_SECURITY_L4) {
./subsys/bluetooth/host/hci_core.c: if (!conn->encrypt) {
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L1;
./subsys/bluetooth/host/hci_core.c: if (conn->br.link_key) {
./subsys/bluetooth/host/hci_core.c: if (conn->br.link_key->flags & BT_LINK_KEY_AUTHENTICATED) {
./subsys/bluetooth/host/hci_core.c: if (conn->encrypt == 0x02) {
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L4;
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L3;
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L2;
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L2;
./subsys/bluetooth/host/hci_core.c: if (conn->required_sec_level > conn->sec_level) {
./subsys/bluetooth/host/hci_core.c: sco_conn->err = evt->status;
./subsys/bluetooth/host/hci_core.c: sco_conn->handle = handle;
./subsys/bluetooth/host/hci_core.c: conn->err = evt->status;
./subsys/bluetooth/host/hci_core.c: conn->handle = handle;
./subsys/bluetooth/host/hci_core.c: conn->err = 0U;
./subsys/bluetooth/host/hci_core.c: conn->encrypt = evt->encr_enabled;
./subsys/bluetooth/host/hci_core.c: if (!conn->br.link_key) {
./subsys/bluetooth/host/hci_core.c: conn->br.link_key = bt_keys_get_link_key(&evt->bdaddr);
./subsys/bluetooth/host/hci_core.c: if (!conn->br.link_key) {
./subsys/bluetooth/host/hci_core.c: conn->br.link_key->flags = 0U;
./subsys/bluetooth/host/hci_core.c: if (atomic_test_and_clear_bit(conn->flags,
./subsys/bluetooth/host/hci_core.c: conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED;
./subsys/bluetooth/host/hci_core.c: memcpy(conn->br.link_key->val, evt->link_key, 16);
./subsys/bluetooth/host/hci_core.c: conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED;
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_BR_NOBOND);
./subsys/bluetooth/host/hci_core.c: memcpy(conn->br.link_key->val, evt->link_key, 16);
./subsys/bluetooth/host/hci_core.c: conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED;
./subsys/bluetooth/host/hci_core.c: conn->br.link_key->flags |= BT_LINK_KEY_SC;
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_BR_NOBOND);
./subsys/bluetooth/host/hci_core.c: memcpy(conn->br.link_key->val, evt->link_key, 16);
./subsys/bluetooth/host/hci_core.c: (void)memset(conn->br.link_key->val, 0,
./subsys/bluetooth/host/hci_core.c: sizeof(conn->br.link_key->val));
./subsys/bluetooth/host/hci_core.c: if (!conn->br.link_key) {
./subsys/bluetooth/host/hci_core.c: conn->br.link_key = bt_keys_find_link_key(&evt->bdaddr);
./subsys/bluetooth/host/hci_core.c: if (!conn->br.link_key) {
./subsys/bluetooth/host/hci_core.c: if (!(conn->br.link_key->flags & BT_LINK_KEY_AUTHENTICATED) &&
./subsys/bluetooth/host/hci_core.c: conn->required_sec_level > BT_SECURITY_L2) {
./subsys/bluetooth/host/hci_core.c: link_key_reply(&evt->bdaddr, conn->br.link_key->val);
./subsys/bluetooth/host/hci_core.c: conn->br.remote_io_capa = evt->capability;
./subsys/bluetooth/host/hci_core.c: conn->br.remote_auth = evt->authentication;
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_BR_PAIRING);
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING_INITIATOR)) {
./subsys/bluetooth/host/hci_core.c: if (conn->state == BT_CONN_CONNECTED) {
./subsys/bluetooth/host/hci_core.c: memcpy(conn->br.features[0], evt->features, sizeof(evt->features));
./subsys/bluetooth/host/hci_core.c: if (!BT_FEAT_EXT_FEATURES(conn->br.features)) {
./subsys/bluetooth/host/hci_core.c: memcpy(conn->br.features[1], evt->features,
./subsys/bluetooth/host/hci_core.c: sizeof(conn->br.features[1]));
./subsys/bluetooth/host/hci_core.c: conn->role = BT_CONN_ROLE_SLAVE;
./subsys/bluetooth/host/hci_core.c: conn->role = BT_CONN_ROLE_MASTER;
./subsys/bluetooth/host/hci_core.c: if (!conn->encrypt) {
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L1;
./subsys/bluetooth/host/hci_core.c: if (conn->le.keys && (conn->le.keys->flags & BT_KEYS_AUTHENTICATED)) {
./subsys/bluetooth/host/hci_core.c: if (conn->le.keys->flags & BT_KEYS_SC &&
./subsys/bluetooth/host/hci_core.c: conn->le.keys->enc_size == BT_SMP_MAX_ENC_KEY_SIZE) {
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L4;
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L3;
./subsys/bluetooth/host/hci_core.c: conn->sec_level = BT_SECURITY_L2;
./subsys/bluetooth/host/hci_core.c: if (conn->required_sec_level > conn->sec_level) {
./subsys/bluetooth/host/hci_core.c: conn->encrypt = evt->encrypt;
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/hci_core.c: if (conn->encrypt) {
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/hci_core.c: if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING) &&
./subsys/bluetooth/host/hci_core.c: conn->role == BT_CONN_ROLE_MASTER) {
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/hci_core.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/hci_core.c: conn->rv.version = evt->version;
./subsys/bluetooth/host/hci_core.c: conn->rv.manufacturer = sys_le16_to_cpu(evt->manufacturer);
./subsys/bluetooth/host/hci_core.c: conn->rv.subversion = sys_le16_to_cpu(evt->subversion);
./subsys/bluetooth/host/hci_core.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_VERSION_INFO);
./subsys/bluetooth/host/hci_core.c: conn->err = status;
./subsys/bluetooth/host/hci_core.c: conn->le.resp_addr.type = BT_ADDR_LE_RANDOM;
./subsys/bluetooth/host/hci_core.c: if (bt_addr_cmp(&conn->le.resp_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_copy(&conn->le.resp_addr.a,
./subsys/bluetooth/host/hci_core.c: bt_addr_le_copy(&conn->le.resp_addr,
./subsys/bluetooth/host/hci_core.c: &bt_dev.id_addr[conn->id]);
./subsys/bluetooth/host/hci_core.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/hci_core.c: *conn_handle = conn->handle;
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.mtu) {
./subsys/bluetooth/host/conn.c: cb->connected(conn, conn->err);
./subsys/bluetooth/host/conn.c: if (!conn->err) {
./subsys/bluetooth/host/conn.c: cb->disconnected(conn, conn->err);
./subsys/bluetooth/host/conn.c: if (atomic_test_bit(conn->flags, BT_CONN_SLAVE_PARAM_SET) &&
./subsys/bluetooth/host/conn.c: conn->le.interval >= conn->le.interval_min &&
./subsys/bluetooth/host/conn.c: conn->le.interval <= conn->le.interval_max &&
./subsys/bluetooth/host/conn.c: conn->le.latency == conn->le.pending_latency &&
./subsys/bluetooth/host/conn.c: conn->le.timeout == conn->le.pending_timeout) {
./subsys/bluetooth/host/conn.c: atomic_clear_bit(conn->flags, BT_CONN_SLAVE_PARAM_SET);
./subsys/bluetooth/host/conn.c: cb->le_param_updated(conn, conn->le.interval,
./subsys/bluetooth/host/conn.c: conn->le.latency,
./subsys/bluetooth/host/conn.c: conn->le.timeout);
./subsys/bluetooth/host/conn.c: cb->le_data_len_updated(conn, &conn->le.data_len);
./subsys/bluetooth/host/conn.c: cb->le_phy_updated(conn, &conn->le.phy);
./subsys/bluetooth/host/conn.c: conn->le.features[0], param->interval_min,
./subsys/bluetooth/host/conn.c: BT_FEAT_LE_CONN_PARAM_REQ_PROC(conn->le.features) &&
./subsys/bluetooth/host/conn.c: !atomic_test_bit(conn->flags, BT_CONN_SLAVE_PARAM_L2CAP)) ||
./subsys/bluetooth/host/conn.c: (conn->role == BT_HCI_ROLE_MASTER)) {
./subsys/bluetooth/host/conn.c: conn->le.pending_latency = param->latency;
./subsys/bluetooth/host/conn.c: conn->le.pending_timeout = param->timeout;
./subsys/bluetooth/host/conn.c: if (sys_slist_is_empty(&conn->tx_complete)) {
./subsys/bluetooth/host/conn.c: tx = (void *)sys_slist_get_not_empty(&conn->tx_complete);
./subsys/bluetooth/host/conn.c: if (conn->state == BT_CONN_DISCONNECTED) {
./subsys/bluetooth/host/conn.c: if (conn->type != BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: conn->role == BT_CONN_ROLE_MASTER) {
./subsys/bluetooth/host/conn.c: if (atomic_test_and_clear_bit(conn->flags,
./subsys/bluetooth/host/conn.c: param = BT_LE_CONN_PARAM(conn->le.interval_min,
./subsys/bluetooth/host/conn.c: conn->le.interval_max,
./subsys/bluetooth/host/conn.c: conn->le.pending_latency,
./subsys/bluetooth/host/conn.c: conn->le.pending_timeout);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_SLAVE_PARAM_UPDATE);
./subsys/bluetooth/host/conn.c: k_delayed_work_init(&conn->update_work, conn_update_timeout);
./subsys/bluetooth/host/conn.c: k_work_init(&conn->tx_complete_work, tx_complete_work);
./subsys/bluetooth/host/conn.c: atomic_set(&conn->ref, 1);
./subsys/bluetooth/host/conn.c: bt_conn_unref(sco_conn->sco.acl);
./subsys/bluetooth/host/conn.c: sco_conn->sco.acl = NULL;
./subsys/bluetooth/host/conn.c: atomic_set(&sco_conn->ref, 1);
./subsys/bluetooth/host/conn.c: switch (conn->state) {
./subsys/bluetooth/host/conn.c: conn->role = BT_CONN_ROLE_MASTER;
./subsys/bluetooth/host/conn.c: switch (sco_conn->state) {
./subsys/bluetooth/host/conn.c: BT_ERR("handle : %x", sco_conn->sco.acl->handle);
./subsys/bluetooth/host/conn.c: cp->handle = sco_conn->sco.acl->handle;
./subsys/bluetooth/host/conn.c: cp->pkt_type = sco_conn->sco.pkt_type;
./subsys/bluetooth/host/conn.c: sco_conn->sco.acl = bt_conn_lookup_addr_br(peer);
./subsys/bluetooth/host/conn.c: sco_conn->type = BT_CONN_TYPE_SCO;
./subsys/bluetooth/host/conn.c: sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
./subsys/bluetooth/host/conn.c: sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
./subsys/bluetooth/host/conn.c: sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type &
./subsys/bluetooth/host/conn.c: bt_addr_copy(&conn->br.dst, peer);
./subsys/bluetooth/host/conn.c: conn->type = BT_CONN_TYPE_BR;
./subsys/bluetooth/host/conn.c: bt_addr_copy(&cp->bdaddr, &conn->br.dst);
./subsys/bluetooth/host/conn.c: if (conn->type != BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: if (conn->required_sec_level == BT_SECURITY_L3 && len < 16) {
./subsys/bluetooth/host/conn.c: bt_addr_str(&conn->br.dst));
./subsys/bluetooth/host/conn.c: if (!atomic_test_and_clear_bit(conn->flags, BT_CONN_USER)) {
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_BR_LEGACY_SECURE);
./subsys/bluetooth/host/conn.c: if (conn->required_sec_level == BT_SECURITY_L3) {
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_USER);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_BR_PAIRING);
./subsys/bluetooth/host/conn.c: pin_code_neg_reply(&conn->br.dst);
./subsys/bluetooth/host/conn.c: return ssp_method[conn->br.remote_io_capa][bt_conn_get_io_capa()];
./subsys/bluetooth/host/conn.c: if ((conn->br.remote_auth == BT_HCI_NO_BONDING) ||
./subsys/bluetooth/host/conn.c: ((conn->br.remote_auth == BT_HCI_NO_BONDING_MITM) &&
./subsys/bluetooth/host/conn.c: return conn->br.remote_auth;
./subsys/bluetooth/host/conn.c: return conn->br.remote_auth | BT_MITM;
./subsys/bluetooth/host/conn.c: return (conn->br.remote_auth & ~BT_MITM);
./subsys/bluetooth/host/conn.c: bt_addr_copy(&cp->bdaddr, &conn->br.dst);
./subsys/bluetooth/host/conn.c: bt_addr_copy(&cp->bdaddr, &conn->br.dst);
./subsys/bluetooth/host/conn.c: bool bond = !atomic_test_bit(conn->flags, BT_CONN_BR_NOBOND);
./subsys/bluetooth/host/conn.c: conn->br.pairing_method = ssp_pair_method(conn);
./subsys/bluetooth/host/conn.c: if (conn->required_sec_level > BT_SECURITY_L2 &&
./subsys/bluetooth/host/conn.c: conn->br.pairing_method == JUST_WORKS) {
./subsys/bluetooth/host/conn.c: switch (conn->br.pairing_method) {
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_USER);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_USER);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_USER);
./subsys/bluetooth/host/conn.c: !atomic_test_bit(conn->flags,
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_USER);
./subsys/bluetooth/host/conn.c: bt_addr_copy(&cp->bdaddr, &conn->br.dst);
./subsys/bluetooth/host/conn.c: bt_addr_copy(&cp->bdaddr, &conn->br.dst);
./subsys/bluetooth/host/conn.c: memcpy(&cp->bdaddr, &conn->br.dst, sizeof(cp->bdaddr));
./subsys/bluetooth/host/conn.c: auth->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_BR_PAIRING_INITIATOR);
./subsys/bluetooth/host/conn.c: if (conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/conn.c: rpa = &conn->le.resp_addr;
./subsys/bluetooth/host/conn.c: rpa = &conn->le.init_addr;
./subsys/bluetooth/host/conn.c: cb->identity_resolved(conn, rpa, &conn->le.dst);
./subsys/bluetooth/host/conn.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/conn.c: if (!conn->encrypt) {
./subsys/bluetooth/host/conn.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: cp->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/conn.c: return conn->le.keys ? conn->le.keys->enc_size : 0;
./subsys/bluetooth/host/conn.c: cb->security_changed(conn, conn->sec_level, err);
./subsys/bluetooth/host/conn.c: if (!err && conn->sec_level >= BT_SECURITY_L2) {
./subsys/bluetooth/host/conn.c: bt_keys_update_usage(conn->id, bt_conn_get_dst(conn));
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING)) {
./subsys/bluetooth/host/conn.c: if (conn->required_sec_level > BT_SECURITY_L3) {
./subsys/bluetooth/host/conn.c: conn->required_sec_level > BT_SECURITY_L2) {
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: if (conn->sec_level >= sec || conn->required_sec_level >= sec) {
./subsys/bluetooth/host/conn.c: atomic_set_bit_to(conn->flags, BT_CONN_FORCE_PAIR,
./subsys/bluetooth/host/conn.c: conn->required_sec_level = sec & ~BT_SECURITY_FORCE_PAIR;
./subsys/bluetooth/host/conn.c: conn->required_sec_level = conn->sec_level;
./subsys/bluetooth/host/conn.c: return conn->sec_level;
./subsys/bluetooth/host/conn.c: if (!conn->rx_len) {
./subsys/bluetooth/host/conn.c: net_buf_unref(conn->rx);
./subsys/bluetooth/host/conn.c: conn->rx = NULL;
./subsys/bluetooth/host/conn.c: conn->rx_len = 0U;
./subsys/bluetooth/host/conn.c: BT_DBG("handle %u len %u flags %02x", conn->handle, buf->len, flags);
./subsys/bluetooth/host/conn.c: if (conn->rx_len) {
./subsys/bluetooth/host/conn.c: conn->rx_len = (sizeof(*hdr) + len) - buf->len;
./subsys/bluetooth/host/conn.c: BT_DBG("rx_len %u", conn->rx_len);
./subsys/bluetooth/host/conn.c: if (conn->rx_len) {
./subsys/bluetooth/host/conn.c: conn->rx = buf;
./subsys/bluetooth/host/conn.c: if (!conn->rx_len) {
./subsys/bluetooth/host/conn.c: if (buf->len > conn->rx_len) {
./subsys/bluetooth/host/conn.c: BT_DBG("Cont, len %u rx_len %u", buf->len, conn->rx_len);
./subsys/bluetooth/host/conn.c: if (buf->len > net_buf_tailroom(conn->rx)) {
./subsys/bluetooth/host/conn.c: net_buf_add_mem(conn->rx, buf->data, buf->len);
./subsys/bluetooth/host/conn.c: conn->rx_len -= buf->len;
./subsys/bluetooth/host/conn.c: if (conn->rx_len) {
./subsys/bluetooth/host/conn.c: buf = conn->rx;
./subsys/bluetooth/host/conn.c: conn->rx = NULL;
./subsys/bluetooth/host/conn.c: conn->rx_len = 0U;
./subsys/bluetooth/host/conn.c: BT_DBG("conn handle %u buf len %u cb %p user_data %p", conn->handle,
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: net_buf_put(&conn->tx_queue, buf);
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: hdr->handle = sys_cpu_to_le16(bt_acl_handle_pack(conn->handle, flags));
./subsys/bluetooth/host/conn.c: sys_slist_append(&conn->tx_pending, &tx->node);
./subsys/bluetooth/host/conn.c: tail_tx = (void *)sys_slist_peek_tail(&conn->tx_pending);
./subsys/bluetooth/host/conn.c: pending_no_cb = &conn->pending_no_cb;
./subsys/bluetooth/host/conn.c: sys_slist_find_and_remove(&conn->tx_pending, &tx->node);
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.mtu) {
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: while ((buf = net_buf_get(&conn->tx_queue, K_NO_WAIT))) {
./subsys/bluetooth/host/conn.c: __ASSERT(sys_slist_is_empty(&conn->tx_pending), "Pending TX packets");
./subsys/bluetooth/host/conn.c: __ASSERT_NO_MSG(conn->pending_no_cb == 0);
./subsys/bluetooth/host/conn.c: k_delayed_work_submit(&conn->update_work, K_NO_WAIT);
./subsys/bluetooth/host/conn.c: if (!atomic_get(&conn->ref)) {
./subsys/bluetooth/host/conn.c: if (conn->state == BT_CONN_DISCONNECTED &&
./subsys/bluetooth/host/conn.c: atomic_test_and_clear_bit(conn->flags, BT_CONN_CLEANUP)) {
./subsys/bluetooth/host/conn.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/conn.c: &conn->tx_queue);
./subsys/bluetooth/host/conn.c: if (conn->state == BT_CONN_DISCONNECTED &&
./subsys/bluetooth/host/conn.c: atomic_test_and_clear_bit(conn->flags, BT_CONN_CLEANUP)) {
./subsys/bluetooth/host/conn.c: BT_DBG("handle %u disconnected - cleaning up", conn->handle);
./subsys/bluetooth/host/conn.c: buf = net_buf_get(&conn->tx_queue, K_NO_WAIT);
./subsys/bluetooth/host/conn.c: state2str(conn->state));
./subsys/bluetooth/host/conn.c: conn->id = id;
./subsys/bluetooth/host/conn.c: bt_addr_le_copy(&conn->le.dst, peer);
./subsys/bluetooth/host/conn.c: conn->sec_level = BT_SECURITY_L1;
./subsys/bluetooth/host/conn.c: conn->required_sec_level = BT_SECURITY_L1;
./subsys/bluetooth/host/conn.c: conn->type = BT_CONN_TYPE_LE;
./subsys/bluetooth/host/conn.c: conn->le.interval_min = BT_GAP_INIT_CONN_INT_MIN;
./subsys/bluetooth/host/conn.c: conn->le.interval_max = BT_GAP_INIT_CONN_INT_MAX;
./subsys/bluetooth/host/conn.c: if (conn->pending_no_cb) {
./subsys/bluetooth/host/conn.c: conn->pending_no_cb--;
./subsys/bluetooth/host/conn.c: node = sys_slist_get(&conn->tx_pending);
./subsys/bluetooth/host/conn.c: conn->pending_no_cb = tx->pending_no_cb;
./subsys/bluetooth/host/conn.c: BT_DBG("%s -> %s", state2str(conn->state), state2str(state));
./subsys/bluetooth/host/conn.c: if (conn->state == state) {
./subsys/bluetooth/host/conn.c: old_state = conn->state;
./subsys/bluetooth/host/conn.c: conn->state = state;
./subsys/bluetooth/host/conn.c: conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: k_delayed_work_cancel(&conn->update_work);
./subsys/bluetooth/host/conn.c: switch (conn->state) {
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_SCO) {
./subsys/bluetooth/host/conn.c: k_fifo_init(&conn->tx_queue);
./subsys/bluetooth/host/conn.c: sys_slist_init(&conn->channels);
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_SCO) {
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: k_delayed_work_cancel(&conn->update_work);
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_CLEANUP);
./subsys/bluetooth/host/conn.c: if (conn->err) {
./subsys/bluetooth/host/conn.c: if (conn->err) {
./subsys/bluetooth/host/conn.c: if (conn->err) {
./subsys/bluetooth/host/conn.c: * advertiser, conn->err is never set in this case.
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_SCO) {
./subsys/bluetooth/host/conn.c: conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: k_delayed_work_submit(&conn->update_work,
./subsys/bluetooth/host/conn.c: if (id != conn->id) {
./subsys/bluetooth/host/conn.c: if (!bt_addr_le_cmp(peer, &conn->le.dst)) {
./subsys/bluetooth/host/conn.c: if (conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/conn.c: return bt_addr_le_cmp(peer, &conn->le.resp_addr) == 0;
./subsys/bluetooth/host/conn.c: return bt_addr_le_cmp(peer, &conn->le.init_addr) == 0;
./subsys/bluetooth/host/conn.c: atomic_val_t old = atomic_inc(&conn->ref);
./subsys/bluetooth/host/conn.c: BT_DBG("handle %u ref %u -> %u", conn->handle, old,
./subsys/bluetooth/host/conn.c: atomic_get(&conn->ref));
./subsys/bluetooth/host/conn.c: atomic_val_t old = atomic_dec(&conn->ref);
./subsys/bluetooth/host/conn.c: BT_DBG("handle %u ref %u -> %u", conn->handle, old,
./subsys/bluetooth/host/conn.c: atomic_get(&conn->ref));
./subsys/bluetooth/host/conn.c: return &conn->le.dst;
./subsys/bluetooth/host/conn.c: info->type = conn->type;
./subsys/bluetooth/host/conn.c: info->role = conn->role;
./subsys/bluetooth/host/conn.c: info->id = conn->id;
./subsys/bluetooth/host/conn.c: switch (conn->type) {
./subsys/bluetooth/host/conn.c: info->le.dst = &conn->le.dst;
./subsys/bluetooth/host/conn.c: info->le.src = &bt_dev.id_addr[conn->id];
./subsys/bluetooth/host/conn.c: if (conn->role == BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/conn.c: info->le.local = &conn->le.init_addr;
./subsys/bluetooth/host/conn.c: info->le.remote = &conn->le.resp_addr;
./subsys/bluetooth/host/conn.c: info->le.local = &conn->le.resp_addr;
./subsys/bluetooth/host/conn.c: info->le.remote = &conn->le.init_addr;
./subsys/bluetooth/host/conn.c: info->le.interval = conn->le.interval;
./subsys/bluetooth/host/conn.c: info->le.latency = conn->le.latency;
./subsys/bluetooth/host/conn.c: info->le.timeout = conn->le.timeout;
./subsys/bluetooth/host/conn.c: info->le.phy = &conn->le.phy;
./subsys/bluetooth/host/conn.c: info->le.data_len = &conn->le.data_len;
./subsys/bluetooth/host/conn.c: info->br.dst = &conn->br.dst;
./subsys/bluetooth/host/conn.c: if (!atomic_test_bit(conn->flags, BT_CONN_AUTO_FEATURE_EXCH) ||
./subsys/bluetooth/host/conn.c: !atomic_test_bit(conn->flags, BT_CONN_AUTO_VERSION_INFO))) {
./subsys/bluetooth/host/conn.c: remote_info->type = conn->type;
./subsys/bluetooth/host/conn.c: /* The conn->rv values will be just zeroes if the operation failed */
./subsys/bluetooth/host/conn.c: remote_info->version = conn->rv.version;
./subsys/bluetooth/host/conn.c: remote_info->manufacturer = conn->rv.manufacturer;
./subsys/bluetooth/host/conn.c: remote_info->subversion = conn->rv.subversion;
./subsys/bluetooth/host/conn.c: switch (conn->type) {
./subsys/bluetooth/host/conn.c: remote_info->le.features = conn->le.features;
./subsys/bluetooth/host/conn.c: err = bt_hci_disconnect(conn->handle, reason);
./subsys/bluetooth/host/conn.c: conn->le.features[0], param->interval_min,
./subsys/bluetooth/host/conn.c: if (conn->le.interval >= param->interval_min &&
./subsys/bluetooth/host/conn.c: conn->le.interval <= param->interval_max &&
./subsys/bluetooth/host/conn.c: conn->le.latency == param->latency &&
./subsys/bluetooth/host/conn.c: conn->le.timeout == param->timeout) {
./subsys/bluetooth/host/conn.c: atomic_clear_bit(conn->flags, BT_CONN_SLAVE_PARAM_SET);
./subsys/bluetooth/host/conn.c: conn->role == BT_CONN_ROLE_MASTER) {
./subsys/bluetooth/host/conn.c: if (atomic_test_bit(conn->flags, BT_CONN_SLAVE_PARAM_UPDATE)) {
./subsys/bluetooth/host/conn.c: conn->le.interval_min = param->interval_min;
./subsys/bluetooth/host/conn.c: conn->le.interval_max = param->interval_max;
./subsys/bluetooth/host/conn.c: conn->le.pending_latency = param->latency;
./subsys/bluetooth/host/conn.c: conn->le.pending_timeout = param->timeout;
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_SLAVE_PARAM_SET);
./subsys/bluetooth/host/conn.c: if (conn->le.data_len.tx_max_len == param->tx_max_len &&
./subsys/bluetooth/host/conn.c: conn->le.data_len.tx_max_time == param->tx_max_time) {
./subsys/bluetooth/host/conn.c: !atomic_test_bit(conn->flags, BT_CONN_AUTO_DATA_LEN_COMPLETE)) {
./subsys/bluetooth/host/conn.c: !atomic_test_bit(conn->flags, BT_CONN_AUTO_PHY_COMPLETE)) {
./subsys/bluetooth/host/conn.c: conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: bt_le_set_auto_conn(&conn->le.dst, NULL);
./subsys/bluetooth/host/conn.c: switch (conn->state) {
./subsys/bluetooth/host/conn.c: conn->err = reason;
./subsys/bluetooth/host/conn.c: conn->err = reason;
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: k_delayed_work_cancel(&conn->update_work);
./subsys/bluetooth/host/conn.c: conn->le.interval_min = param->interval_min;
./subsys/bluetooth/host/conn.c: conn->le.interval_max = param->interval_max;
./subsys/bluetooth/host/conn.c: conn->le.latency = param->latency;
./subsys/bluetooth/host/conn.c: conn->le.timeout = param->timeout;
./subsys/bluetooth/host/conn.c: atomic_set_bit(conn->flags, BT_CONN_AUTO_CONNECT);
./subsys/bluetooth/host/conn.c: conn->err = 0;
./subsys/bluetooth/host/conn.c: conn->err = 0;
./subsys/bluetooth/host/conn.c: if (!atomic_test_and_set_bit(conn->flags,
./subsys/bluetooth/host/conn.c: if (atomic_test_and_clear_bit(conn->flags,
./subsys/bluetooth/host/conn.c: if (conn->state == BT_CONN_CONNECT_SCAN) {
./subsys/bluetooth/host/conn.c: if (conn->state == BT_CONN_DISCONNECTED &&
./subsys/bluetooth/host/conn.c: conn_update->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/conn.c: conn_update->handle = sys_cpu_to_le16(conn->handle);
./subsys/bluetooth/host/conn.c: if (IS_ENABLED(CONFIG_BT_SMP) && conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: if (!atomic_test_and_clear_bit(conn->flags, BT_CONN_USER)) {
./subsys/bluetooth/host/conn.c: if (conn->br.pairing_method == PASSKEY_INPUT) {
./subsys/bluetooth/host/conn.c: conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: if (!atomic_test_and_clear_bit(conn->flags, BT_CONN_USER)) {
./subsys/bluetooth/host/conn.c: if (IS_ENABLED(CONFIG_BT_SMP) && conn->type == BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/conn.c: if (conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/conn.c: if (!atomic_test_and_clear_bit(conn->flags, BT_CONN_USER)) {
./subsys/bluetooth/host/conn.c: switch (conn->br.pairing_method) {
./subsys/bluetooth/host/conn.c: return pin_code_neg_reply(&conn->br.dst);
./subsys/bluetooth/host/conn.c: switch (conn->type) {
./subsys/bluetooth/host/conn.c: if (!atomic_get(&conn->ref)) {
./subsys/bluetooth/host/conn.c: if (!atomic_get(&conn->ref)) {
./subsys/bluetooth/host/conn.c: if (atomic_test_bit(conn->flags,
./subsys/bluetooth/host/conn.c: conn->id = BT_ID_DEFAULT;
./subsys/bluetooth/host/gatt.c: if (bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: err = bt_gatt_clear_sc(conn->id, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: cfg = find_sc_cfg(conn->id, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: sc_save(conn->id, &conn->le.dst, 0, 0);
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&cfg->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: cfg->id = conn->id;
./subsys/bluetooth/host/gatt.c: if (!bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&cfg->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: if (bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: bt_gatt_store_ccc(conn->id, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&cfg->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: cfg->id = conn->id;
./subsys/bluetooth/host/gatt.c: bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn && conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn && conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (!conn->encrypt) {
./subsys/bluetooth/host/gatt.c: cfg = find_sc_cfg(conn->id, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: if (!bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&cfg->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&free_sub->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: free_sub->id = conn->id;
./subsys/bluetooth/host/gatt.c: bt_addr_le_copy(&sub->peer, &conn->le.dst);
./subsys/bluetooth/host/gatt.c: if (!bt_addr_le_is_bonded(conn->id, &conn->le.dst) ||
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->encrypt) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/gatt.c: if (bt_addr_le_is_bonded(conn->id, &conn->le.dst) &&
./subsys/bluetooth/host/gatt.c: bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: if (conn->id) {
./subsys/bluetooth/host/gatt.c: u8_to_dec(id_str, sizeof(id_str), conn->id);
./subsys/bluetooth/host/gatt.c: &conn->le.dst, id_str);
./subsys/bluetooth/host/gatt.c: &conn->le.dst, NULL);
./subsys/bluetooth/host/gatt.c: if (conn->id) {
./subsys/bluetooth/host/gatt.c: u8_to_dec(id_str, sizeof(id_str), conn->id);
./subsys/bluetooth/host/gatt.c: &conn->le.dst, id_str);
./subsys/bluetooth/host/gatt.c: if (!cfg || !conn->id) {
./subsys/bluetooth/host/gatt.c: &conn->le.dst, NULL);
./subsys/bluetooth/host/gatt.c: BT_DBG("Stored CF for %s (%s)", bt_addr_le_str(&conn->le.dst), log_strdup(key));
./subsys/bluetooth/host/gatt.c: bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
./subsys/bluetooth/host/gatt.c: bt_gatt_store_ccc(conn->id, &conn->le.dst);
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: sys_slist_remove(&conn->channels, prev,
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: sys_slist_remove(&conn->channels, prev, &chan->node);
./subsys/bluetooth/host/l2cap.c: sys_slist_append(&conn->channels, &chan->node);
./subsys/bluetooth/host/l2cap.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&conn->channels, chan, next, node) {
./subsys/bluetooth/host/l2cap.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: if (conn->role != BT_HCI_ROLE_MASTER) {
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: if (conn->sec_level < server->sec_level) {
./subsys/bluetooth/host/l2cap.c: if (conn->sec_level < server->sec_level) {
./subsys/bluetooth/host/l2cap.c: SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) {
./subsys/bluetooth/host/l2cap.c: sys_slist_remove(&conn->channels, prev, &chan->node);
./subsys/bluetooth/host/l2cap.c: if (conn->type != BT_CONN_TYPE_LE) {
./subsys/bluetooth/host/l2cap.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/l2cap.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/l2cap.c: if (!conn || conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/l2cap.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/l2cap.c: conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/l2cap.c: if (!chan->conn || chan->conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/l2cap.c: chan->conn->type == BT_CONN_TYPE_BR) {
./subsys/bluetooth/host/att.c: return (chan->att->conn->state != BT_CONN_CONNECTED ||
./subsys/bluetooth/host/att.c: if (conn->sec_level >= BT_SECURITY_L2)
./subsys/bluetooth/host/att.c: if (conn->sec_level < BT_SECURITY_L2) {
./subsys/bluetooth/host/att.c: } else if (conn->sec_level < BT_SECURITY_L3) {
./subsys/bluetooth/host/att.c: } else if (conn->sec_level < BT_SECURITY_L4) {
./subsys/bluetooth/host/att.c: if (conn->state != BT_CONN_CONNECTED) {
./subsys/bluetooth/host/att.c: conn, conn->handle, conn->sec_level, hci_status);
./subsys/bluetooth/host/att.c: if (conn->sec_level == BT_SECURITY_L1) {
./subsys/bluetooth/host/att.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/host/att.c: BT_DBG("conn %p handle %u", conn, conn->handle);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->lll.handle != handle) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->lll.role && conn->lll.latency_event &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: !conn->slave.latency_cancel) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->slave.latency_cancel = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->llcp_conn_param.disabled &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (!conn->common.fex_valid ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_feature.features_conn &
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_cu.req != conn->llcp_cu.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_size = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_offset_us = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.state = LLCP_CUI_STATE_USE;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_conn_param.req ==
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_conn_param.state !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = status;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_conn_param.req !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_min = conn->lll.interval;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_max = conn->lll.interval;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c:conn->llcp_conn_param.offset0 = offset;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: //printk("[ejpark] entered?: %u offset %u\n", offset, conn->llcp_conn_param.offset0);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->llcp_conn_param.disabled &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (!conn->common.fex_valid ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_feature.features_conn &
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_cu.req != conn->llcp_cu.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_size = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_offset_us = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.interval = interval_max;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.latency = latency;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.timeout = timeout;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.state = LLCP_CUI_STATE_USE;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_conn_param.req ==
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_conn_param.state !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = status;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_conn_param.req !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_min = interval_min;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_max = interval_max;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.latency = latency;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.timeout = timeout;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c:conn->llcp_conn_param.offset0 = offset;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: //printk("[ejpark] entered?: %u offset %u\n", offset, conn->llcp_conn_param.offset0);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->llcp_conn_param.disabled &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (!conn->common.fex_valid ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_feature.features_conn &
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->lll.role) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_cu.req != conn->llcp_cu.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_size = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.win_offset_us = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.interval = interval_max;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.latency = latency;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.timeout = timeout;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.state = LLCP_CUI_STATE_USE;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_cu.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_conn_param.req ==
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_conn_param.state !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = status;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_conn_param.req !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.status = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_min = interval_min;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.interval_max = interval_max;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.latency = latency;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.timeout = timeout;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.state = cmd;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->chm_updated = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: memcpy(chm, conn->lll.data_chan_map,
./subsys/bluetooth/controller/ll_sw/ull_conn.c: sizeof(conn->lll.data_chan_map));
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } while (conn->chm_updated);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.reason_own = reason;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_feature.req != conn->llcp_feature.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_feature.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_version.req != conn->llcp_version.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_version.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_length.disabled ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->common.fex_valid &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: !(conn->llcp_feature.features_conn & BIT(BT_LE_FEAT_BIT_DLE)))) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_length.req != conn->llcp_length.ack) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: switch (conn->llcp_length.state) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->llcp_length.cache.tx_octets) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.cache.tx_octets = tx_octets;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.cache.tx_time = tx_time;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.state = LLCP_LENGTH_STATE_REQ;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.tx_octets = tx_octets;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.tx_time = tx_time;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_length.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: *tx = conn->lll.phy_tx;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: *rx = conn->lll.phy_rx;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_phy.disabled ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->common.fex_valid &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: !(conn->llcp_feature.features_conn & BIT(BT_LE_FEAT_BIT_PHY_2M)) &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: !(conn->llcp_feature.features_conn &
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_req != conn->llcp_ack) ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_phy.req != conn->llcp_phy.ack)) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.state = LLCP_PHY_STATE_REQ;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.cmd = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.tx = tx;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.flags = flags;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.rx = rx;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_phy.req++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: *rssi = conn->lll.rssi_latest;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: *apto = conn->apto_reload * conn->lll.interval * 125U / 1000;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_reload = RADIO_CONN_EVENTS(apto * 10U * 1000U,
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->lll.interval * 1250);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_enc.pause_rx) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.reason_peer =
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_enc.pause_rx) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.reason_peer =
./subsys/bluetooth/controller/ll_sw/ull_conn.c: LL_ASSERT(conn->lll.handle != 0xFFFF);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if(update_signal && conn->lll.handle == first_handle){
./subsys/bluetooth/controller/ll_sw/ull_conn.c: int conn_handle = conn->lll.handle;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if(conn_handle == 0 && conn->lll.interval != 32) printk("[ejpark] error!!!!\n");
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn_int_table[conn_handle] = conn->lll.interval;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: printk("[ejpark] point 4: %u, %u, %u // ", array_index, array1[(array_index-2)%table_size, conn->lll.interval]);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_ack == conn->llcp_req) &&
./subsys/bluetooth/controller/ll_sw/ull_conn.c: !conn->llcp_enc.pause_rx) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_cu.ack != conn->llcp_cu.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_type = LLCP_CONN_UPD;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_ack -= 2U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_feature.ack != conn->llcp_feature.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_version.ack != conn->llcp_version.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_conn_param.ack !=
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_conn_param.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: struct lll_conn *lll = &conn->lll;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_length.ack != conn->llcp_length.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_phy.ack != conn->llcp_phy.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (((conn->llcp_req - conn->llcp_ack) & 0x03) == 0x02) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: } else if (conn->llcp_length.ack != conn->llcp_length.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if ((conn->llcp_length.state ==
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->llcp_length.state ==
./subsys/bluetooth/controller/ll_sw/ull_conn.c: switch (conn->llcp_type) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: struct lll_conn *lll = &conn->lll;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: struct lll_conn *lll = &conn->lll;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->llcp_terminate.ack != conn->llcp_terminate.req) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.ack = conn->llcp_terminate.req;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.reason_own;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->procedure_expire) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->procedure_expire = conn->supervision_reload;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->procedure_expire <= 1U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->procedure_expire++;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (lll->enc_rx || conn->llcp_enc.pause_rx) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: appto_reload_new = (conn->apto_reload >
./subsys/bluetooth/controller/ll_sw/ull_conn.c: (conn->apto_reload -
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_reload;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->appto_reload != appto_reload_new) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->appto_reload = appto_reload_new;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_expire = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->apto_expire == 0U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->appto_expire = conn->appto_reload;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_expire = conn->apto_reload;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->appto_expire = conn->apto_expire = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->llcp_terminate.reason_peer =
./subsys/bluetooth/controller/ll_sw/ull_conn.c: reason_peer = conn->llcp_terminate.reason_peer;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->master.terminate_ack ||
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if(conn->tx_data)
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn_int_table[conn_handle] = conn->lll.interval;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->tx_head) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->tx_head || memq_peek(lll->memq_tx.head,
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->master.terminate_ack = 1;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->connect_expire = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->supervision_expire = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: else if (conn->connect_expire) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->connect_expire > elapsed_event) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->connect_expire -= elapsed_event;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (!conn->supervision_expire) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->supervision_expire = conn->supervision_reload;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->supervision_expire) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->supervision_expire > elapsed_event) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->supervision_expire -= elapsed_event;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->supervision_expire <= 6U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: force = conn->slave.force & 0x01;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->slave.force >>= 1;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->slave.force |= BIT(31);
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->procedure_expire != 0U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->procedure_expire > elapsed_event) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->procedure_expire -= elapsed_event;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->apto_expire != 0U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->apto_expire > elapsed_event) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_expire -= elapsed_event;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_expire = 0U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->apto_expire = 1U;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->appto_expire != 0U) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: if (conn->appto_expire > elapsed_event) {
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->appto_expire -= elapsed_event;
./subsys/bluetooth/controller/ll_sw/ull_conn.c: conn->appto_expire = 0U;