Should assign `data->active` to 0 only.  We only 'clear' PDP context on receiving __AT+CDGCONT=&lt;cid&gt;__.