atmodem: Fix reporting of CLIP

When RING & CLCC polling is used, the CLIP will not be reported
correctly if the CLIP: notification does not arrive
This commit is contained in:
Denis Kenzior 2010-12-16 17:12:38 -06:00
parent 0597b3501a
commit 3254e5e99f
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ static void clcc_poll_cb(gboolean ok, GAtResult *result, gpointer user_data)
* and we're forced to use CLCC and clip_validity
* is 1
*/
nc->clip_validity = oc->clip_validity;
if (oc->clip_validity == 1)
nc->clip_validity = oc->clip_validity;
/*
* CNAP doesn't arrive as part of CLCC, always