This patch fix the issue in hdmi dongle JB4.2.2_1.1.0-GA release that wifi((STA+P2P)/AP) cann't be enabled properly.
In the root directory of Android Source Code, use the following command to apply the patch:
$ git apply hdmi_dongle_wifi_jb4.2.2_1.1.0.patch
This patch failed on jb4.2.2_1.1.0-ga latest source code. There are lots of missing files, is any work workaround? I followed the instructions above. Neither of hdmi_dongle_wifi patch worked.