xmm7modem: Change in xmm7mode plugin for multi PDP handling
PATCH 1/2 xmm7modem: Change in xmm7mode plugin for multi PDP handling
Made changes in xmm7modem plugin to allow mutiple PDP context activation and to assign correct network interface to the activated PDP context.
--- plugins/udevng.c | 2 ++ plugins/xmm7xxx.c | 12 ++++++++++++ 2 files changed, 14 insertions(+)
plugins/udevng.c +2 -0
@@ -1219,6 +1219,8 @@ static gboolean setup_xmm7xxx(struct modem_info *modem)ofono_modem_set_string (modem->modem,"Modem" , mdm);ofono_modem_set_string (modem->modem,"NetworkInterface" , net); +ofono_modem_set_string (modem->modem,"CtrlPath" ,"/USBCDC/0" ); +ofono_modem_set_string (modem->modem,"DataPath" ,"/USBHS/NCM/" );return TRUE; }
plugins/xmm7xxx.c +12 -0
@@ -1282,6 +1282,18 @@ static void xmm7xxx_post_online(struct ofono_modem *modem)if (gprs && gc)ofono_gprs_add_context (gprs, gc); + gc =ofono_gprs_context_create (modem,OFONO_VENDOR_XMM ,"ifxmodem" , + data->chat); + +if (gprs && gc) +ofono_gprs_add_context (gprs, gc); + + gc =ofono_gprs_context_create (modem,OFONO_VENDOR_XMM ,"ifxmodem" , + data->chat); + +if (gprs && gc) +ofono_gprs_add_context (gprs, gc); +ofono_ims_create (modem,"xmm7modem" , data->chat);ofono_netmon_create (modem,0 ,"xmm7modem" , data->chat); }
Signature · 1 line
1.9.1
Hi Antara,
Quoted 13 lines · Antara Borwankar
Made changes in xmm7modem plugin to allow mutiple PDP context activation and to assign correct network interface to the activated PDP context.
--- plugins/udevng.c | 2 ++ plugins/xmm7xxx.c | 12 ++++++++++++ 2 files changed, 14 insertions(+)plugins/udevng.c +0
-0
plugins/udevng.c static gboolean setup_xmm7xxx(struct modem_info *modem) · line 1223
Quoted 5 lines
plugins/udevng.c +2
-0@@ -1219,6 +1219,8 @@ static gboolean setup_xmm7xxx(struct modem_info *modem)ofono_modem_set_string (modem->modem,"Modem" , mdm);ofono_modem_set_string (modem->modem,"NetworkInterface" , net); +ofono_modem_set_string (modem->modem,"CtrlPath" ,"/USBCDC/0" ); +ofono_modem_set_string (modem->modem,"DataPath" ,"/USBHS/NCM/" );
These seem hard-coded. What happens if you plug in multiple XMM7xxx usb modems into a system?
Quoted 13 lines
plugins/udevng.c +0
-0return TRUE; }plugins/xmm7xxx.c +2
-0@@ -1282,6 +1282,18 @@ static void xmm7xxx_post_online(struct ofono_modem *modem)if (gprs && gc)ofono_gprs_add_context (gprs, gc); + gc =ofono_gprs_context_create (modem,OFONO_VENDOR_XMM ,"ifxmodem" , + data->chat);
plugins/xmm7xxx.c static void xmm7xxx_post_online(struct ofono_modem *modem) · line 1296
Quoted 10 lines
plugins/xmm7xxx.c +10
-0+ +if (gprs && gc) +ofono_gprs_add_context (gprs, gc); + + gc =ofono_gprs_context_create (modem,OFONO_VENDOR_XMM ,"ifxmodem" , + data->chat); + +if (gprs && gc) +ofono_gprs_add_context (gprs, gc); +
Okay, but how does a context driver know which interface to use? For ifxmodem we used a different DLC for each context driver for example. It is unclear how things would work under your setup?
plugins/xmm7xxx.c static void xmm7xxx_post_online(struct ofono_modem *modem) · line 1299
Quoted 4 lines
plugins/xmm7xxx.c +0
-0ofono_ims_create (modem,"xmm7modem" , data->chat);ofono_netmon_create (modem,0 ,"xmm7modem" , data->chat); }
Regards,
-Denis