• Luiz Augusto von Dentz's avatar
    Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 3 · e8907f76
    Luiz Augusto von Dentz authored
    This make use of hci_cmd_sync_queue for the following MGMT commands:
    
        Add Device
        Remove Device
    
    Tested with:
    
    mgmt-tester -s "Add Device"
    
    Test Summary
    ------------
    Add Device - Invalid Params 1                        Passed
    Add Device - Invalid Params 2                        Passed
    Add Device - Invalid Params 3                        Passed
    Add Device - Invalid Params 4                        Passed
    Add Device - Success 1                               Passed
    Add Device - Success 2                               Passed
    Add Device - Success 3                               Passed
    Add Device - Success 4                               Passed
    Add Device - Success 5                               Passed
    Add Device - Success 6 - Add to whitelist            Passed
    Add Device - Success 7 - Add to resolv list          Passed
    Add Device - Success 8 - Enable resolv list          Passed
    Total: 12, Passed: 12 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.209 seconds
    
    mgmt-tester -s "Remove Device"
    
    Test Summary
    ------------
    Remove Device - Invalid Params 1                     Passed
    Remove Device - Invalid Params 2                     Passed
    Remove Device - Invalid Params 3                     Passed
    Remove Device - Success 1                            Passed
    Remove Device - Success 2                            Passed
    Remove Device - Success 3                            Passed
    Remove Device - Success 4                            Passed
    Remove Device - Success 5                            Passed
    Remove Device - Success 6 - All Devices              Passed
    Remove Device - Success 7 - Remove from whitelist    Passed
    Remove Device - Success 8 - Remove from resolv list  Passed
    Total: 11, Passed: 11 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 4.26 seconds
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    e8907f76
hci_sync.c 49.1 KB