• L
    Bluetooth: hci_sync: Make use of hci_cmd_sync_queue set 2 · cba6b758
    Luiz Augusto von Dentz 提交于
    This make use of hci_cmd_sync_queue for the following MGMT commands:
    
    Add Advertising
    Remove Advertising
    Add Extended Advertising Parameters
    Add Extended Advertising Data
    
    mgmt-tester -s "Add Advertising"
    
    Test Summary
    ------------
    Add Advertising - Failure: LE off                    Passed
    Add Advertising - Invalid Params 1 (AD too long)     Passed
    Add Advertising - Invalid Params 2 (Malformed len)   Passed
    Add Advertising - Invalid Params 3 (Malformed len)   Passed
    Add Advertising - Invalid Params 4 (Malformed len)   Passed
    Add Advertising - Invalid Params 5 (AD too long)     Passed
    Add Advertising - Invalid Params 6 (ScRsp too long)  Passed
    Add Advertising - Invalid Params 7 (Malformed len)   Passed
    Add Advertising - Invalid Params 8 (Malformed len)   Passed
    Add Advertising - Invalid Params 9 (Malformed len)   Passed
    Add Advertising - Invalid Params 10 (ScRsp too long) Passed
    Add Advertising - Rejected (Timeout, !Powered)       Passed
    Add Advertising - Success 1 (Powered, Add Adv Inst)  Passed
    Add Advertising - Success 2 (!Powered, Add Adv Inst) Passed
    Add Advertising - Success 3 (!Powered, Adv Enable)   Passed
    Add Advertising - Success 4 (Set Adv on override)    Passed
    Add Advertising - Success 5 (Set Adv off override)   Passed
    Add Advertising - Success 6 (Scan Rsp Dta, Adv ok)   Passed
    Add Advertising - Success 7 (Scan Rsp Dta, Scan ok)  Passed
    Add Advertising - Success 8 (Connectable Flag)       Passed
    Add Advertising - Success 9 (General Discov Flag)    Passed
    Add Advertising - Success 10 (Limited Discov Flag)   Passed
    Add Advertising - Success 11 (Managed Flags)         Passed
    Add Advertising - Success 12 (TX Power Flag)         Passed
    Add Advertising - Success 13 (ADV_SCAN_IND)          Passed
    Add Advertising - Success 14 (ADV_NONCONN_IND)       Passed
    Add Advertising - Success 15 (ADV_IND)               Passed
    Add Advertising - Success 16 (Connectable -> on)     Passed
    Add Advertising - Success 17 (Connectable -> off)    Passed
    Add Advertising - Success 18 (Power -> off, Remove)  Passed
    Add Advertising - Success 19 (Power -> off, Keep)    Passed
    Add Advertising - Success 20 (Add Adv override)      Passed
    Add Advertising - Success 21 (Timeout expires)       Passed
    Add Advertising - Success 22 (LE -> off, Remove)     Passed
    Add Advertising - Success (Empty ScRsp)              Passed
    Add Advertising - Success (ScRsp only)               Passed
    Add Advertising - Invalid Params (ScRsp too long)    Passed
    Add Advertising - Success (ScRsp appear)             Passed
    Add Advertising - Invalid Params (ScRsp appear long) Passed
    Add Advertising - Success (Appear is null)           Passed
    Add Advertising - Success (Name is null)             Passed
    Add Advertising - Success (Complete name)            Passed
    Add Advertising - Success (Shortened name)           Passed
    Add Advertising - Success (Short name)               Passed
    Add Advertising - Success (Name + data)              Passed
    Add Advertising - Invalid Params (Name + data)       Passed
    Add Advertising - Success (Name+data+appear)         Passed
    Total: 47, Passed: 47 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 2.17 seconds
    
    mgmt-tester -s "Remove Advertising"
    
    Test Summary
    ------------
    Remove Advertising - Invalid Params 1                Passed
    Remove Advertising - Success 1                       Passed
    Remove Advertising - Success 2                       Passed
    Total: 3, Passed: 3 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.0585 seconds
    
    mgmt-tester -s "Ext Adv MGMT Params"
    
    Test Summary:
    ------------
    Ext Adv MGMT Params - Unpowered                      Passed
    Ext Adv MGMT Params - Invalid parameters             Passed
    Ext Adv MGMT Params - Success                        Passed
    Ext Adv MGMT Params - (5.0) Success                  Passed
    Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.0746 seconds
    
    mgmt-tester -s "Ext Adv MGMT -"
    
    Test Summary
    ------------
    Ext Adv MGMT - Data set without Params               Passed
    Ext Adv MGMT - AD Data (5.0) Invalid parameters      Passed
    Ext Adv MGMT - AD Data (5.0) Success                 Passed
    Ext Adv MGMT - AD Scan Response (5.0) Success        Passed
    Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0
    Overall execution time: 0.0805 seconds
    Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
    cba6b758
hci_event.c 158.2 KB