Commit c9a9c0a5 authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Christophe Massiot

Fix endless looping with PowerCAM PRO due to protocol violation.

parent 544a64a4
......@@ -1812,7 +1812,7 @@ static void MMIOpen( access_t *p_access, int i_session_id )
/*****************************************************************************
* InitSlot: Open the transport layer
*****************************************************************************/
#define MAX_TC_RETRIES 20
#define MAX_TC_RETRIES 5
static int InitSlot( access_t * p_access, int i_slot )
{
......@@ -1826,7 +1826,7 @@ static int InitSlot( access_t * p_access, int i_slot )
return -1;
}
/* This is out of the spec */
/* Wait for T_CTC_REPLY */
for ( i = 0; i < MAX_TC_RETRIES; i++ )
{
uint8_t i_tag;
......@@ -1836,15 +1836,6 @@ static int InitSlot( access_t * p_access, int i_slot )
pb_active_slot[i_slot] = true;
break;
}
if ( TPDUSend( p_access, i_slot, T_CREATE_TC, NULL, 0 )
!= 0 )
{
msg_Err( p_access,
"en50221_Init: couldn't send TPDU on slot %d",
i_slot );
continue;
}
}
if ( pb_active_slot[i_slot] )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment