[LG Optimus 2x] tetsuo55:
After troubleshooting wifi problems with Pengus it became clear that we're using a couple of userspace apps that have known bugs affecting wifi in various ways, performance, stability, etc...

Using an updated version of dhcpcd for example greatly improved connecting speed to my access point.

Below follows a list of userspace parts that need to be updated to fix a lot of bugs.

libnetutils

AOSP is the upstream: https://github.com/android/platform_system_core/commits/master/libnetutils

Cyanogenmod: https://github.com/CyanogenMod/android_system_core/commits/cm-10.1/libnetutils

Cyanogenmod is behind 1 and 4 ahead. Merging should not be a problem, taking CM as the base.

This one is probably the most important for me personally, libnetutils: Fix up the dhcp request arguments is going to fix my last reproducable wifi problem

These others state fixing a lot of bugs in the changelogs. This might fix the wifi not reconnecting after walking out of range bug, but i dont know which one of these would do that.

WPA supplicant:

Upstream is here: http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=shortlog

All commits after 2012-12-27, also some on that date are missing

Codeaurora is in sync with upstream up to 2012-12-27	Jouni Malinen	P2P: Document operating channel selection functions

https://www.codeaurora.org/gitweb/q...pplicant_8.git;a=shortlog;h=refs/heads/jb_2.5

Code Aurora has a second tree with different commits, I'm not sure what is going on here, maybe we can ignore this:

https://www.codeaurora.org/gitweb/q...git;a=shortlog;h=refs/heads/jb_2.2_rb2.3;pg=2

Finally this is the newest version on cyanogemod

https://github.com/CyanogenMod/android_external_wpa_supplicant_8/commits/cm-10.1

AOSP is hopelessly behind so i wont bother posting a link.

So getting the best result seems to be ussing the first codeaurora link as the base, mupdating that with the upstream and then applying the 3 patches from cyanogenmod and 2 extra patches in the 2nd tree of codeaurora.

This would fix hundreds of wifi bugs.

Dhcpcd:

Upstream is here: http://roy.marples.name/projects/dhcpcd/log/

Its ahead several versions.

AOSP is 1 change ahead of cyanogenmod, and cyanogenmod is 1 change ahead of upstream. However these changes can easily be included back in when merging with upstream

AOSP: https://github.com/android/platform_external_dhcpcd/commits/master

Merge that tree to upstream should do the trick, a lot of dhcp bugs fixed.

platform_frameworks_base / wifi / java / android / net / wifi

Upstream is AOSP: https://github.com/android/platform_frameworks_base/commits/master/wifi/java/android/net/wifi

Cyanogenmod runs in sync with AOSP until Oct 29, 2012, after that there are 7 commits, 6 are cyanognemod only and 1 is a cherry pick from AOSP.

Also Cyanogenmod is missing some commits from AOSP in between

Based on what i saw its probably best to use AOSP as a base and apply the 4 relevant cyanogenmod patches over that.

platform_frameworks_base / core / java / android / net

Upstream is AOSP https://github.com/android/platform_frameworks_base/commits/master/core/java/android/net

Cyanogenmod is behind 6 commits, but it has 2 new commits that port over some seetings from CM9 to CM10(.1). Not sure if those 2 need to be merged https://github.com/CyanogenMod/android_frameworks_base/commits/cm-10.1/core/java/android/net

Using just AOSP should do the trick here.

I'm sorry that i am not able to do these merges/updates and compiles myself. But i did try my best to find all the relevant info to reduce the workload.