diff --git a/daemon/core/api/grpc/server.py b/daemon/core/api/grpc/server.py index f7d1ffa0..72e390ff 100644 --- a/daemon/core/api/grpc/server.py +++ b/daemon/core/api/grpc/server.py @@ -854,9 +854,9 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer): def SetWlanConfig(self, request, context): logging.debug("set wlan config: %s", request) session = self.get_session(request.session_id, context) - node = self.get_node(session, request.node_id, context) - session.mobility.set_model_config(node.id, BasicRangeModel.name, request.config) + session.mobility.set_model_config(request.node_id, BasicRangeModel.name, request.config) if session.state == EventTypes.RUNTIME_STATE.value: + node = self.get_node(session, request.node_id, context) node.updatemodel(request.config) return core_pb2.SetWlanConfigResponse(result=True)