diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi
index d7e5799ec..696fa2c96 100644
--- a/html/cgi-bin/pppsetup.cgi
+++ b/html/cgi-bin/pppsetup.cgi
@@ -87,6 +87,16 @@ elsif ($pppsettings{'ACTION'} eq $Lang::tr{'save'})
$errormessage = $Lang::tr{'invalid input'};
goto ERROR;
}
+ if ($pppsettings{'TYPE'} eq "qmi") {
+ # APN cannot be empty
+ if ($pppsettings{'APN'} eq "") {
+ $errormessage = $Lang::tr{'access point name is required'};
+ goto ERROR;
+ } elsif (!&General::validdomainname($pppsettings{'APN'})) {
+ $errormessage = $Lang::tr{'access point name is invalid'};
+ goto ERROR;
+ }
+ }
if ($pppsettings{'PROFILENAME'} eq '') {
$errormessage = $Lang::tr{'profile name not given'};
@@ -523,6 +533,7 @@ print <PPPoE
+
END
;
@@ -719,7 +730,8 @@ END
;
}
-print <
$Lang::tr{'idle timeout'}
@@ -738,7 +750,7 @@ print <
END
;
-print <
$Lang::tr{'persistent'}
@@ -767,6 +779,7 @@ END
END
;
+}
if ($pppsettings{'TYPE'} eq 'pptp')
{
@@ -908,6 +921,26 @@ print <
$Lang::tr{'authentication'}
+END
+;
+
+# Ask for the APN for QMI
+if ($pppsettings{'TYPE'} eq 'qmi') {
+ print <
+
+ $Lang::tr{'access point name'}
+
+
+
+
+
+
+
+END
+}
+
+print <
$Lang::tr{'username'}
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index d0cd68738..80753b841 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -129,6 +129,9 @@
'a connection with this name already exists' => 'A connection with this name already exists.',
'abort' => 'abort',
'access allowed' => 'Access allowed from:',
+'access point name' => 'Access Point Name',
+'access point name is invalid' => 'Access Point Name is invalid',
+'access point name is required' => 'Access Point Name is required',
'access refused with this oinkcode' => 'Access refused with this Oink Code',
'accounting' => 'Accounting',
'accounting user nonpdc' => 'Accounting - none PDC Mode',