@ -344,9 +344,11 @@ void NWM_UDS::HandleSecureDataPacket(const Network::WifiPacket& packet) {
// The packet wasn't addressed to us, we can only act as a router if we're the host.
// The packet wasn't addressed to us, we can only act as a router if we're the host.
// However, we might have received this packet due to a broadcast from the host, in that
// However, we might have received this packet due to a broadcast from the host, in that
// case just ignore it.
// case just ignore it.
ASSERT_MSG ( packet . destination_address = = Network : : BroadcastMac | |
if ( packet . destination_address ! = Network : : BroadcastMac & &
connection_status . status = = static_cast < u32 > ( NetworkStatus : : ConnectedAsHost ) ,
connection_status . status ! = static_cast < u32 > ( NetworkStatus : : ConnectedAsHost ) ) {
" Can't be a router if we're not a host " ) ;
LOG_ERROR ( Service_NWM , " Received packet addressed to others but we're not a host " ) ;
return ;
}
if ( connection_status . status = = static_cast < u32 > ( NetworkStatus : : ConnectedAsHost ) & &
if ( connection_status . status = = static_cast < u32 > ( NetworkStatus : : ConnectedAsHost ) & &
secure_data . dest_node_id ! = BroadcastNetworkNodeId ) {
secure_data . dest_node_id ! = BroadcastNetworkNodeId ) {