BLE : Replace calls to Gap::setAddress with HCIDriver::set_random_static_address

pull/12321/head
Vincent Coubard 2020-01-28 13:21:21 +00:00
parent c66dd7fd1f
commit 1970761880
4 changed files with 4 additions and 16 deletions

View File

@ -341,10 +341,7 @@ void ble::vendor::odin_w2::HCIDriver::handle_reset_sequence(uint8_t *pMsg)
memcpy(addr, pMsg, sizeof(addr)); memcpy(addr, pMsg, sizeof(addr));
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC); DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
// note: will invoke set rand address // note: will invoke set rand address
cordio::BLE::deviceInstance().getGap().setAddress( set_random_static_address(addr);
BLEProtocol::AddressType::RANDOM_STATIC,
addr
);
} }
break; break;

View File

@ -301,10 +301,7 @@ public:
memcpy(addr, pMsg, sizeof(addr)); memcpy(addr, pMsg, sizeof(addr));
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC); DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
// note: will invoke set rand address // note: will invoke set rand address
cordio::BLE::deviceInstance().getGap().setAddress( set_random_static_address(addr);
BLEProtocol::AddressType::RANDOM_STATIC,
addr
);
} }
break; break;

View File

@ -265,10 +265,7 @@ public:
memcpy(addr, pMsg, sizeof(addr)); memcpy(addr, pMsg, sizeof(addr));
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC); DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
// note: will invoke set rand address // note: will invoke set rand address
cordio::BLE::deviceInstance().getGap().setAddress( set_random_static_address(addr);
BLEProtocol::AddressType::RANDOM_STATIC,
addr
);
} }
break; break;

View File

@ -313,10 +313,7 @@ public:
memcpy(addr, pMsg, sizeof(addr)); memcpy(addr, pMsg, sizeof(addr));
DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC); DM_RAND_ADDR_SET(addr, DM_RAND_ADDR_STATIC);
// note: will invoke set rand address // note: will invoke set rand address
cordio::BLE::deviceInstance().getGap().setAddress( set_random_static_address(addr);
BLEProtocol::AddressType::RANDOM_STATIC,
addr
);
} }
break; break;