Koen Vandeputte <koen.vandepu...@ncentric.com> writes: > @@ -99,6 +99,13 @@ proto_qmi_setup() { > > uqmi -s -d "$device" --set-data-format 802.3 > uqmi -s -d "$device" --wda-set-data-format 802.3 > + dataformat="$(uqmi -s -d "$device" --wda-get-data-format)" > + > + if [ "$dataformat" = '"raw-ip"' ]; then > + echo "Device detected which does not support 802.3 mode. > Informing driver of raw-ip only for $ifname .." > + echo "Y" > /sys/class/net/$ifname/qmi/raw_ip > + fi
It might be good to test for existence here since this attribute was added as late as Linux v4.5? Maybe provide some helpful warning in case it doesn't exist and the modem refuses to run in 802.3 mode? Bjørn _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev