OSDN Git Service

Fix params of SetPeriodicAdvertisingParameters
authorSunny Kapdi <sunnyk@codeaurora.org>
Thu, 1 Jun 2017 21:34:03 +0000 (14:34 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 1 Jun 2017 22:48:43 +0000 (15:48 -0700)
Fix the sequence of SetPeriodicAdvertisingParameters
in the hci_cmd

Bug: 62268713
Change-Id: Ibdcd362458e9d7ee2f95106a2aefa76e1c264103

stack/btm/ble_advertiser_hci_interface.cc

index d7b217b..740ab50 100644 (file)
@@ -595,9 +595,9 @@ class BleAdvertiserHciExtendedImpl : public BleAdvertiserHciInterface {
 
     uint8_t* pp = param;
     UINT8_TO_STREAM(pp, handle);
-    UINT16_TO_STREAM(pp, periodic_properties);
     UINT16_TO_STREAM(pp, periodic_adv_int_min);
     UINT16_TO_STREAM(pp, periodic_adv_int_max);
+    UINT16_TO_STREAM(pp, periodic_properties);
 
     SendAdvCmd(FROM_HERE, HCI_LE_SET_PERIODIC_ADVERTISING_PARAM, param,
                HCI_LE_SET_PRIODIC_ADVERTISING_PARAM_LEN, command_complete);