huawei: Check for AT^RFSWITCH support to determine offline command
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Aug 2011 12:01:03 +0000 (14:01 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Aug 2011 12:01:03 +0000 (14:01 +0200)
commite0148bef6f28950a2a7be8a8eac342555e403e95
treefb84b8f32a4401ba7f95a88ec299dbe195b7d9fd
parent93186f6939072905cc928306310b75a869d3aa98
huawei: Check for AT^RFSWITCH support to determine offline command

Using AT+CFUN=7 (if supported) to switch into offline mode has a problem
with older modems. Sending AT+CFUN=7 with a data connection active has
the problem that it never terminates with OK or ERROR.

Devices that support AT^RFSWITCH are known to handle this properly. So
only when that command is supported, use AT+CFUN=7 for offline mode. If
it is not supported, then keep using AT+CFUN=5 to switch the device into
offline mode.
plugins/huawei.c