[LEDE-DEV] [PATCH] uqmi: fix raw-ip mode for newer lte modems

Bjørn Mork bjorn at mork.no
Mon Nov 27 08:53:39 PST 2017


Koen Vandeputte <koen.vandeputte at 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



More information about the Lede-dev mailing list