[G1 Q&A, Help & Troubleshooting] clueless_user:
There is a $100 bounty on this question. I will pay the xda member who assists me in getting to a solution through paypal. Even though I am a student I am offering this bounty because without resolving this issue my phone is nothing more than a paper weight (I use my SIM elsewhere). (A generous member may request to be paid less, but that is not what I expect). That must tell you how desperate I am to get this work.

Here's my issue:

I have a HTC G1 with Cyanogen Mod 4.2.1 which I am trying to connect with Villanova University's wi-fi network. It is a 802.1x, PEAP, MSCHAPv2 network.

Here are the university's official instructions for configuring a PC http://www.villanova.edu/unit/support/wireless/configuration/ and a MAC http://www.villanova.edu/unit/support/wireless/mac.htm. A quick glance there should tell you about the network we are trying to setup.

Here are the things I have tried

0. Searching on google, android forums, xda, everywhere

1. Asking my school's tech support, computer science professor's, other students

2. I have read up the man pages and supporting documentation for wpa_supplicant.conf

3.

I went to Settings > Wifi > Add Wi-fi Network. And entered:

SSID: Villanova

Security: IEEE 802.1X

EAP Method: PEAP

Phase 2 authentication: MSCHAP2

identity: <username>

wireless password: <password>

The wpa_supplicant.conf generated was:

Here is logact *.W when I am toggling on and off the wi-fi. This section keeps repeating itself indefinitely and never connects.

Interesting first part of the log

D/SettingsWifiEnabler( 382): Received wifi state changed from Enabling to Enabl
ed
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 412): Trying to associate with 06:01:0e:e9:fc:ad (SSID='Villa
nova' freq=2412 MHz)
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=3
V/WifiMonitor( 98): Event [Trying to associate with 06:01:0e:e9:fc:ad (SSID='V
illanova' freq=2412 MHz)]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
V/WifiStateTracker( 98): Changing supplicant state: SCANNING ==> ASSOCIATING
W/wpa_supplicant( 412): Failed to initiate AP scan.
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 412): Trying to associate with 06:0b:0e:e9:fc:ad (SSID='Villa
nova' freq=2462 MHz)
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=0 state=3
V/WifiMonitor( 98): Event [Trying to associate with 06:0b:0e:e9:fc:ad (SSID='V
illanova' freq=2462 MHz)]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=0 state=3]
V/WifiStateTracker( 98): Changing supplicant state: ASSOCIATING ==> ASSOCIATIN
G
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
D/dalvikvm( 382): GC(0) freed 11647 objects / 588296 bytes in 98ms
I/wpa_supplicant( 412): Authentication with 06:0b:0e:e9:fc:ad timed out.
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=0 state=0
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=2
V/WifiMonitor( 98): Event [Authentication with 06:0b:0e:e9:fc:ad timed out.]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=0 state=0]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 98): Changing supplicant state: ASSOCIATING ==> DISCONNECT
ED
V/WifiStateTracker( 98): Changing supplicant state: DISCONNECTED ==> SCANNING
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 412): Trying to associate with 06:06:0e:e9:fc:ad (SSID='Villa
nova' freq=2437 MHz)
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=3
V/WifiMonitor( 98): Event [Trying to associate with 06:06:0e:e9:fc:ad (SSID='V
illanova' freq=2437 MHz)]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
V/WifiStateTracker( 98): Changing supplicant state: SCANNING ==> ASSOCIATING
D/WifiStateTracker( 98): Deconfiguring interface and stopping DHCP
D/SettingsWifiEnabler( 382): Received network state changed to NetworkInfo: typ
e: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none
), roaming: false, failover: false, isAvailable: true
I/wpa_supplicant( 412): Authentication with 06:06:0e:e9:fc:ad timed out.
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=0 state=0
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=2
V/WifiMonitor( 98): Event [Authentication with 06:06:0e:e9:fc:ad timed out.]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=0 state=0]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 98): Changing supplicant state: ASSOCIATING ==> DISCONNECT
ED
V/WifiStateTracker( 98): Changing supplicant state: DISCONNECTED ==> SCANNING
I/wpa_supplicant( 412): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 412): Trying to associate with 06:06:0e:e9:fc:ad (SSID='Villa
nova' freq=2437 MHz)
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=3
V/WifiMonitor( 98): Event [Trying to associate with 06:06:0e:e9:fc:ad (SSID='V
illanova' freq=2437 MHz)]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
V/WifiStateTracker( 98): Changing supplicant state: SCANNING ==> ASSOCIATING
D/WifiStateTracker( 98): Deconfiguring interface and stopping DHCP
D/SettingsWifiEnabler( 382): Received network state changed to NetworkInfo: typ
e: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none
), roaming: false, failover: false, isAvailable: true
I/wpa_supplicant( 412): Authentication with 06:06:0e:e9:fc:ad timed out.
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=0 state=0
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=2
V/WifiMonitor( 98): Event [Authentication with 06:06:0e:e9:fc:ad timed out.]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=0 state=0]
V/WifiMonitor( 98): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 98): Changing supplicant state: ASSOCIATING ==> DISCONNECT
ED
V/WifiStateTracker( 98): Changing supplicant state: DISCONNECTED ==> SCANNING
I/wpa_supplicant( 412): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 412): CTRL-EVENT-TERMINATING - signal 0 received
I/wpa_supplicant( 412): CTRL-EVENT-STATE-CHANGE id=-1 state=0
V/WifiMonitor( 98): Event [CTRL-EVENT-TERMINATING - signal 15 received]
V/WifiStateTracker( 98): Connection to supplicant lost
D/SettingsWifiEnabler( 382): Received wifi state changed from Enabled to Disabl
ing
E/vold ( 71): Unable to lookup media '/devices/platform/msm_sdcc.1/mmc_host
/mmc0/mmc0:0001'
E/vold ( 71): Error processing uevent msg (Unknown error: 0)
D/SettingsWifiEnabler( 382): Received wifi state changed from Disabling to Disa
bled

4. Here is the wpa_supplicant.conf that should work. Taken from:

http://hostap.epitest.fi/wpa_supplicant/ under Configuration file section. (Direct link to text file: http://hostap.epitest.fi/gitweb/git...lain;f=wpa_supplicant/examples/ieee8021x.conf)

4.1 I have manually changed the wpa_supplicant.conf to the above configuration and it didn't connect. Here is the logcat (it is basically the same as before):

4.2 I have tried commenting out and inserting the ca_cert line but it generated the same log as above.

4.3. I have got hold of cert file from Ubuntu by looking under /usr/share/mozilla/ca-cert/. Ubuntu has a sym-link of Equifax*.pem to Equifax*.crt so I directly took the crt and am assuming that .crt = .pem. Is that so?

4.4 I have also exported the certificate from internet explorer and tried using it (all three formats, der, p7b and base-64)

5. I purchased and used the Wi-fi helper Pro program with no result

6. I have tried tinkering with wep104/40, ap_scan 1/2, auth_alg (open/shared) but to no avail.

Note:

1. When I simply click on the SSID displayed in the wifi settings section I am asked to enter a WEP key. Android doesn't identify Villanova network as PEAP-WEP-802.1X but simply sees it as WEP.

2. Wifi is working perfectly with 802.1x, PEAP, MSCHAP2 settings on my ipod touch, ubuntu 9.04 (through network manager it doesn't use wpa_supplicant.conf) and my win XP laptop.

3. Unsecured wifi networks are working on HTC g1

If you prefer to meet up via IM/VOIP I can give you dynamically generated logs as you suggest me edits and that could greatly decrease the time wasted going back and forth as we try to solve this horrendous issue.

I have completely exhausted myself trying to connect it to the Villanova wi-fi network. I have been breaking my head over this for 2months now. I am reaching out to get some assistance from you as my last resort.

Thank you for your time

SOLVED:

Issue resolved, I needed to add the following exact lines to my wpa_supplicant.conf

group=WEP104 WEP40

auth_alg=OPEN SHARED

WEP104 and OPEN, WEP 104 and SHARED, WEP40 and OPEN, WEP40 and SHARED none of those combinations will work. I needed the exact same lines!

Thank you members for your support. I hope this information will be useful to someone.