Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH_v3] huaweicdma: Create first draft for plugin huaweicdma
Date: Tue, 12 Jul 2011 14:06:25 +0200	[thread overview]
Message-ID: <1310472386.21109.94.camel@aeonflux> (raw)
In-Reply-To: <1310471261-22230-1-git-send-email-guillaume.zajac@linux.intel.com>

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

Hi Guillaume,

> 	- Remove Nokia copyright.
> 	- Remove cdma voicecall for the moment.
> 	- Add debug print into post_sim pre_sim.
> 	- use GSM permissive synthax for the moment.

the nokiacdma.c was actually the worst example to derive this one from.
I fixed this all up for you now and applied the patch.

> +/*
> + * This file is part of oFono - Open Source Telephony

I missed this part, but all the Nokia copyright headers are wrongly
formatted. They should have been fixed a long time ago.

> +#include <stdlib.h>
> +#include <errno.h>
> +#include <termios.h>
> +#include <string.h>
> +#include <unistd.h>
> +#include <sys/types.h>
> +#include <sys/stat.h>
> +#include <fcntl.h>

This list of includes is useless. Big copy and paste around.

> +#include <glib.h>
> +#include <gatchat.h>
> +#include <gattty.h>
> +
> +#define OFONO_API_SUBJECT_TO_CHANGE
> +#include <ofono/plugin.h>
> +#include <ofono/log.h>
> +#include <ofono/modem.h>
> +
> +#include <drivers/atmodem/atutil.h>
> +#include <ofono/devinfo.h>
> +#include <ofono/cdma-connman.h>
> +
> +#include "common.h"

What is this for?

> +	/*
> +	 * TODO: Will need a CDMA AT syntax parser later.
> +	 * Using GSM permissive for now.
> +	 */
> +	syntax = g_at_syntax_new_gsm_permissive();

The comment is rather pointless until we really know what is going with
CDMA modems. So I removed it.

However you have to keep in mind that you need to turn echo support off
before you can use the permissive syntax parser.

Regards

Marcel



  reply	other threads:[~2011-07-12 12:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12 11:47 [PATCH_v3] huaweicdma: Create first draft for plugin huaweicdma Guillaume Zajac
2011-07-12 12:06 ` Marcel Holtmann [this message]
2011-07-12 12:36   ` Guillaume Zajac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310472386.21109.94.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox