atmodem: Add support for handling GPRS context vendor quirks
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Aug 2011 09:17:55 +0000 (11:17 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Aug 2011 15:59:55 +0000 (17:59 +0200)
drivers/atmodem/gprs-context.c

index ae6f06a..c5dabf2 100644 (file)
@@ -41,6 +41,7 @@
 #include "gatppp.h"
 
 #include "atmodem.h"
+#include "vendor.h"
 
 #define TUN_SYSFS_DIR "/sys/devices/virtual/misc/tun"
 
@@ -64,6 +65,7 @@ struct gprs_context_data {
        enum state state;
        ofono_gprs_context_cb_t cb;
        void *cb_data;                                  /* Callback data */
+       unsigned int vendor;
 };
 
 static void ppp_debug(const char *str, void *data)
@@ -321,6 +323,7 @@ static int at_gprs_context_probe(struct ofono_gprs_context *gc,
                return -ENOMEM;
 
        gcd->chat = g_at_chat_clone(chat);
+       gcd->vendor = vendor;
 
        ofono_gprs_context_set_data(gc, gcd);