All of lore.kernel.org
 help / color / mirror / Atom feed
* [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.
@ 2011-01-10 10:40 martin.xu
  2011-01-11 17:11 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: martin.xu @ 2011-01-10 10:40 UTC (permalink / raw)
  To: ofono

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

From: Martin Xu <martin.xu@intel.com>

---
 gatchat/ppp_lcp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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;
 
 	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);
 			break;
 		default:
 			break;
-- 
1.7.2.2


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

end of thread, other threads:[~2011-01-12  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.