init.qcom.usb.sh: Configure RNDIS to be identified by Windows
Anorak uses RNDIS Sw path and descriptors indicating the tethering
class, subclass and protcol need to be configured properly to be
able to be identified by Windows OS.
Change-Id: I5b6ba48f1f179b4a1c83c9d429d1b264230d1a2c
diff --git a/etc/init.qcom.usb.sh b/etc/init.qcom.usb.sh
index 7a9e970..2c8492b 100644
--- a/etc/init.qcom.usb.sh
+++ b/etc/init.qcom.usb.sh
@@ -223,3 +223,16 @@
fi
;;
esac
+
+#Configure class, subclass, protocol for RNDIS SW path to be detected by Windows
+case "$target" in
+"anorak")
+ if [ -d /config/usb_gadget/g1/functions/rndis.rndis ]; then
+ cd /config/usb_gadget/g1/functions/rndis.rndis
+
+ echo ef > class
+ echo 4 > subclass
+ echo 1 > protocol
+ fi
+ ;;
+esac