[HTC Sensation] frankinstine:
Im uploading the stock kernel with wifi pm fix...you need to add the code below manually to system/etc/init.d/89tweaks. This will be added on next build :)

# Wi-Fi Screen-Off Power 0 = PM_MAX, 1 = PM_FAST
echo "0" > /sys/module/bcmdhd/parameters/wifi_pm;

0 = PM_MAX and 1 = PM_FAST

the full script should look like mine below...

#!/system/bin/sh

# Sweep2Wake
# possible values:
# 0 = off
# 1 = on
# 2 = on without button backlights
SWEEP2WAKE=0

# Badass
# possible values
# 1 = performance
# 2 = balanced
# 3 = battery saving
BADASS=2

# ZRAM
ZRAM=0
ZRAM_SIZE=104857600 # 100*1024*1024 = 100MB

# TUN
TUN=0

# USB fast charge - by Yank555-lu
# 0 - disabled (default)
# 1 - substitute AC to USB charging always
# 2 - substitute AC to USB charging only if no USB peripheral is detected
FASTCHG=0

### DO NOT CHANGE ANYTHING BELLOW THIS LINE! ###

$L "setting fast charge to ${FASTCHG}"
echo ${FASTCHG} > /sys/kernel/fast_charge/force_fast_charge

$L "setting sweep2wake to ${SWEEP2WAKE}"
echo ${SWEEP2WAKE} > /sys/android_touch/sweep2wake

CUR_GOV="`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`"
echo badass > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
case ${BADASS} in
1)
$L "badass: setting performance oriented configuration"
echo "1188000" > /sys/devices/system/cpu/cpufreq/badass/two_phase_freq;
echo "1512000" > /sys/devices/system/cpu/cpufreq/badass/three_phase_freq;
echo "120" > /sys/devices/system/cpu/cpufreq/badass/busy_threshold;
echo "80" > /sys/devices/system/cpu/cpufreq/badass/busy_clr_threshold;
echo "8" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_threshold;
echo "4" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_clr_threshold;
echo "150" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_threshold;
echo "50" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_clr_threshold;
echo "300" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_clr_threshold;
echo "450" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_threshold;
;;
2)
$L "badass: setting balanced configuration"
echo "918000" > /sys/devices/system/cpu/cpufreq/badass/two_phase_freq;
echo "1188000" > /sys/devices/system/cpu/cpufreq/badass/three_phase_freq;
echo "130" > /sys/devices/system/cpu/cpufreq/badass/busy_threshold;
echo "100" > /sys/devices/system/cpu/cpufreq/badass/busy_clr_threshold;
echo "14" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_threshold;
echo "6" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_clr_threshold;
echo "260" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_threshold;
echo "180" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_clr_threshold;
echo "700" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_threshold;
echo "500" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_clr_threshold;
;;
3)
$L "badass: setting battery saving configuration"
echo "918000" > /sys/devices/system/cpu/cpufreq/badass/two_phase_freq;
echo "1188000" > /sys/devices/system/cpu/cpufreq/badass/three_phase_freq;
echo "140" > /sys/devices/system/cpu/cpufreq/badass/busy_threshold;
echo "110" > /sys/devices/system/cpu/cpufreq/badass/busy_clr_threshold;
echo "80" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_threshold;
echo "20" > /sys/devices/system/cpu/cpufreq/badass/semi_busy_clr_threshold;
echo "300" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_threshold;
echo "250" > /sys/devices/system/cpu/cpufreq/badass/gpu_semi_busy_clr_threshold;
echo "750" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_threshold;
echo "600" > /sys/devices/system/cpu/cpufreq/badass/gpu_busy_clr_threshold;
;;
esac
echo ${CUR_GOV} > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

if [ "${ZRAM}" = "1" ]; then
if [ -e /sys/block/zram0/disksize ] ; then
$L "Setting ZRAM disksize."
echo ${ZRAM_SIZE} > /sys/block/zram0/disksize

mkswap /dev/block/zram0
swapon /dev/block/zram0
$L "ZRAM activated."
fi
fi

if [ "${TUN}" = "1" ]; then
if [ -e /system/lib/modules/tun.ko ] ; then
insmod /system/lib/modules/tun.ko
$L "Inserted tun kernel module."
fi
fi

#SD Card read ahead tweak
echo "1024" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
# Wi-Fi Screen-Off Power 0 = PM_MAX, 1 = PM_FAST
echo "0" > /sys/module/bcmdhd/parameters/wifi_pm;
done;