aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-09 04:09:20 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-09 04:09:20 +0000
commit38ec04fe6d851c138c2625ea33315bd88f4024ab (patch)
tree0cf0ddf97594674e8c53051e1293c723bb00950c
parent24057ae74a6a1a974112a0f77d003d204e671f1f (diff)
parent9597e5f733f7d6aa3f9e1a0b17e14f2b3a1958db (diff)
downloadot-br-posix-android14-qpr2-s2-release.tar.gz
Change-Id: I173caaf0c947a323b657c5e69946a96bef660fc2
-rw-r--r--src/android/otdaemon_server.cpp7
-rw-r--r--src/android/otdaemon_server.hpp4
2 files changed, 5 insertions, 6 deletions
diff --git a/src/android/otdaemon_server.cpp b/src/android/otdaemon_server.cpp
index f3e0cab8..cf67016d 100644
--- a/src/android/otdaemon_server.cpp
+++ b/src/android/otdaemon_server.cpp
@@ -249,7 +249,7 @@ exit:
}
}
-void OtDaemonServer::HandleBackboneMulticastListenerEvent(void *aBinderServer,
+void OtDaemonServer::HandleBackboneMulticastListenerEvent(void *aBinderServer,
otBackboneRouterMulticastListenerEvent aEvent,
const otIp6Address *aAddress)
{
@@ -590,13 +590,12 @@ Status OtDaemonServer::configureBorderRouter(const BorderRouterConfigurationParc
{
if (aBorderRouterConfiguration.isBorderRoutingEnabled)
{
+ int infraIfIndex = if_nametoindex(aBorderRouterConfiguration.infraInterfaceName.c_str());
SuccessOrExit(error = otBorderRoutingSetEnabled(GetOtInstance(), false /* aEnabled */),
message = "failed to disable border routing");
otSysSetInfraNetif(aBorderRouterConfiguration.infraInterfaceName.c_str(), icmp6SocketFd);
icmp6SocketFd = -1;
- SuccessOrExit(error = otBorderRoutingInit(
- GetOtInstance(), if_nametoindex(aBorderRouterConfiguration.infraInterfaceName.c_str()),
- false /* aInfraIfIsRunning */),
+ SuccessOrExit(error = otBorderRoutingInit(GetOtInstance(), infraIfIndex, otSysInfraIfIsRunning()),
message = "failed to initialize border routing");
SuccessOrExit(error = otBorderRoutingSetEnabled(GetOtInstance(), true /* aEnabled */),
message = "failed to enable border routing");
diff --git a/src/android/otdaemon_server.hpp b/src/android/otdaemon_server.hpp
index 595e0b4c..387a37b1 100644
--- a/src/android/otdaemon_server.hpp
+++ b/src/android/otdaemon_server.hpp
@@ -106,7 +106,7 @@ private:
static void ReceiveCallback(otMessage *aMessage, void *aBinderServer);
void ReceiveCallback(otMessage *aMessage);
void TransmitCallback(void);
- static void HandleBackboneMulticastListenerEvent(void *aBinderServer,
+ static void HandleBackboneMulticastListenerEvent(void *aBinderServer,
otBackboneRouterMulticastListenerEvent aEvent,
const otIp6Address *aAddress);
@@ -125,4 +125,4 @@ private:
} // namespace Android
} // namespace otbr
-#endif // OTBR_ANDROID_BINDER_SERVER_HPP_ \ No newline at end of file
+#endif // OTBR_ANDROID_BINDER_SERVER_HPP_