From 1f3653ebde0012ee8ecac5114a4bd497f2f284e3 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Tue, 20 May 2014 23:52:30 +0200 Subject: [PATCH] init.rc: Adding setprop entries for tcp delayed ack for Wifi & LTE TCP delayed ack settings are expected to be modified when the Wifi or LTE connection is established and the configurations will be reverted back when the Wifi connection is terminated. The change also modifies the /sys/kernel/ipv4/tcp_delack_seg and /sys/kernel/ipv4/tcp_use_useconfig file owner to "system" Requires: https://www.codeaurora.org/cgit/quic/la/kernel/msm/commit/?h=kk_2.7-stable&id=73989a4b345bba0efca96cc86b0258e83884ff63 Change-Id: I008e36931752d6db29454c5ce41e3cfe19b15ecb --- prebuilt/common/etc/init.local.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index 3b0e14b8..b0696e75 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -101,6 +101,16 @@ on boot chown system system /dev/cpuctl/apps/cpu.notify_on_migrate chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate + # Define TCP delayed ack settings for WiFi & LTE + chown system system /sys/kernel/ipv4/tcp_delack_seg + chown system system /sys/kernel/ipv4/tcp_use_userconfig + setprop net.tcp.delack.default 1 + setprop net.tcp.delack.wifi 20 + setprop net.tcp.delack.lte 8 + setprop net.tcp.usercfg.default 0 + setprop net.tcp.usercfg.wifi 1 + setprop net.tcp.usercfg.lte 1 + # adb over network on property:service.adb.tcp.port=5555 stop adbd