huaweimodem: Add some more GPRS context debug statements

This commit is contained in:
Marcel Holtmann 2010-10-27 01:27:17 +02:00
parent 21a7e11e7f
commit 52f3c3462b
1 changed files with 4 additions and 0 deletions

View File

@ -368,6 +368,8 @@ static int huawei_gprs_context_probe(struct ofono_gprs_context *gc,
struct gprs_context_data *gcd;
struct stat st;
DBG("");
if (stat(TUN_SYSFS_DIR, &st) < 0) {
ofono_error("Missing support for TUN/TAP devices");
return -ENODEV;
@ -388,6 +390,8 @@ static void huawei_gprs_context_remove(struct ofono_gprs_context *gc)
{
struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc);
DBG("");
ofono_gprs_context_set_data(gc, NULL);
g_at_chat_unref(gcd->chat);