[AT&T Samsung Galaxy S II SGH-I777] rubbachicken:
/system/bin/

-------------------

bcm4330B1.hcd

replace this file with BCM4330B1_002.001.003.0419.0516.hcd (Found in several previous roms, I pulled it from Shostock1.9.4)

-Don't use BCM4330B1_002.001.003.0128.0162.hcd, I was not able to compare the files but the bcm4330B1.hcd looks like a renamed 0162.hcd (Same file size, id idn't bother to look too close)

/system/etc/wifi/wpa_supplicant.conf

-------------------

update_config=1

ctrl_interface=wlan0

eapol_version=1

ap_scan=1

fast_reauth=1

p2p_listen_reg_class=81

p2p_listen_channel=1

p2p_oper_reg_class=115

p2p_oper_channel=48

Making those changes fixed the constant drop that i was getting from this;

I/wpa_supplicant(4184): wlan0: CTRL-EVENT-DISCONNECTED

--- I connected the events I guess...

03-17 12:06:33.610: D/ConnectivityService(1814): ConnectivityChange for WIFI: CONNECTED/CONNECTED

03-17 12:06:34.545: D/ConnectivityService(1814): NetTransition Wakelock for WifiStateMachine released by timeout

03-17 12:06:36.810: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

03-17 12:06:36.920: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

03-17 12:07:24.485: D/ConnectivityService(1814): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

03-17 12:07:24.605: D/ConnectivityService(1814): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

03-17 12:07:33.450: D/ConnectivityService(1814): ConnectivityChange for WIFI: CONNECTED/CONNECTED

03-17 12:07:33.485: D/ConnectivityService(1814): ConnectivityChange for WIFI: CONNECTED/CONNECTED

03-17 12:07:34.455: D/ConnectivityService(1814): NetTransition Wakelock for WifiStateMachine released by timeout

03-17 12:07:36.615: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

03-17 12:07:36.755: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

03-17 12:15:10.499: D/ConnectivityService(1814): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

03-17 12:15:10.625: D/ConnectivityService(1814): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

03-17 12:15:18.825: D/ConnectivityService(1814): ConnectivityChange for WIFI: CONNECTED/CONNECTED

03-17 12:15:18.865: D/ConnectivityService(1814): ConnectivityChange for WIFI: CONNECTED/CONNECTED

03-17 12:15:19.825: D/ConnectivityService(1814): NetTransition Wakelock for WifiStateMachine released by timeout

03-17 12:15:22.135: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

03-17 12:15:22.220: D/PicasaSyncManager(2655): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true

I think the remaining wifi drops maybe because of an undefined wpasupplicant in /etc/wifi

the primary problem was with the wpa_supplicant.conf not listing a ctrl_interface