comgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46780
This commit is contained in:
		@@ -25,6 +25,7 @@ if [ -n "$AUTOIPV6" ]; then
 | 
			
		||||
	json_add_string name "${PPP_IPPARAM}_6"
 | 
			
		||||
	json_add_string ifname "@$PPP_IPPARAM"
 | 
			
		||||
	json_add_string proto "dhcpv6"
 | 
			
		||||
	[ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
 | 
			
		||||
	json_close_object
 | 
			
		||||
	ubus call network add_dynamic "$(json_dump)"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
@@ -89,6 +89,9 @@ proto_3g_setup() {
 | 
			
		||||
		;;
 | 
			
		||||
	esac
 | 
			
		||||
 | 
			
		||||
	# Enable RFC 7278
 | 
			
		||||
	proto_export "EXTENDPREFIX=1"
 | 
			
		||||
 | 
			
		||||
	connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
 | 
			
		||||
	ppp_generic_setup "$interface" \
 | 
			
		||||
		noaccomp \
 | 
			
		||||
 
 | 
			
		||||
@@ -86,6 +86,7 @@ proto_directip_setup() {
 | 
			
		||||
	json_add_string name "${interface}_6"
 | 
			
		||||
	json_add_string ifname "@$interface"
 | 
			
		||||
	json_add_string proto "dhcpv6"
 | 
			
		||||
	json_add_string extendprefix 1
 | 
			
		||||
	ubus call network add_dynamic "$(json_dump)"
 | 
			
		||||
 | 
			
		||||
	return 0
 | 
			
		||||
 
 | 
			
		||||
@@ -131,6 +131,7 @@ proto_ncm_setup() {
 | 
			
		||||
	json_add_string name "${interface}_6"
 | 
			
		||||
	json_add_string ifname "@$interface"
 | 
			
		||||
	json_add_string proto "dhcpv6"
 | 
			
		||||
	json_add_string extendprefix 1
 | 
			
		||||
	ubus call network add_dynamic "$(json_dump)"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -137,6 +137,7 @@ _proto_mbim_setup() {
 | 
			
		||||
	json_add_string name "${interface}_6"
 | 
			
		||||
	json_add_string ifname "@$interface"
 | 
			
		||||
	json_add_string proto "dhcpv6"
 | 
			
		||||
	json_add_string extendprefix 1
 | 
			
		||||
	ubus call network add_dynamic "$(json_dump)"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -128,6 +128,7 @@ _proto_qmi_setup() {
 | 
			
		||||
	json_add_string name "${interface}_6"
 | 
			
		||||
	json_add_string ifname "@$interface"
 | 
			
		||||
	json_add_string proto "dhcpv6"
 | 
			
		||||
	json_add_string extendprefix 1
 | 
			
		||||
	json_close_object
 | 
			
		||||
	ubus call network add_dynamic "$(json_dump)"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user