patch-2.4.18 linux/drivers/isdn/hisax/hisax_fcpcipnp.c
Next file: linux/drivers/isdn/hisax/md5sums.asc
Previous file: linux/drivers/isdn/avmb1/capi.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Mon Feb 4 17:55:44 2002
- Orig file:
linux.orig/drivers/isdn/hisax/hisax_fcpcipnp.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/isdn/hisax/hisax_fcpcipnp.c linux/drivers/isdn/hisax/hisax_fcpcipnp.c
@@ -20,6 +20,7 @@
*
* o POWER PC
* o clean up debugging
+ * o tx_skb at PH_DEACTIVATE time
*/
#include <linux/version.h>
@@ -370,9 +371,6 @@
DBG(0x40, "hdlc_fill_fifo");
- if (!skb)
- BUG();
-
if (skb->len == 0)
BUG();
@@ -581,14 +579,14 @@
adapter->write_ctrl(bcs, 5);
break;
case L1_MODE_TRANS:
- bcs->ctrl.sr.mode = HDLC_MODE_TRANS;
- adapter->write_ctrl(bcs, 5);
- bcs->ctrl.sr.cmd = HDLC_CMD_XRS;
- adapter->write_ctrl(bcs, 1);
- bcs->ctrl.sr.cmd = 0;
- break;
case L1_MODE_HDLC:
- bcs->ctrl.sr.mode = HDLC_MODE_ITF_FLG;
+ bcs->rcvidx = 0;
+ bcs->tx_cnt = 0;
+ bcs->tx_skb = NULL;
+ if (mode == L1_MODE_TRANS)
+ bcs->ctrl.sr.mode = HDLC_MODE_TRANS;
+ else
+ bcs->ctrl.sr.mode = HDLC_MODE_ITF_FLG;
adapter->write_ctrl(bcs, 5);
bcs->ctrl.sr.cmd = HDLC_CMD_XRS;
adapter->write_ctrl(bcs, 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)