On Mon, 2008-08-04 at 11:39 -0300, Paulo J. S. Silva wrote: > Hello, > > I am running Ubuntu Hardy with kernel 2.6.24-20-generic > +linux-modules-backports. My machine has as iwl3945 wi-fi card. Network > manager version is 0.6.6 and wpa_supplicant version is > 0.6.0+0.5.8-0ubuntu2 > > I can connect manually to the network of my office using wpa_supplicant > +wpa_gui+dhclient, but I can not make network-manager to work. I have > run the nm-supplicant-test utility from > http://darrenalbers.com/networkmanager/ and I am pasting the output > below. > > It complains about a timeout to associate. When I use wpa_supplicant, > the association is fast but sometimes the authentication takes a little > long (but it works very, very fast most of the times: 4 times for each 5 > tries). > > What should I try next?
Can you try to change "ap_scan=2" at the top of your supplicant config to "ap_scan=1"? mac80211-based drivers are known to fail with ap_scan=2. Dan > Paulo > > ---- nm-supplicant-test output ---- > sudo ./nm-supplicant-test wlan0 imecc.conf > ap_scan: 2 > Key: ssid, Value: "IMECC" > Key: key_mgmt, Value: IEEE8021X > Key: eap, Value: TTLS > Key: identity, Value: "pjssilva" > Key: password, Value: "haljDyge1" > Key: phase2, Value: "auth=PAP" > Key: ca_cert, Value: "/etc/pki/IMECC-CA/cacert.crt" > SUP: sending command 'INTERFACE_ADD wlan0 > wext /var/run/wpa_supplicant ' > SUP: response was 'OK' > SUP: sending command 'AP_SCAN 2' > SUP: response was 'OK' > SUP: sending command 'ADD_NETWORK' > SUP: response was '0' > SUP: sending command 'SET_NETWORK 0 ssid "IMECC"' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 key_mgmt IEEE8021X' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 eap TTLS' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 identity "pjssilva"' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 password "haljDyge1"' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 phase2 "auth=PAP"' > SUP: response was 'OK' > SUP: sending command 'SET_NETWORK 0 ca_cert > "/etc/pki/IMECC-CA/cacert.crt"' > SUP: response was 'OK' > SUP: sending command 'ENABLE_NETWORK 0' > SUP: response was 'OK' > wpa_supplicant(8439): Global control interface > '/var/run/wpa_supplicant-global' > wpa_supplicant(8439): RX global ctrl_iface - hexdump_ascii(len=50): > wpa_supplicant(8439): 49 4e 54 45 52 46 41 43 45 5f 41 44 44 20 77 > 6c INTERFACE_ADD wl > wpa_supplicant(8439): 61 6e 30 09 09 77 65 78 74 09 2f 76 61 72 2f > 72 an0__wext_/var/r > wpa_supplicant(8439): 75 6e 2f 77 70 61 5f 73 75 70 70 6c 69 63 61 > 6e un/wpa_supplican > wpa_supplicant(8439): 74 09 > t_ > wpa_supplicant(8439): CTRL_IFACE GLOBAL INTERFACE_ADD 'wlan0 > wext /var/run/wpa_supplicant ' > wpa_supplicant(8439): Initializing interface 'wlan0' conf 'N/A' driver > 'wext' ctrl_interface '/var/run/wpa_supplicant' bridge 'N/A' > wpa_supplicant(8439): Initializing interface (2) 'wlan0' > wpa_supplicant(8439): EAPOL: SUPP_PAE entering state DISCONNECTED > wpa_supplicant(8439): EAPOL: KEY_RX entering state NO_KEY_RECEIVE > wpa_supplicant(8439): EAPOL: SUPP_BE entering state INITIALIZE > wpa_supplicant(8439): EAP: EAP entering state DISABLED > wpa_supplicant(8439): EAPOL: External notification - portEnabled=0 > wpa_supplicant(8439): EAPOL: External notification - portValid=0 > wpa_supplicant(8439): SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 > enc_capa=0xf > wpa_supplicant(8439): capabilities: key_mgmt 0xf enc 0xf > wpa_supplicant(8439): WEXT: Operstate: linkmode=1, operstate=5 > wpa_supplicant(8439): 2:22 > wpa_supplicant(8439): wpa_driver_wext_set_wpa > wpa_supplicant(8439): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 > seq_len=0 key_len=0 > wpa_supplicant(8439): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 > seq_len=0 key_len=0 > wpa_supplicant(8439): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 > seq_len=0 key_len=0 > wpa_supplicant(8439): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 > seq_len=0 key_len=0 > wpa_supplicant(8439): wpa_driver_wext_set_countermeasures > wpa_supplicant(8439): wpa_driver_wext_set_drop_unencrypted > wpa_supplicant(8439): Setting scan request: 0 sec 100000 usec > wpa_supplicant(8439): Added interface wlan0 > wpa_supplicant(8439): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 () > wpa_supplicant(8439): Wireless event: cmd=0x8b06 len=8 > wpa_supplicant(8439): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 () > wpa_supplicant(8439): Wireless event: cmd=0x8b19 len=8 > wpa_supplicant(8439): Received 0 bytes of scan results (0 BSSes) > wpa_supplicant(8439): Scan results: 0 > wpa_supplicant(8439): No suitable AP found. > wpa_supplicant(8439): Setting scan request: 5 sec 0 usec > wpa_supplicant(8439): Ignore event for foreign ifindex 3 > wpa_supplicant(8439): RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) > wpa_supplicant(8439): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=9): > wpa_supplicant(8439): 41 50 5f 53 43 41 4e 20 32 > AP_SCAN 2 > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=11): > wpa_supplicant(8439): 4 57 4f 52 4b ADD_NETWORK > wpa_supplicant(8439): CTRL_IFACE: ADD_NETWORK > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=26): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='ssid' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=7): > [REMOVED] > wpa_supplicant(8439): ssid - hexdump_ascii(len=5): > wpa_supplicant(8439): 49 4d 45 43 43 > IMECC > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=32): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='key_mgmt' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=9): > [REMOVED] > wpa_supplicant(8439): key_mgmt: 0x8 > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=22): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='eap' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=4): > [REMOVED] > wpa_supplicant(8439): eap methods - hexdump(len=16): 00 00 00 00 15 00 > 00 00 00 00 00 00 00 00 00 00 > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=33): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='identity' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=10): > [REMOVED] > wpa_supplicant(8439): identity - hexdump_ascii(len=8): > wpa_supplicant(8439): 70 6a 73 73 69 6c 76 61 > pjssilva > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=34): [REMOVED] > wpa_supplicant(8439): 0 name='password' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=11): > [REMOVED] > wpa_supplicant(8439): password - hexdump_ascii(len=9): [REMOVED] > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=31): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='phase2' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=10): > [REMOVED] > wpa_supplicant(8439): phase2 - hexdump_ascii(len=8): > wpa_supplicant(8439): 61 75 74 68 3d 50 41 50 > auth=PAP > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=52): [REMOVED] > wpa_supplicant(8439): CTRL_IFACE: SET_NETWORK id=0 name='ca_cert' > wpa_supplicant(8439): CTRL_IFACE: value - hexdump_ascii(len=30): > [REMOVED] > wpa_supplicant(8439): ca_cert - hexdump_ascii(len=28): > wpa_supplicant(8439): 2f 65 74 63 2f 70 6b 69 2f 49 4d 45 43 43 2d > 43 /etc/pki/IMECC-C > wpa_supplicant(8439): 41 2f 63 61 63 65 72 74 2e 63 72 74 > A/cacert.crt > wpa_supplicant(8439): RX ctrl_iface - hexdump_ascii(len=16): > wpa_supplicant(8439): 45 4e 41 42 4c 45 5f 4e 45 54 57 4f 52 4b 20 > 30 ENABLE_NETWORK 0 > wpa_supplicant(8439): CTRL_IFACE: ENABLE_NETWORK id=0 > wpa_supplicant(8439): Setting scan request: 0 sec 0 usec > wpa_supplicant(8439): State: DISCONNECTED -> SCANNING > wpa_supplicant(8439): Trying to associate with SSID 'IMECC' > wpa_supplicant(8439): Cancelling scan request > wpa_supplicant(8439): WPA: clearing own WPA/RSN IE > wpa_supplicant(8439): Automatic auth_alg selection: 0x1 > Activation (wlan0/wireless): association took too long (>20s), failing > activation. > sendmsg(CTRL_IFACE monitor): No such file or directory > > > > > _______________________________________________ > NetworkManager-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/networkmanager-list _______________________________________________ NetworkManager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
