Re: querying lock facility crashes broadband modem



On Wed, 2013-11-06 at 20:26 +0100, Harald Jung wrote:
Hi,

several "older" option broadband modems crash after the lock facility  
MM_MODEM_3GPP_FACILITY_PH_SIM is queried via AT commands.
After that the USB serial ports doesn't respond anymore.
I'm shure there is a better place to fix this problem than my rude hack.

We've added a workaround for Option "nozomi" cards where I have
experienced the crash.  But they are CardBus PCI and driven by nozomi,
while yours appear to be CardBus USB driven by 'option'.

The best place for this kind of hack is in
plugins/option/mm-broadband-modem-option.c along with the nozomi one.  I
guess for now we can hardcode USB VID/PID, or maybe do it with udev
rules instead.  Care to submit a patch?

Dan

best regards
Harald

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0af0 ProdID=6600 Rev=00.01
S:  Manufacturer=Option N.V.
S:  Product=GlobeTrotter 3G+ Module
S:  SerialNumber=Serial Number
C:  #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option

--- mm-broadband-modem.c~    2013-07-19 07:41:30.000000000 +0200
+++ mm-broadband-modem.c    2013-11-06 19:22:33.000000000 +0100
@@ -3309,6 +3309,8 @@
          return;
      }

+    ctx->facilities &= ~MM_MODEM_3GPP_FACILITY_PH_SIM;
+
      /* Ignore facility locks specified by the plugins */
      if (MM_BROADBAND_MODEM 
(self)->priv->modem_3gpp_ignored_facility_locks) {
          gchar *str;
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]