On 2017-11-27 17:53, Bjørn Mork wrote:
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
This sounds fair. :)
I'll send a V2 adding the test.
As you are the author of the fixing patch upstream:
Would you also force this attribute to "No" in case it exists and format
is detected as 802.3?
Psuedo:
if (raw-ip && file_exists)
{
set "y"
}
else if (802.3 && file_exists)
{
set "n"
}
Thanks,
Koen
_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev