Re: realtek 8172 does not work with networkmanager and wpa on ubuntu 9.10

2010-02-12 Thread Dan Williams
On Fri, 2010-02-12 at 14:47 -0600, Larry Finger wrote:
> On 02/11/2010 04:02 PM, vincent guffens wrote:
> > Dear list,
> > 
> > I have recently bought a thinkpad edge 64 bits with a realtek 8192.
> > 
> > lspci reports
> > Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)
> > 
> > I have installed ubuntu 9.10 amd64 but Linux does not come with the
> > driver for this card. The driver is available from
> > 
> > http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloads=true#2281
> > 
> > The driver compiles without problem but I can not connect to my access
> > point when network manager is running. If I disable it, I can manually
> > connect to the access point using the  following wpa.conf
> 
> The Realtek vendor drivers can be a major problem. From what I see in your
> wpa_supplicant log, it never got any scan data, which is why NM also failed.

Also the supplicant test used AP_SCAN=2 though, which could affect this.
The nm-supplicant-test is pretty old and probably shouldn't really be
used anymore.

But Vincent, can you get some supplicant debug logs when running NM, as
described here?

http://live.gnome.org/NetworkManager/Debugging

under the "Debugging WiFi Connections" section.  Specifically, we're
looking for /var/log/wpa_supplicant.log when you see failures using
NetworkManager.

Note though that this driver is not part of the upstream kernel, and its
quality is highly suspect.  Just because it works manually with
wpa_supplicant doesn't always mean the driver is OK.

Dan

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: realtek 8172 does not work with networkmanager and wpa on ubuntu 9.10

2010-02-12 Thread Larry Finger
On 02/11/2010 04:02 PM, vincent guffens wrote:
> Dear list,
> 
> I have recently bought a thinkpad edge 64 bits with a realtek 8192.
> 
> lspci reports
> Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)
> 
> I have installed ubuntu 9.10 amd64 but Linux does not come with the
> driver for this card. The driver is available from
> 
> http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloads=true#2281
> 
> The driver compiles without problem but I can not connect to my access
> point when network manager is running. If I disable it, I can manually
> connect to the access point using the  following wpa.conf

The Realtek vendor drivers can be a major problem. From what I see in your
wpa_supplicant log, it never got any scan data, which is why NM also failed.
What do you see when you run (as root)

iwlist scan

You should also post the dmesg output that pertains to this device.

Larry

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


realtek 8172 does not work with networkmanager and wpa on ubuntu 9.10

2010-02-12 Thread vincent guffens
Dear list,

I have recently bought a thinkpad edge 64 bits with a realtek 8192.

lspci reports
Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)

I have installed ubuntu 9.10 amd64 but Linux does not come with the
driver for this card. The driver is available from

http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=226&DownTypeID=3&GetDown=false&Downloads=true#2281

The driver compiles without problem but I can not connect to my access
point when network manager is running. If I disable it, I can manually
connect to the access point using the  following wpa.conf


network={
ssid="doubidou-net"
proto=WPA WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk= "my_secret"
priority=2
 }

The following command is used to run wpa_supplicant

wpa_supplicant -D wext -c wpa.conf -i $interface

I have followed the instructions in http://darrenalbers.com/networkmanager/

 sudo ./nm-supplicant-test wlan0 path_to/wpa.conf > nm-supplicant-test.txt

The output is attached to this mail. The command ends with the error

ioctl[SIOCSIWMLME]: Link has been severed

Could you tell me if I can use this card with network manager?

thanks,
Key: ssid, Value: "doubidou-net"
Key: proto, Value: WPA WPA2
Key: key_mgmt, Value: WPA-PSK
Key: pairwise, Value: CCMP TKIP
Key: group, Value: CCMP TKIP
Key: psk, Value: "my_secret"
Key: priority, Value: 2
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 "doubidou-net"'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 proto WPA WPA2'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 key_mgmt WPA-PSK'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 pairwise CCMP TKIP'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 group CCMP TKIP'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 psk "my_secret"'
SUP: response was 'OK'
SUP: sending command 'SET_NETWORK 0 priority 2'
SUP: response was 'OK'
SUP: sending command 'ENABLE_NETWORK 0'
SUP: response was 'OK'
wpa_supplicant(6330): Global control interface '/var/run/wpa_supplicant-global'
wpa_supplicant(6330): RX global ctrl_iface - hexdump_ascii(len=50):
wpa_supplicant(6330):  49 4e 54 45 52 46 41 43 45 5f 41 44 44 20 77 6c   
INTERFACE_ADD wl
wpa_supplicant(6330):  61 6e 30 09 09 77 65 78 74 09 2f 76 61 72 2f 72   
an0__wext_/var/r
wpa_supplicant(6330):  75 6e 2f 77 70 61 5f 73 75 70 70 6c 69 63 61 6e   
un/wpa_supplican
wpa_supplicant(6330):  74 09 t_ 
 
wpa_supplicant(6330): CTRL_IFACE GLOBAL INTERFACE_ADD 'wlan0wext
/var/run/wpa_supplicant '
wpa_supplicant(6330): Initializing interface 'wlan0' conf 'N/A' driver 'wext' 
ctrl_interface '/var/run/wpa_supplicant' bridge 'N/A'
wpa_supplicant(6330): Interface wlan0 set UP - waiting a second for the driver 
to complete initialization
wpa_supplicant(6330): SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
wpa_supplicant(6330):   capabilities: key_mgmt 0xf enc 0xf flags 0x0
wpa_supplicant(6330): WEXT: Operstate: linkmode=1, operstate=5
wpa_supplicant(6330): Own MAC address: 70:1a:04:8e:23:86
wpa_supplicant(6330): wpa_driver_wext_set_wpa
wpa_supplicant(6330): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 
seq_len=0 key_len=0
wpa_supplicant(6330): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 
seq_len=0 key_len=0
wpa_supplicant(6330): y: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_supplicant(6330): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 
seq_len=0 key_len=0
wpa_supplicant(6330): wpa_driver_wext_set_countermeasures
wpa_supplicant(6330): wpa_driver_wext_set_drop_unencrypted
wpa_supplicant(6330): RSN: flushing PMKID list in the driver
wpa_supplicant(6330): Setting scan request: 0 sec 10 usec
wpa_supplicant(6330): WPS: UUID based on MAC address - hexdump(len=16): 5e ab 
3f 6b b7 44 5a cf 9f da cc 81 eb 14 52 31
wpa_supplicant(6330): WPS: Build Beacon and Probe Response IEs
wpa_supplicant(6330): WPS:  * Version
wpa_supplicant(6330): WPS:  * Wi-Fi Protected Setup State (0)
wpa_supplicant(6330): WPS:  * Version
wpa_supplicant(6330): WPS:  * Wi-Fi Protected Setup State (0)
wpa_supplicant(6330): WPS:  * Response Type (2)
wpa_supplicant(6330): WPS:  * UUID-E
wpa_supplicant(6330): WPS:  * Manufacturer
wpa_supplicant(6330): WPS:  * Model Name
wpa_supplicant(6330): WPS:  * Model Number
wpa_supplicant(6330): WPS:  * Serial Number
wpa_supplicant(6330): WPS:  * Primary Device Type
wpa_supplicant(6330): WPS:  * Device Name
wpa_supplicant(6330): WPS:  * Config Methods (0)
wpa_supplica