daemon: fixed issue when setting default wlan config for a wlan node, using the session id instead of the node id

This commit is contained in:
Blake Harnden 2022-12-05 10:26:46 -08:00
parent b430de226d
commit a787f46719
2 changed files with 2 additions and 7 deletions

View file

@ -518,7 +518,7 @@ class Session:
self.set_node_pos(node, position.x, position.y)
# setup default wlan
if isinstance(node, WlanNode):
self.mobility.set_model_config(self.id, BasicRangeModel.name)
self.mobility.set_model_config(node.id, BasicRangeModel.name)
# boot core nodes after runtime
is_runtime = self.state == EventTypes.RUNTIME_STATE
if is_runtime and isinstance(node, CoreNode):