Linux: Bug in the nozomi driver

If you have a nozomi based 3G PCMCIA modem (like the Option models from Movistar Spain), you’ll probably noticed that, since kernel version 2.6.29, you can no longer establish an Internet connection with it. While it properly answers to AT commands, when the pppd daemon tries to talk to the other side, it simply hangs with no response.

If this is your case, you might be interested in taking a look at this bug (13024). Or, if you’re in a hurry (and somewhat brave ;-), you might want to try something like this:

--- nozomi.c.orig 2009-12-05 22:57:43.000000000 +0100
+++ nozomi.c 2009-12-05 22:57:54.000000000 +0100
@@ -1626,10 +1626,10 @@

dc->open_ttys--;
port->count--;
- tty_port_tty_set(port, NULL);

if (port->count == 0) {
DBG1("close: %d", nport->token_dl);
+ tty_port_tty_set(port, NULL);
spin_lock_irqsave(&dc->spin_mutex, flags);
dc->last_ier &= ~(nport->token_dl);
writew(dc->last_ier, dc->reg_ier);