Commit 5ba24bbf authored by Jean Tourrilhes's avatar Jean Tourrilhes Committed by Linus Torvalds

[PATCH] : ir256_irnet_disc_ind.diff

ir256_irnet_disc_ind.diff :
 -------------------------
	o [CORRECT] Fix IrNET disconnection to not reconnect but
	  instead to hangup pppd
parent a23389e4
...@@ -206,6 +206,11 @@ ...@@ -206,6 +206,11 @@
* just after clearing it. *blush*. * just after clearing it. *blush*.
* o Use newly created irttp_listen() to fix potential crash when LAP * o Use newly created irttp_listen() to fix potential crash when LAP
* destroyed before irnet module removed. * destroyed before irnet module removed.
*
* v10 - 4.3.2 - Jean II
* o When receiving a disconnect indication, don't reenable the
* PPP Tx queue, this will trigger a reconnect. Instead, close
* the channel, which will kill pppd...
*/ */
/***************************** INCLUDES *****************************/ /***************************** INCLUDES *****************************/
......
...@@ -1122,9 +1122,10 @@ irnet_disconnect_indication(void * instance, ...@@ -1122,9 +1122,10 @@ irnet_disconnect_indication(void * instance,
irttp_close_tsap(self->tsap); irttp_close_tsap(self->tsap);
self->tsap = NULL; self->tsap = NULL;
/* Flush (drain) ppp_generic Tx queue (most often we have blocked it) */ /* Cleanup & close the PPP channel, which will kill pppd and the rest */
if(self->ppp_open) if(self->ppp_open)
ppp_output_wakeup(&self->chan); ppp_unregister_channel(&self->chan);
self->ppp_open = 0;
} }
/* Cleanup the socket in case we want to reconnect */ /* Cleanup the socket in case we want to reconnect */
self->stsap_sel = 0; self->stsap_sel = 0;
......
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