Commit cf75ad8
Bluetooth: hci_sync: Convert MGMT_SET_POWERED
This make use of hci_cmd_sync_queue when MGMT_SET_POWERED is used so all
commands are run within hdev->cmd_sync_work instead of
hdev->power_on_work and hdev->power_off_work.
In addition to that the power on sequence now takes into account if
local IRK needs to be programmed in the resolving list.
Tested with:
tools/mgmt-tester -s "Set powered"
Test Summary
------------
Set powered on - Success Passed
Set powered on - Invalid parameters 1 Passed
Set powered on - Invalid parameters 2 Passed
Set powered on - Invalid parameters 3 Passed
Set powered on - Invalid index Passed
Set powered on - Privacy and Advertising Passed
Set powered off - Success Passed
Set powered off - Class of Device Passed
Set powered off - Invalid parameters 1 Passed
Set powered off - Invalid parameters 2 Passed
Set powered off - Invalid parameters 3 Passed
Total: 11, Passed: 11 (100.0%), Failed: 0, Not Run: 0
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>1 parent 5bee2fd commit cf75ad8
File tree
5 files changed
+685
-98
lines changed- include/net/bluetooth
- net/bluetooth
5 files changed
+685
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
| 1318 | + | |
| 1319 | + | |
1319 | 1320 | | |
1320 | 1321 | | |
1321 | 1322 | | |
1322 | 1323 | | |
1323 | 1324 | | |
1324 | | - | |
1325 | | - | |
1326 | 1325 | | |
1327 | 1326 | | |
1328 | 1327 | | |
| |||
1489 | 1488 | | |
1490 | 1489 | | |
1491 | 1490 | | |
1492 | | - | |
1493 | | - | |
| 1491 | + | |
1494 | 1492 | | |
1495 | 1493 | | |
1496 | 1494 | | |
| |||
1522 | 1520 | | |
1523 | 1521 | | |
1524 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1525 | 1536 | | |
1526 | 1537 | | |
1527 | 1538 | | |
| |||
1600 | 1611 | | |
1601 | 1612 | | |
1602 | 1613 | | |
1603 | | - | |
| 1614 | + | |
| 1615 | + | |
1604 | 1616 | | |
1605 | 1617 | | |
1606 | 1618 | | |
| |||
1611 | 1623 | | |
1612 | 1624 | | |
1613 | 1625 | | |
1614 | | - | |
1615 | 1626 | | |
1616 | 1627 | | |
1617 | 1628 | | |
| |||
1623 | 1634 | | |
1624 | 1635 | | |
1625 | 1636 | | |
1626 | | - | |
1627 | 1637 | | |
1628 | 1638 | | |
1629 | 1639 | | |
| |||
1729 | 1739 | | |
1730 | 1740 | | |
1731 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1732 | 1756 | | |
1733 | 1757 | | |
1734 | | - | |
1735 | 1758 | | |
1736 | 1759 | | |
1737 | 1760 | | |
| |||
2133 | 2156 | | |
2134 | 2157 | | |
2135 | 2158 | | |
2136 | | - | |
2137 | | - | |
2138 | | - | |
| 2159 | + | |
2139 | 2160 | | |
2140 | 2161 | | |
2141 | 2162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
| 1797 | + | |
| 1798 | + | |
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
| |||
0 commit comments