mISDN-hfcusb fix reportl1down (nt-mode).
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 6 Feb 2010 21:48:26 +0000 (22:48 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 6 Feb 2010 21:48:26 +0000 (22:48 +0100)
lfs/mISDN
src/patches/mISDN-hfcusb-reportl1down.patch [new file with mode: 0644]

index b4b5e56..b689a36 100644 (file)
--- a/lfs/mISDN
+++ b/lfs/mISDN
@@ -78,6 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_SRC)/mISDN* && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_SRC)/mISDN && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-enable_disabled_cards.patch
        cd $(DIR_SRC)/mISDN && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-hfcusb_bchannels.patch
+       cd $(DIR_SRC)/mISDN && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-hfcusb-reportl1down.patch
        cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) force
        cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) $(MAKETUNING)
        cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) \
diff --git a/src/patches/mISDN-hfcusb-reportl1down.patch b/src/patches/mISDN-hfcusb-reportl1down.patch
new file mode 100644 (file)
index 0000000..7db8c9a
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur mISDN.org/drivers/isdn/hardware/mISDN/hfcsusb.c mISDN/drivers/isdn/hardware/mISDN/hfcsusb.c
+--- mISDN.org/drivers/isdn/hardware/mISDN/hfcsusb.c    2009-09-06 17:02:14.000000000 +0200
++++ mISDN/drivers/isdn/hardware/mISDN/hfcsusb.c        2010-02-06 17:44:22.000000000 +0100
+@@ -654,6 +654,8 @@
+       case (1):
+               test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
+               test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
++              _queue_data(&dch->dev.D, PH_DEACTIVATE_IND,
++                      MISDN_ID_ANY, 0, NULL, GFP_ATOMIC);
+               hw->nt_timer = 0;
+               hw->timers &= ~NT_ACTIVATION_TIMER;
+               handle_led(hw, LED_S0_OFF);