diff options
author | David Turner <> | 2009-04-15 06:50:16 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-15 06:50:16 -0700 |
commit | fbcbf4201b9b56b72e9a06d292ae94360dd66b9e (patch) | |
tree | 607c852be25de73bc0a7e65e3b7455984d319cca /android | |
parent | 791d86195fedca3a8cba5d7fa3e3610302361a78 (diff) | |
download | external_qemu-fbcbf4201b9b56b72e9a06d292ae94360dd66b9e.zip external_qemu-fbcbf4201b9b56b72e9a06d292ae94360dd66b9e.tar.gz external_qemu-fbcbf4201b9b56b72e9a06d292ae94360dd66b9e.tar.bz2 |
AI 146315: am: CL 146314 modify GSM emulation to accomodate 1.0 and 1.1 system images.
without this, networking doesn't work well when using the 1.1 add-on with
the cupcake sdk
Original author: digit
Merged from: //branches/cupcake/...
Automated import of CL 146315
Diffstat (limited to 'android')
-rw-r--r-- | android/hw-qemud.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/hw-qemud.c b/android/hw-qemud.c index cc28e63..ba4ab42 100644 --- a/android/hw-qemud.c +++ b/android/hw-qemud.c @@ -46,6 +46,11 @@ */ #define SUPPORT_LEGACY_QEMUD 1 +#if SUPPORT_LEGACY_QEMUD +#include "telephony/android_modem.h" +#include "telephony/modem_driver.h" +#endif + /* * This implements support for the 'qemud' multiplexing communication * channel between clients running in the emulated system and 'services' @@ -257,6 +262,8 @@ qemud_serial_read( void* opaque, const uint8_t* from, int len ) if ( !memcmp(s->data0, "001200", 6) ) { D("%s: legacy qemud detected.", __FUNCTION__); s->version = QEMUD_VERSION_LEGACY; + /* tell the modem to use legacy emulation mode */ + amodem_set_legacy(android_modem); } else { D("%s: normal qemud detected.", __FUNCTION__); s->version = QEMUD_VERSION_NORMAL; |