Is it mean if we have set one SSID in thethe wpa_supplicant.conf under /etc,
then NM will automatically call this SSID when NM starts to run?

What is the relationship with the plugin files under the
/etc/NetworkManager/system-settings, Thanks

Will

On Fri, Apr 23, 2010 at 11:03 AM, Dan Williams <d...@redhat.com> wrote:

> On Fri, 2010-04-16 at 14:03 +0100, Timothy Murphy wrote:
> > Dan Williams wrote:
> >
> > >> I'm running Fedora-12/KDE on this machine,
> > >> with an old Avaya PCI-to-PCMCIA WiFi card,
> > >> which works fine using the network service in place of NM,
> > >> as also under Windows XP.
> > >
> > > Ok, so we know the WEP key is right, that leaves just the wifi card as
> > > the culprit.
> > >
> > > So I'm going to go out on a limb and say that orinoco doesn't play well
> > > with wpa_supplicant these days, which is what I found last time I tried
> > > to use my Orinoco cards with NM and older kernels.
> > >
> > > If you can, try to make a plain wpa_supplicant config file for the
> > > network (check
> > > out /usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf or whatever
> > > the path is on your machine) and then:
> > >
> > > service NetworkManager stop
> > > killall -TERM wpa_supplicant
> > > wpa_supplicant -dddt -i <your interface name> -c
> /path/to/your/config/file
> > > -D wext
> > >
> > > and we'll see what we get.  If that fails to eventually connect (you'll
> > > see it enter the CONNECTED state) then we know we've got a driver
> > > problem.  The fact that iwconfig and service 'network' work is a good
> > > baseline, but we need wpa_supplicant to work instead.
> >
> > Apologies for the delay in responding - I've been away from home.
> > Any advice or suggestions on my setup gratefully received.
> >
> > I copied .../Examples/wep.conf to wpa_supplicant.conf
> > and modified it for my system:
> > ----------------------------------------
> > # Static WEP keys
> >
> > ctrl_interface=/var/run/wpa_supplicant
> >
> > network={
> >       ssid="dd-wrt"
> >       key_mgmt=NONE
> >       wep_key0="abcde"
> >       wep_key1=1111111111 [not real key]
> >       wep_tx_keyidx=0
>
> So you don't actually need wep_key1 here at all, because you're only
> using wep_key0.  So what you've got here is a WEP 40-bit ASCII
> passphrase, since your wep_key0 is 5 characters, and you've quoted it.
>
> So the supplicant will be using wep_key0 to connect to the AP, and not
> wep_key1 since you set wep_tx_keyidx to 0.
>
> Do you know what "WEP Authentication" setting your AP has?  Is it set to
> only use Shared Key auth?
>
> But in the end, yeah, the driver is simply not cooperating with
> wpa_supplicant here.  And that's a driver bug.
>
> Dan
>
> > }
> > ----------------------------------------
> > Then I ran the command suggested.
> > As can be seen, it gets into a loop
> > SCANNING -> ASSOCIATING ... ASSOCIATING -> DISCONNECTED
> > ----------------------------------------
> > Script started on Fri 16 Apr 2010 01:18:20 PM IST
> > [r...@harriet tmp]# wpa_supplicant -dddt -i eth1 -c
> > /usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf
> > 1271420307.193752: Initializing interface 'eth1' conf
> > '/usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf' driver
> 'default'
> > ctrl_interface 'N/A' bridge 'N/A'
> > 1271420307.193885: Configuration file
> > '/usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf' ->
> > '/usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf'
> > 1271420307.193897: Reading configuration file
> > '/usr/share/doc/wpa_supplicant-0.6.8/wpa_supplicant.conf'
> > 1271420307.232612: ctrl_interface='/var/run/wpa_supplicant'
> > 1271420307.232639: Line: 5 - start of a new network block
> > 1271420307.232654: ssid - hexdump_ascii(len=6):
> >      64 64 2d 77 72 74                                 dd-wrt
> > 1271420307.232682: key_mgmt: 0x4
> > 1271420307.232695: wep_key0 - hexdump(len=5): [REMOVED]
> > 1271420307.232705: wep_key1 - hexdump(len=5): [REMOVED]
> > 1271420307.232717: wep_tx_keyidx=0 (0x0)
> > 1271420307.232756: Priority group 0
> > 1271420307.232764:    id=0 ssid='dd-wrt'
> > 1271420307.232771: Initializing interface (2) 'eth1'
> > 1271420307.234494: SIOCGIWRANGE: WE(compiled)=22 WE(source)=21
> enc_capa=0x5
> > 1271420307.234514:   capabilities: key_mgmt 0x5 enc 0x7 flags 0x0
> > 1271420307.242014: WEXT: Operstate: linkmode=1, operstate=5
> > 1271420307.243389: Own MAC address: 00:02:2d:4a:52:80
> > 1271420307.243409: wpa_driver_wext_set_wpa
> > 1271420307.249109: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0
> > seq_len=0 key_len=0
> > 1271420307.254631: wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0
> > seq_len=0 key_len=0
> > 1271420307.260112: wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0
> > seq_len=0 key_len=0
> > 1271420307.266158: wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0
> > seq_len=0 key_len=0
> > 1271420307.271747: wpa_driver_wext_set_countermeasures
> > 1271420307.272746: wpa_driver_wext_set_drop_unencrypted
> > 1271420307.277330: RSN: flushing PMKID list in the driver
> > 1271420307.277366: Setting scan request: 0 sec 100000 usec
> > 1271420307.285117: EAPOL: SUPP_PAE entering state DISCONNECTED
> > 1271420307.285143: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> > 1271420307.285149: EAPOL: SUPP_BE entering state INITIALIZE
> > 1271420307.285160: EAP: EAP entering state DISABLED
> > 1271420307.285179: Using existing control interface directory.
> >  271420307.294378: Added interface eth1
> > 1271420307.294451: RTM_NEWLINK: operstate=0 ifi_flags=0x11043
> ([UP][RUNNING]
> > [LOWER_UP])
> > 1271420307.294466: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.294476: Wireless event: cmd=0x8b06 len=8
> > 1271420307.294485: RTM_NEWLINK: operstate=0 ifi_flags=0x11043
> ([UP][RUNNING]
> > [LOWER_UP])
> > 1271420307.294493: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.294500: Wireless event: cmd=0x8b1a len=40
> > 1271420307.294508: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420307.294516: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.377487: State: DISCONNECTED -> SCANNING
> > 1271420307.377515: Starting AP scan (broadcast SSID)
> > 1271420307.377522: Trying to get current scan results first without
> > requesting a new scan to speed up initial association
> > 1271420307.377560: Received 0 bytes of scan results (0 BSSes)
> > 1271420307.377572: Cached scan results are empty - not posting
> > 1271420307.378032: wpa_supplicant_select_bss_and_associate: qual 0 (0)
>  qv=0
> > bv=0
> > 1271420307.378041: Selecting BSS from priority group 0
> > 1271420307.378047: Try to find WPA-enabled AP
> > 1271420307.378052: Try to find non-WPA AP
> > 1271420307.378058: No suitable AP found.
> > 1271420307.378066: Setting scan request: 0 sec 0 usec
> > 1271420307.378078: Starting AP scan (broadcast SSID)
> > 1271420307.378275: Scan requested (ret=0) - scan timeout 5 seconds
> > 1271420307.482796: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420307.482834: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.482843: Wireless event: cmd=0x8b19 len=8
> > 1271420307.482879: Received 294 bytes of scan results (1 BSSes)
> > 1271420307.482891: CTRL-EVENT-SCAN-RESULTS
> > 1271420307.483337: wpa_supplicant_select_bss_and_associate: qual 0 (0)
>  qv=0
> > bv=0
> > 1271420307.483345: Selecting BSS from priority group 0
> > 1271420307.483351: Try to find WPA-enabled AP
> > 1271420307.483357: 0: 00:16:b6:da:56:b4 ssid='dd-wrt' wpa_ie_len=0
> > rsn_ie_len=0 caps=0x11
> > 1271420307.483367:    skip - no WPA/RSN IE
> > 1271420307.483373: Try to find non-WPA AP
> > 1271420307.483378: 0: 00:16:b6:da:56:b4 ssid='dd-wrt' wpa_ie_len=0
> > rsn_ie_len=0 caps=0x11
> > 1271420307.483388:    selected non-WPA AP 00:16:b6:da:56:b4 ssid='dd-wrt'
> > 1271420307.483409: Trying to associate with 00:16:b6:da:56:b4
> (SSID='dd-wrt'
> > freq=2437 MHz)
> > 1271420307.483417: Cancelling scan request
> > 1271420307.483423: WPA: clearing own WPA/RSN IE
> > 1271420307.483435: Automatic auth_alg selection: 0x1
> > 1271420307.489480: WPA: clearing AP WPA IE
> > 1271420307.489505: WPA: clearing AP RSN IE
> > 1271420307.489511: WPA: clearing own WPA/RSN IE
> > 1271420307.489518: No keys have been configured - skip key clearing
> > 1271420307.489525: wpa_driver_wext_set_key: alg=1 key_idx=0 set_tx=1
> > seq_len=0 key_len=5
> > 1271420307.495276: wpa_driver_wext_set_key: alg=1 key_idx=1 set_tx=0
> > seq_len=0 key_len=5
> > 1271420307.501266: wpa_driver_wext_set_drop_unencrypted
> > 1271420307.506899: State: SCANNING -> ASSOCIATING
> > 1271420307.506910: wpa_driver_wext_set_operstate: operstate 0->0
> (DORMANT)
> > 1271420307.506917: WEXT: Operstate: linkmode=-1, operstate=5
> > 1271420307.506942: wpa_driver_wext_associate
> > 1271420307.560868: wpa_driver_wext_set_psk
> > ioctl[SIOCSIWFREQ]: Device or resource busy
> > ioctl[SIOCSIWAP]: Operation not supported
> > 1271420307.593970: Association request to the driver failed
> > 1271420307.593985: Setting authentication timeout: 10 sec 0 usec
> > 1271420307.593995: EAPOL: External notification - EAP success=0
> > 1271420307.594004: EAPOL: External notification - EAP fail=0
> > 1271420307.594011: EAPOL: External notification -
> > portControl=ForceAuthorized
> > 1271420307.594037: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420307.594046: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.594054: Wireless event: cmd=0x8b06 len=8
> > 1271420307.594063: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420307.594070: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420307.594076: Wireless event: cmd=0x8b1a len=14
> > 1271420308.285878: EAPOL: disable timer tick
> > 1271420317.603333: Authentication with 00:16:b6:da:56:b4 timed out.
> > 1271420317.603356: Added BSSID 00:16:b6:da:56:b4 into blacklist
> > 1271420317.603366: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0
> > seq_len=0 key_len=0
> > 1271420317.608648: wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0
> > seq_len=0 key_len=0
> > 1271420317.614218: wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0
> > seq_len=0 key_len=0
> > 1271420317.619729: wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0
> > seq_len=0 key_len=0
> > 1271420317.625217: State: ASSOCIATING -> DISCONNECTED
> > 1271420317.625235: wpa_driver_wext_set_operstate: operstate 0->0
> (DORMANT)
> > 1271420317.625243: WEXT: Operstate: linkmode=-1, operstate=5
> > 1271420317.625268: EAPOL: External notification - portEnabled=0
> > 1271420317.625278: EAPOL: External notification - portValid=0
> > 1271420317.625290: Setting scan request: 0 sec 0 usec
> > 1271420317.625307: State: DISCONNECTED -> SCANNING
> > 1271420317.625314: Starting AP scan (broadcast SSID)
> > 1271420317.625500: Scan requested (ret=0) - scan timeout 30 seconds
> > 1271420317.813280: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420317.813308: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420317.813317: Wireless event: cmd=0x8b19 len=8
> > 1271420317.813359: Received 654 bytes of scan results (2 BSSes)
> > 1271420317.813373: CTRL-EVENT-SCAN-RESULTS
> > 1271420317.813819: wpa_supplicant_select_bss_and_associate: qual 0 (0)
>  qv=0
> > bv=0
> > 1271420317.813842: Selecting BSS from priority group 0
> > 1271420317.813848: Try to find WPA-enabled AP
> > 1271420317.813855: 0: 00:1e:5a:fd:8c:80 ssid='eircom7731 1332'
> wpa_ie_len=24
> > rsn_ie_len=20 caps=0x11
> > 1271420317.813865:    skip - SSID mismatch
> > 1271420317.813871: 1: 00:16:b6:da:56:b4 ssid='dd-wrt' wpa_ie_len=0
> > rsn_ie_len=0 caps=0x11
> > 1271420317.813880:    skip - no WPA/RSN IE
> > 1271420317.813886: Try to find non-WPA AP
> > 1271420317.813892: 0: 00:1e:5a:fd:8c:80 ssid='eircom7731 1332'
> wpa_ie_len=24
> > rsn_ie_len=20 caps=0x11
> > 1271420317.813901:    skip - SSID mismatch
> > 1271420317.813907: 1: 00:16:b6:da:56:b4 ssid='dd-wrt' wpa_ie_len=0
> > rsn_ie_len=0 caps=0x11
> > 1271420317.813916:    selected non-WPA AP 00:16:b6:da:56:b4 ssid='dd-wrt'
> > 1271420317.813928: Trying to associate with 00:16:b6:da:56:b4
> (SSID='dd-wrt'
> > freq=2437 MHz)
> > 1271420317.813935: Cancelling scan request
> > 1271420317.813941: WPA: clearing own WPA/RSN IE
> > 1271420317.813954: Automatic auth_alg selection: 0x1
> > 1271420317.819285: WPA: clearing AP WPA IE
> > 1271420317.819301: WPA: clearing AP RSN IE
> > 1271420317.819307: WPA: clearing own WPA/RSN IE
> > 1271420317.819314: No keys have been configured - skip key clearing
> > 1271420317.819321: wpa_driver_wext_set_key: alg=1 key_idx=0 set_tx=1
> > seq_len=0 key_len=5
> > 1271420317.825689: wpa_driver_wext_set_key: alg=1 key_idx=1 set_tx=0
> > seq_len=0 key_len=5
> > 1271420317.831667: wpa_driver_wext_set_drop_unencrypted
> > 1271420317.837407: State: SCANNING -> ASSOCIATING
> > 1271420317.837425: wpa_driver_wext_set_operstate: operstate 0->0
> (DORMANT)
> > 1271420317.837432: WEXT: Operstate: linkmode=-1, operstate=5
> > 1271420317.837458: wpa_driver_wext_associate
> > 1271420317.879410: wpa_driver_wext_set_psk
> > ioctl[SIOCSIWFREQ]: Device or resource busy
> > ioctl[SIOCSIWAP]: Operation not supported
> > 1271420317.912344: Association request to the driver failed
> > 1271420317.912358: Setting authentication timeout: 10 sec 0 usec
> > 1271420317.912368: EAPOL: External notification - EAP success=0
> > 1271420317.912378: EAPOL: External notification - EAP fail=0
> > 1271420317.912384: EAPOL: External notification -
> > portControl=ForceAuthorized
> > 1271420317.912403: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420317.912412: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420317.912420: Wireless event: cmd=0x8b06 len=8
> > 1271420317.912429: RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP]
> > [LOWER_UP])
> > 1271420317.912436: RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
> > 1271420317.912443: Wireless event: cmd=0x8b1a len=14
> > 1271420327.922397: Authentication with 00:16:b6:da:56:b4 timed out.
> > 1271420327.922419: BSSID 00:16:b6:da:56:b4 blacklist count incremented to
> 2
> > 1271420327.922429: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0
> > seq_len=0 key_len=0
> > 1271420327.927717: wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0
> > seq_len=0 key_len=0
> > 1271420327.933342: wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0
> > seq_len=0 key_len=0
> > 1271420327.938849: wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0
> > seq_len=0 key_len=0
> > 1271420327.944332: State: ASSOCIATING -> DISCONNECTED
> > ...
> > [r...@harriet tmp]# exit
> > exit
> >
> > Script done on Fri 16 Apr 2010 01:19:17 PM IST
> > ----------------------------------------
>
>
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
>
_______________________________________________
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to