[PATCH] ppp: fix return of drop_packet for NETWORK phase

Kristen Carlson Accardi kristen at linux.intel.com
Thu Apr 29 16:25:50 PDT 2010


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

diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index f200ae7..2446d4e 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -89,7 +89,7 @@ static inline gboolean ppp_drop_packet(GAtPPP *ppp, guint16 protocol)
 	case PPP_PHASE_DEAD:
 		return TRUE;
 	case PPP_PHASE_NETWORK:
-		if (ppp->net == NULL)
+		if (ppp->net == NULL && protocol == PPP_IP_PROTO)
 			return TRUE;
 		break;
 	}
-- 
1.6.6.1



More information about the ofono mailing list