service/nwm_uds: Ensure consistency regarding node IDs
Previously, when connecting, the host was using the incorrect node_id to update `node_info`. This is an attempt to fix tywald's problem with MH, reported on Discord a while ago. I'm not sure if this would actually fix that though.
This commit is contained in:
parent
76253063a3
commit
4918f86622
1 changed files with 1 additions and 3 deletions
|
@ -226,9 +226,7 @@ void NWM_UDS::HandleEAPoLPacket(const Network::WifiPacket& packet) {
|
|||
connection_status.nodes[node_id - 1] = node.network_node_id;
|
||||
connection_status.total_nodes++;
|
||||
|
||||
u8 current_nodes = network_info.total_nodes;
|
||||
node_info[current_nodes] = node;
|
||||
|
||||
node_info[node_id - 1] = node;
|
||||
network_info.total_nodes++;
|
||||
|
||||
node_map[packet.transmitter_address].node_id = node.network_node_id;
|
||||
|
|
Loading…
Reference in a new issue