Commit 413eb08
Bluetooth: host: Refactor update_keys_check to operate on keys as input
Refactor update_keys_check helper function to operate on input keys
input. This allows the function to be re-used on a keys structure that
is not the current connection keys.
This also avoids the helper function changing the connection state.
The conn->le.keys pointer should at this point always have been
assigned, as central when sending the pairing request, and as peripheral
when receiving the pairing request at the very latest.
Signed-off-by: Joakim Andersson <[email protected]>1 parent 6339812 commit 413eb08
1 file changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 559 | + | |
| 560 | + | |
567 | 561 | | |
568 | 562 | | |
569 | 563 | | |
570 | | - | |
| 564 | + | |
571 | 565 | | |
572 | 566 | | |
573 | 567 | | |
574 | | - | |
| 568 | + | |
575 | 569 | | |
576 | 570 | | |
577 | 571 | | |
578 | 572 | | |
579 | | - | |
| 573 | + | |
580 | 574 | | |
581 | 575 | | |
582 | 576 | | |
583 | 577 | | |
584 | 578 | | |
585 | | - | |
| 579 | + | |
586 | 580 | | |
587 | 581 | | |
588 | 582 | | |
| |||
2493 | 2487 | | |
2494 | 2488 | | |
2495 | 2489 | | |
2496 | | - | |
| 2490 | + | |
2497 | 2491 | | |
2498 | 2492 | | |
2499 | 2493 | | |
| |||
2659 | 2653 | | |
2660 | 2654 | | |
2661 | 2655 | | |
2662 | | - | |
| 2656 | + | |
2663 | 2657 | | |
2664 | 2658 | | |
2665 | 2659 | | |
| |||
0 commit comments