summaryrefslogtreecommitdiffstats
path: root/drivers/hfpmodem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-02-20 10:28:24 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-02-20 10:28:24 -0600
commit3d592d7d46ee1f718c2c3db41546fe74806573db (patch)
treeb2845caa43fbdfec0dfe40d8863f6b0459d001f4 /drivers/hfpmodem
parente2398b4dfaeaa62bb7b7ab81a74d860953da76c1 (diff)
downloadofono-3d592d7d46ee1f718c2c3db41546fe74806573db.tar.bz2
hfpmodem: Make sure to set the prefix properly
ofonod[1239]: > AT+COPS=3,0\r ofonod[1239]: < \r\n+BCS:2\r\n ofonod[1239]: < \r\nOK\r\n
Diffstat (limited to 'drivers/hfpmodem')
-rw-r--r--drivers/hfpmodem/network-registration.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hfpmodem/network-registration.c b/drivers/hfpmodem/network-registration.c
index 272d5b44..22ce664a 100644
--- a/drivers/hfpmodem/network-registration.c
+++ b/drivers/hfpmodem/network-registration.c
@@ -46,6 +46,7 @@
static const char *cops_prefix[] = { "+COPS:", NULL };
static const char *cind_prefix[] = { "+CIND:", NULL };
+static const char *none_prefix[] = { NULL };
struct netreg_data {
GAtChat *chat;
@@ -263,7 +264,7 @@ static void hfp_current_operator(struct ofono_netreg *netreg,
cbd->user = netreg;
- ok = g_at_chat_send(nd->chat, "AT+COPS=3,0", NULL,
+ ok = g_at_chat_send(nd->chat, "AT+COPS=3,0", none_prefix,
NULL, cbd, NULL);
if (ok)