fix: dail, rate_convert and uci Entry not found
This commit is contained in:
parent
40b3c450fb
commit
c8b803c41d
@ -76,7 +76,7 @@ add_speed_entry()
|
|||||||
if [ -z "$rate" ]; then
|
if [ -z "$rate" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
rate=`convert_rate $rate`
|
rate=`rate_convert $rate`
|
||||||
case $type in
|
case $type in
|
||||||
"rx")
|
"rx")
|
||||||
add_plain_info_entry "Rx Rate" "$rate" "Transmit Rate"
|
add_plain_info_entry "Rx Rate" "$rate" "Transmit Rate"
|
||||||
|
@ -3,7 +3,7 @@ source /usr/share/libubox/jshn.sh
|
|||||||
method=$1
|
method=$1
|
||||||
config_section=$2
|
config_section=$2
|
||||||
at_port=$(uci get qmodem.$config_section.at_port)
|
at_port=$(uci get qmodem.$config_section.at_port)
|
||||||
sms_at_port=$(uci get qmodem.$config_section.sms_at_port)
|
uci -q get qmodem.$config_section.sms_at_port >/dev/null && sms_at_port=$(uci get qmodem.$config_section.sms_at_port)
|
||||||
vendor=$(uci get qmodem.$config_section.manufacturer)
|
vendor=$(uci get qmodem.$config_section.manufacturer)
|
||||||
platform=$(uci get qmodem.$config_section.platform)
|
platform=$(uci get qmodem.$config_section.platform)
|
||||||
define_connect=$(uci get qmodem.$config_section.define_connect)
|
define_connect=$(uci get qmodem.$config_section.define_connect)
|
||||||
|
@ -782,15 +782,12 @@ at_dial()
|
|||||||
esac
|
esac
|
||||||
m_debug "dialing vendor:$manufacturer;platform:$platform; $cgdcont_command ; $at_command"
|
m_debug "dialing vendor:$manufacturer;platform:$platform; $cgdcont_command ; $at_command"
|
||||||
at "${at_port}" "${cgdcont_command}"
|
at "${at_port}" "${cgdcont_command}"
|
||||||
[ $mtk -eq 1 ] && sleep 1
|
|
||||||
at "$at_port" "$at_command"
|
at "$at_port" "$at_command"
|
||||||
[ $mtk -eq 1 ] && sleep 1
|
|
||||||
if [ "$driver" = "mtk_pcie" ];then
|
if [ "$driver" = "mtk_pcie" ];then
|
||||||
|
at "$at_port" "AT+CGACT=0,3"
|
||||||
mbim_port=$(echo "$at_port" | sed 's/at/mbim/g')
|
mbim_port=$(echo "$at_port" | sed 's/at/mbim/g')
|
||||||
umbim -d $mbim_port disconnect > /dev/null 2>&1
|
umbim -d $mbim_port disconnect
|
||||||
sleep 1
|
umbim -d $mbim_port connect 0
|
||||||
umbim -d $mbim_port connect > /dev/null 2>&1
|
|
||||||
sleep 1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user