Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit 10aed12

Browse files
committed
uqmi: add support for raw_ip only modems
Signed-off-by: Bjørn Mork <bjorn@mork.no>
1 parent 7c9c9fd commit 10aed12

File tree

1 file changed

+8
-0
lines changed
  • package/network/utils/uqmi/files/lib/netifd/proto

1 file changed

+8
-0
lines changed

package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ proto_qmi_setup() {
100100
uqmi -s -d "$device" --wda-set-data-format 802.3
101101
uqmi -s -d "$device" --sync
102102

103+
if uqmi -s -d "$device" --wda-get-data-format | grep raw > /dev/null; then
104+
if [ ! -w "/sys/class/net/$ifname/qmi/raw_ip" ]; then
105+
echo "Unable to set data format and raw_ip unsupported"
106+
return 1
107+
fi
108+
echo Y >"/sys/class/net/$ifname/qmi/raw_ip"
109+
fi
110+
103111
echo "Waiting for network registration"
104112
while uqmi -s -d "$device" --get-serving-system | grep '"searching"' > /dev/null; do
105113
sleep 5;

0 commit comments

Comments
 (0)