[tcat] implement tcat advertisement (#9858)

Commit introduces implementation of TCAT advertisement over BLE
compliant with Thread 1.3.1 specification.
This commit is contained in:
Przemysław Bida
2024-06-06 11:26:59 -07:00
committed by GitHub
parent cdeb02b035
commit 398df8c408
16 changed files with 587 additions and 50 deletions
+3 -2
View File
@@ -122,10 +122,11 @@ void TestTcat(void)
otBleSecureSetSslAuthMode(instance, true);
// Validate BLE secure and Tcat start APIs
VerifyOrQuit(otBleSecureTcatStart(instance, &vendorInfo, nullptr) == kErrorInvalidState);
SuccessOrQuit(otBleSecureSetTcatVendorInfo(instance, &vendorInfo));
VerifyOrQuit(otBleSecureTcatStart(instance, nullptr) == kErrorInvalidState);
SuccessOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, &ble));
VerifyOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, nullptr) == kErrorAlready);
SuccessOrQuit(otBleSecureTcatStart(instance, &vendorInfo, nullptr));
SuccessOrQuit(otBleSecureTcatStart(instance, nullptr));
// Validate connection callbacks when platform informs that peer has connected/disconnected
otPlatBleGapOnConnected(instance, kConnectionId);