be more struct in when we update what.. deal with enable or disable
actually failing.. and leaking the atchat
create netreg only after we have moved to the online state.. this
avoids crashes in case the sim is partially initialized.
Use +WIND only for the SIM ready/inserted state.. We can probably
try to use AT+CFUN=1,0 on the initial startup.. only tested with the
SL8xxx modem bank and serial.. let's see how AT+CFUN=1,1 behaves on
a true USB device..
for some strange reason, SIM_STATE_READY wants to be entered only
some 30 seconds after our wavecom modems come up. At this point,
cycling throug modem state OFFLINE would cause all existing and functional
interfaces to disappear.
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
The Wavecom WMP100 is a serial based modem, however it assumes CPIN to
be the final response. This requires some quirking in the sim driver.
Refer to commit 6d28f82dc1 for details.