Skip to content

Commit fccaa08

Browse files
Damian-Nordicnordicjm
authored andcommitted
net: openthread: rpc: don't bring interface up in IF_ENABLE command
The OpenThread RPC server starts the network interface automatically on boot because otherwise no frames are delivered to the OpenThread stack. Therefore, don't bring the interface up or down when IF_ENABLE RPC command is received. Instead, assume that IF_ENABLE command only indicates that the client has brought its interface up or down, and that it is interested (or not) in receiving all incoming packets. Signed-off-by: Damian Krolik <[email protected]>
1 parent de74230 commit fccaa08

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

subsys/net/openthread/rpc/server/ot_rpc_if.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ static void ot_rpc_cmd_if_enable(const struct nrf_rpc_group *group, struct nrf_r
9191
goto out;
9292
}
9393

94-
ret = enable ? net_if_up(iface) : net_if_down(iface);
95-
if (ret) {
96-
NET_ERR("Failed to bring interface %s", enable ? "up" : "down");
97-
goto out;
98-
}
99-
10094
if (recv_net_context != NULL) {
10195
net_context_put(recv_net_context);
10296
recv_net_context = NULL;

0 commit comments

Comments
 (0)