The gadget level completion function was getting called for the ACK packet
instead of the data packet, making it impossible to read the data from the host.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Adding a new module that tracks the number of bytes/packets transfered by a network interface, even after the interface has been removed.
This is relevant to track the total data usage in mobile devices whose interfaces are added and removed quite frequently (WiFi, Bluetooth, 3G,..).
Monitoring is done only for devices that are configured with a valid IP address (check to exclude virtual/loopback/tunnel interfaces).
Change-Id: I8ac642af1990433ebd0784e8dbd72bf0714b5bf6
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
Included a little modification for the out-of-date HD2 .32 kernel.
Based on Trilu's patch http://forum.xda-developers.com/showthread.php?t=1007774
Removed some debug and unnecessary code, and added some missing code by tytung.
Thanks to Trilu for finally fixing the BT problem.
Thanks to Charansingh for the work he has done on the BT problem.
- Added button backlight control via panel backlight (button backlight will go on/off with screen backlight)
- To enable/disable this just echo 0 or 1 to /sys/devices/platform/htcleo-backlight/btn_control
( echo 0 > /sys/devices/platform/htcleo-backlight/btn_control )
- By default button control is enabled
- remove all lights.*.so files from /system/lib/hw (backup if u want) and replace with lights.qsd8k.so from Bravo ROM or download from http://www.multiupload.com/2M5T02M3TU
- if button backlight don’t work: turn screen on, press any key and put phone under bright light ( this should activate light sensor and backlight)
Conflicts:
arch/arm/configs/htcleo_defconfig
arch/arm/mach-msm/board-htcleo.h
Add commit from 654ce990ab
The mmap(2) functionality of kgsl is no longer used, and it had a
bug that would crash the kernel when mmap(2) was called with
"odd" parameters. So we have removed the mmap functionality.
If for some reason in the future you want to resurrect this,
make sure memdesc is properly initialized in all paths through
the kgsl_mmap() routine.
Signed-off-by: Ken Sumrall <ken@android.com>