• Luiz Augusto von Dentz's avatar
    Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 1 · 161510cc
    Luiz Augusto von Dentz authored
    This make use of hci_cmd_sync_queue for the following MGMT commands:
    
    Set Device Class
    Set Device ID
    Add UUID
    Remove UUID
    
    tools/mgmt-tester -s "Set Device Class"
    
    Test Summary
    ------------
    Set Device Class - Success 1                         Passed
    Set Device Class - Success 2                         Passed
    Set Device Class - Invalid parameters 1              Passed
    Total: 3, Passed: 3 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.0599 seconds
    
    tools/mgmt-tester -s "Set Device ID"
    
    Test Summary
    ------------
    Set Device ID - Success 1                            Passed
    Set Device ID - Success 2                            Passed
    Set Device ID - Disable                              Passed
    Set Device ID - Power off and Power on               Passed
    Set Device ID - SSP off and Power on                 Passed
    Set Device ID - Invalid Parameter                    Passed
    Total: 6, Passed: 6 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.107 seconds
    
    tools/mgmt-tester -s "Add UUID"
    
    Test Summary
    ------------
    Add UUID - UUID-16 1                                 Passed
    Add UUID - UUID-16 multiple 1                        Passed
    Add UUID - UUID-16 partial 1                         Passed
    Add UUID - UUID-32 1                                 Passed
    Add UUID - UUID-32 multiple 1                        Passed
    Add UUID - UUID-32 partial 1                         Passed
    Add UUID - UUID-128 1                                Passed
    Add UUID - UUID-128 multiple 1                       Passed
    Add UUID - UUID-128 partial 1                        Passed
    Add UUID - UUID mix                                  Passed
    Total: 10, Passed: 10 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.198 seconds
    
    tools/mgmt-tester -s "Remove UUID"
    
    Test Summary
    ------------
    Remove UUID - Success 1                              Passed
    Remove UUID - All UUID - Success 2                   Passed
    Remove UUID - Power Off - Success 3                  Passed
    Remove UUID - Power Off and On - Success 4           Passed
    Remove UUID - Not Exist - Invalid Params 1           Passed
    Total: 5, Passed: 5 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.0908 seconds
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    161510cc
mgmt.c 245 KB