BLE Host - rename default_irk --> ble_hs_pvcy_default_irk

X-Original-Commit: 98c0da1b4445978c24a4354a0e3799eb3a03bfaf
This commit is contained in:
Christopher Collins
2017-09-29 14:29:38 -07:00
parent 51792adbed
commit fa94bcce91
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ static uint8_t ble_hs_pvcy_started;
uint8_t ble_hs_pvcy_irk[16];
/** Use this as a default IRK if none gets set. */
const uint8_t default_irk[16] = {
const uint8_t ble_hs_pvcy_default_irk[16] = {
0xef, 0x8d, 0xe2, 0x16, 0x4f, 0xec, 0x43, 0x0d,
0xbf, 0x5b, 0xdd, 0x34, 0xc0, 0x53, 0x1e, 0xb8,
};
@@ -165,7 +165,7 @@ ble_hs_pvcy_set_our_irk(const uint8_t *irk)
if (irk != NULL) {
memcpy(new_irk, irk, 16);
} else {
memcpy(new_irk, default_irk, 16);
memcpy(new_irk, ble_hs_pvcy_default_irk, 16);
}
/* Clear the resolving list if this is a new IRK. */
+2
View File
@@ -26,6 +26,8 @@
extern "C" {
#endif
extern const uint8_t ble_hs_pvcy_default_irk[16];
int ble_hs_pvcy_set_our_irk(const uint8_t *irk);
int ble_hs_pvcy_our_irk(const uint8_t **out_irk);
int ble_hs_pvcy_remove_entry(uint8_t addr_type, const uint8_t *addr);