All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hfpmodem: hfpmodem.c make sure to use none_prefix
@ 2015-03-24 16:04 Kuba Pawlak
  2015-03-24 16:04 ` [PATCH 2/2] hfpmodem: slc.c: " Kuba Pawlak
  2015-03-24 16:05 ` [PATCH 1/2] hfpmodem: hfpmodem.c " Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Kuba Pawlak @ 2015-03-24 16:04 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]

---
 drivers/hfpmodem/handsfree.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/hfpmodem/handsfree.c b/drivers/hfpmodem/handsfree.c
index d5162f2..6e8c4d3 100644
--- a/drivers/hfpmodem/handsfree.c
+++ b/drivers/hfpmodem/handsfree.c
@@ -45,6 +45,7 @@
 
 static const char *binp_prefix[] = { "+BINP:", NULL };
 static const char *bvra_prefix[] = { "+BVRA:", NULL };
+static const char *none_prefix[] = { NULL };
 
 struct hf_data {
 	GAtChat *chat;
@@ -197,7 +198,7 @@ static void hfp_cnum_query(struct ofono_handsfree *hf,
 	struct hf_data *hd = ofono_handsfree_get_data(hf);
 	struct cb_data *cbd = cb_data_new(cb, data);
 
-	if (g_at_chat_send(hd->chat, "AT+CNUM", NULL,
+	if (g_at_chat_send(hd->chat, "AT+CNUM", none_prefix,
 					cnum_query_cb, cbd, g_free) > 0)
 		return;
 
@@ -382,8 +383,8 @@ static void hfp_disable_nrec(struct ofono_handsfree *hf,
 	struct cb_data *cbd = cb_data_new(cb, data);
 	const char *buf = "AT+NREC=0";
 
-	if (g_at_chat_send(hd->chat, buf, NULL, hf_generic_set_cb,
-							cbd, g_free) > 0)
+	if (g_at_chat_send(hd->chat, buf, none_prefix,
+				hf_generic_set_cb, cbd, g_free) > 0)
 		return;
 
 	g_free(cbd);
@@ -401,8 +402,8 @@ static void hfp_hf_indicator(struct ofono_handsfree *hf,
 
 	snprintf(buf, sizeof(buf), "AT+BIEV=%u,%u", indicator, value);
 
-	if (g_at_chat_send(hd->chat, buf, NULL, hf_generic_set_cb,
-							cbd, g_free) > 0)
+	if (g_at_chat_send(hd->chat, buf, none_prefix,
+				hf_generic_set_cb, cbd, g_free) > 0)
 		return;
 
 	g_free(cbd);
-- 
1.7.11.7

Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] hfpmodem: slc.c: make sure to use none_prefix
  2015-03-24 16:04 [PATCH 1/2] hfpmodem: hfpmodem.c make sure to use none_prefix Kuba Pawlak
@ 2015-03-24 16:04 ` Kuba Pawlak
  2015-03-24 16:05 ` [PATCH 1/2] hfpmodem: hfpmodem.c " Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Kuba Pawlak @ 2015-03-24 16:04 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

---
 drivers/hfpmodem/slc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/hfpmodem/slc.c b/drivers/hfpmodem/slc.c
index 14e56af..8e62519 100644
--- a/drivers/hfpmodem/slc.c
+++ b/drivers/hfpmodem/slc.c
@@ -113,7 +113,8 @@ static void slc_established(struct slc_establish_data *sed)
 {
 	struct hfp_slc_info *info = sed->info;
 
-	g_at_chat_send(info->chat, "AT+CMEE=1", NULL, NULL, NULL, NULL);
+	g_at_chat_send(info->chat, "AT+CMEE=1", none_prefix,
+			NULL, NULL, NULL);
 	sed->connect_cb(sed->userdata);
 }
 
@@ -434,8 +435,8 @@ static void brsf_cb(gboolean ok, GAtResult *result, gpointer user_data)
 			sprintf(str, "AT+BAC=%d", HFP_CODEC_CVSD);
 
 		slc_establish_data_ref(sed);
-		g_at_chat_send(info->chat, str, NULL, bac_cb, sed,
-						slc_establish_data_unref);
+		g_at_chat_send(info->chat, str, none_prefix, bac_cb,
+				sed, slc_establish_data_unref);
 		return;
 	}
 
-- 
1.7.11.7

Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] hfpmodem: hfpmodem.c make sure to use none_prefix
  2015-03-24 16:04 [PATCH 1/2] hfpmodem: hfpmodem.c make sure to use none_prefix Kuba Pawlak
  2015-03-24 16:04 ` [PATCH 2/2] hfpmodem: slc.c: " Kuba Pawlak
@ 2015-03-24 16:05 ` Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2015-03-24 16:05 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

Hi Kuba,

On 03/24/2015 11:04 AM, Kuba Pawlak wrote:
> ---
>   drivers/hfpmodem/handsfree.c | 11 ++++++-----
>   1 file changed, 6 insertions(+), 5 deletions(-)
>

Both patches have been applied.  Much appreciated.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-24 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-24 16:04 [PATCH 1/2] hfpmodem: hfpmodem.c make sure to use none_prefix Kuba Pawlak
2015-03-24 16:04 ` [PATCH 2/2] hfpmodem: slc.c: " Kuba Pawlak
2015-03-24 16:05 ` [PATCH 1/2] hfpmodem: hfpmodem.c " Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.