All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/2] Inform Huawei modem using ACCM 0xffffffff to trasmit package. Using my Huawei modem (EM770W) if set ACCM as 0x00000000, the RXJ- event will happend, and PPP link down, when IP package transmit for a while. After I set ACCM as 0xffffffff, the RXJ- event never happen, and the modem can work quite stable. I tested the modem at China Unicom networks.
Date: Tue, 11 Jan 2011 11:11:05 -0600	[thread overview]
Message-ID: <4D2C8F29.70604@gmail.com> (raw)
In-Reply-To: <1294656017-825-3-git-send-email-martin.xu@intel.com>

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

Hi Martin,

On 01/10/2011 04:40 AM, martin.xu(a)intel.com wrote:
> From: Martin Xu <martin.xu@intel.com>
> 
> ---
>  gatchat/ppp_lcp.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 

Can you please fix up your subject?  It is simply too long.  Make the
subject short and use the description field to describe the rest.

Do you have (or can you generate) a pppdump of this happening?  What
protocol is RXJ- happening on?  Does LCP layer accept our ACCM of 0 and
then later sends an RXJ-?

> diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c
> index bc97257..181bc14 100644
> --- a/gatchat/ppp_lcp.c
> +++ b/gatchat/ppp_lcp.c
> @@ -106,7 +106,7 @@ static void lcp_generate_config_options(struct lcp_data *lcp)
>  static void lcp_reset_config_options(struct lcp_data *lcp)
>  {
>  	lcp->req_options = REQ_OPTION_ACCM;
> -	lcp->accm = 0;
> +	lcp->accm = ~0U;
>  

Strictly speaking, RFC 1662 says this about the default ACCM:

"For other types of links, the default value is 0, since there is
      no need for mapping."

In theory we fall into the 'other type' category.

>  	lcp_generate_config_options(lcp);
>  }
> @@ -153,7 +153,7 @@ static void lcp_rca(struct pppcp_data *pppcp, const struct pppcp_packet *packet)
>  		 * The Configuration Option is used to inform the peer which control
>  		 * characters MUST remain mapped when the peer sends them.
>  		 */
> -			ppp_set_recv_accm(pppcp_get_ppp(pppcp), 0);
> +			ppp_set_recv_accm(pppcp_get_ppp(pppcp), ~0U);

See my comment for the previous patch.  This part should not be needed.

>  			break;
>  		default:
>  			break;

Regards,
-Denis

  reply	other threads:[~2011-01-11 17:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 10:40 [PATCH 2/2] Inform Huawei modem using ACCM 0xffffffff to trasmit package. Using my Huawei modem (EM770W) if set ACCM as 0x00000000, the RXJ- event will happend, and PPP link down, when IP package transmit for a while. After I set ACCM as 0xffffffff, the RXJ- event never happen, and the modem can work quite stable. I tested the modem at China Unicom networks martin.xu
2011-01-11 17:11 ` Denis Kenzior [this message]
2011-01-12  1:25   ` [PATCH 2/2] Inform Huawei modem using ACCM 0xffffffff to transmit package. Using my Huawei modem (EM770W) if set ACCM as 0x00000000, the RXJ- event will happened, and PPP link down, when IP package transmit for a while. After I set ACCM as 0xffffffff Xu, Martin

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=4D2C8F29.70604@gmail.com \
    --to=denkenz@gmail.com \
    --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 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.