Skip to content

Commit

Permalink
fix(nimble): Add support for VSC to clear legacy adv memory
Browse files Browse the repository at this point in the history
 Legacy adv does not have an API for clear adv memory in controller.
 Added VSC for same.
  • Loading branch information
rahult-github committed Nov 28, 2023
1 parent 7ab6788 commit 6b5d569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions components/bt/porting/nimble/include/nimble/hci_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1149,8 +1149,10 @@ struct ble_hci_vs_duplicate_exception_list_cp {
uint8_t device_info[6];
} __attribute__((packed));

#if SOC_BLE_POWER_CONTROL_SUPPORTED && MYNEWT_VAL(BLE_HCI_VS)
#define BLE_HCI_OCF_VS_PCL_SET_RSSI (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x0111))
#define BLE_HCI_OCF_VS_LEGACY_ADV_CLEAR (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x010C))

#if SOC_BLE_POWER_CONTROL_SUPPORTED
#define BLE_HCI_OCF_VS_PCL_SET_RSSI (MYNEWT_VAL(BLE_HCI_VS_OCF_OFFSET) + (0x0111))
#endif

/* Command Specific Definitions */
Expand Down

0 comments on commit 6b5d569

Please sign in to comment.