mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-17 18:12:10 -05:00
uqmi: fix data-format parsing
wda-get-data-format now returns an object instead of a single string. Account for this change when reading the packet data format. Suggested-by: Sebastian Ertz (https://github.com/sebastianertz) Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
9241f29c0e
commit
cd20ae44f2
@ -232,9 +232,10 @@ proto_qmi_setup() {
|
||||
# Set IP format
|
||||
uqmi -s -d "$device" -t 1000 --set-data-format 802.3 > /dev/null 2>&1
|
||||
uqmi -s -d "$device" -t 1000 --wda-set-data-format 802.3 > /dev/null 2>&1
|
||||
dataformat="$(uqmi -s -d "$device" -t 1000 --wda-get-data-format)"
|
||||
json_load "$(uqmi -s -d "$device" -t 1000 --wda-get-data-format)"
|
||||
json_get_var dataformat link-layer-protocol
|
||||
|
||||
if [ "$dataformat" = '"raw-ip"' ]; then
|
||||
if [ "$dataformat" = "raw-ip" ]; then
|
||||
|
||||
[ -f /sys/class/net/$ifname/qmi/raw_ip ] || {
|
||||
echo "Device only supports raw-ip mode but is missing this required driver attribute: /sys/class/net/$ifname/qmi/raw_ip"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user