Using GapAdv_loadByBuffer() changes both scan response and advertising data

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • SimpleLink CC2640R2 SDK BLE Stack
    • BLESTACK-5405
    • BLE Stack BLE5-1.1.9
    • Hide
      BLE Stack BLE5-1.1.11
      BLE Stack BLE5-1.1.11 RC1
      Show
      BLE Stack BLE5-1.1.11 BLE Stack BLE5-1.1.11 RC1
    • CC2640R2

      E2E Thread: https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/p/845470/3126899

      Installer: simplelink_cc13x2_26x2_sdk_3_20_00_68

      Problem description:

      When using GapAdv_loadByBuffer() to update the scan response buffer, both the scan response and the advertisement data are updated.

      Steps to reproduce: 

      1) Import a peripheral example, use the following code snippet to update the scan response data:

              GapAdv_prepareLoadByBuffer(scanRspData, FALSE);
              scanRspData[1] = GAP_ADTYPE_MANUFACTURER_SPECIFIC;
              GapAdv_loadByBuffer(sizeof(scanRspData), scanRspData);
      
      

      This may be reproduced in Project Zero too.

      2) Use a sniffer to monitor the advertisement and scan response data

      3) At runtime, update the scan response data.

      4) In the sniffer log you will see that both the advertising data and the scan response data have been updated. (Expected: Only the scan response data should be updated.)

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-2591 - Using GapAdv_loadByBuffer() changes...
                SYNCHRONIZED
                • Last Sync Date: