2007-01-30 22:15:43

by [email protected]

[permalink] [raw]
Subject: Getting dscape running

I'd like to get a basic connection working on my system so that I can
check out the dscape stack and do some work on it. I am targeting an
embedded system using USB dongles but right now I am working on my
desktop. Hopefully this new list can provide the guidance that I need.

I have NetworkManager from CVS and the current version of
wpa_supplicant running. Hardware is a rt2570 dongle using the dscape
stack. OS is Ubuntu.

When I use NetworkManager to switch to the wireless device it fails.
It says the access point is unencrypted when it is running actually
WEP. The problem is probably caused by the NULL gobject reference.
What's causing this?

NetworkManager: <info> Activation (wlan0) started...
NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device
Prepare) started...
NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device
Configure) scheduled...
NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device
Configure) starting...
NetworkManager: <info> Activation (wlan0/wireless): access point
'Smirl' is unencrypted, no key needed.

(NetworkManager:22478): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(NetworkManager:22478): GLib-GObject-CRITICAL **:
g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)'
failed
NetworkManager: nm_supplicant_interface_set_config: assertion `self !=
NULL' failed
NetworkManager: <WARN> real_act_stage2_config(): Activation
(wlan0/wireless): couldn't send wireless configuration to the
supplicant.
NetworkManager: <info> Activation (wlan0) failure scheduled...
NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device
Configure) complete.
NetworkManager: <info> Activation (wlan0) failed for access point (Smirl)
NetworkManager: <info> Activation (wlan0) failed.
NetworkManager: <info> Deactivating device wlan0.

--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless


2007-01-30 22:26:11

by Mark Wallis

[permalink] [raw]
Subject: RE: Getting dscape running

Hi Jon,

> I have NetworkManager from CVS and the current version of
> wpa_supplicant running. Hardware is a rt2570 dongle using the dscape
> stack. OS is Ubuntu.

Have you confirmed you are able to connect using iwconfig manually instead
of Network Manager ? Are you able to get associated ?

I assume you are using the rt2500usb.ko driver, but can you confirm
you are using a recent CVS tarball ?


Regards,
Mark Wallis
rt2x00 Project Admin
[email protected]







_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-31 00:09:38

by [email protected]

[permalink] [raw]
Subject: Re: Getting dscape running

On 1/30/07, Pavel Roskin <[email protected]> wrote:
> > I'm unable to connect to it using WEP. The same device works on the Intel stack.
>
> And how about connections without WEP?
>
> > wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
> > A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
> > wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
>
> My understanding of the code that prints the above is that either the AP
> doesn't support WEP or the client doesn't have WEP enabled. That can
> include the case when some other encryption algorithm is active.

I think I've located what the problem is. NetworkManager was hanging
around as a deamon and changing my encryption settings improperly
(turning off WEP) probably because of the NULL gobject problem. I
fixed my system to not run NM, rebooted and now I can connect. I'll
just get rid of NM since it is not needed for my application. Turning
off encryption gave me enough clues to blame NM.

>
> Just in case, please make sure your .config enables CONFIG_CRYPTO_ECB
> and CONFIG_CRYPTO_ARC4.
>
> --
> Regards,
> Pavel Roskin
>
>
>


--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-30 23:07:23

by [email protected]

[permalink] [raw]
Subject: Re: Getting dscape running

Here's the same rt2570 device using the ifconfig commands. I was
trying to get NetworkManager running on it in case it was doing
something that I wasn't doing manually. Some is not quite right with
the WEP exchange.

jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.412 GHz
RTS thr:off Fragment thr=2346 B

wlan0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
RTS thr:off Fragment thr=2346 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0 channel 1
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
key F491B8B905
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
essid Smirl
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
ap 00:11:95:18:15:31
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:15:e9:2d:76:57
Sending on LPF/wlan0/00:15:e9:2d:76:57
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$

I'm unable to connect to it using WEP. The same device works on the Intel stack.

wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: RX WEP frame with unknown keyidx 0 (A1=01:00:5e:00:00:38
A2=00:11:95:18:15:31 A3=00:07:e9:55:4b:7e)
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: RX WEP frame with unknown keyidx 0 (A1=01:00:5e:00:00:38
A2=00:11:95:18:15:31 A3=00:07:e9:55:4b:7e)
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$




--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-31 00:18:06

by Michael Wu

[permalink] [raw]
Subject: Re: Getting dscape running

On Tuesday 30 January 2007 17:54, Pavel Roskin wrote:
> Just in case, please make sure your .config enables CONFIG_CRYPTO_ECB
> and CONFIG_CRYPTO_ARC4.
d80211 selects ARC4. ECB is selected too if you have Linville's last update.

-Michael Wu


Attachments:
(No filename) (242.00 B)
(No filename) (189.00 B)
(No filename) (152.00 B)
Download all attachments

2007-01-30 23:03:09

by Mark Wallis

[permalink] [raw]
Subject: RE: Getting dscape running

> check out my other post

It would be helpful if you could provide a debug trace as well.

> This is part of what makes working on wireless hard, the pieces are
> scattered everywhere.

Probably best to move this discussion to rt2400-devel and let us check
if the problem still exists in our latest CVS. From there, if assoc
is working fine you can bounce over to the NetworkManager list and go
from there.

Regards,
Mark Wallis
rt2x00 Project Admin
[email protected]





_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-30 22:52:25

by [email protected]

[permalink] [raw]
Subject: Re: Getting dscape running

On 1/30/07, Mark Wallis <[email protected]> wrote:
> Hi Jon,
>
> > I have NetworkManager from CVS and the current version of
> > wpa_supplicant running. Hardware is a rt2570 dongle using the dscape
> > stack. OS is Ubuntu.
>
> Have you confirmed you are able to connect using iwconfig manually instead
> of Network Manager ? Are you able to get associated ?

check out my other post
>
> I assume you are using the rt2500usb.ko driver, but can you confirm
> you are using a recent CVS tarball ?

I'm using rt2500usb from the wireless-dev tree.
I'll pull from CVS and try your most recent code.

This is part of what makes working on wireless hard, the pieces are
scattered everywhere.

>
>
> Regards,
> Mark Wallis
> rt2x00 Project Admin
> [email protected]
>
>
>
>
>
>
>
>


--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-30 22:25:26

by Pavel Roskin

[permalink] [raw]
Subject: Re: Getting dscape running

Hello, Jon!

On Tue, 2007-01-30 at 17:15 -0500, Jon Smirl wrote:
> I'd like to get a basic connection working on my system so that I can
> check out the dscape stack and do some work on it. I am targeting an
> embedded system using USB dongles but right now I am working on my
> desktop. Hopefully this new list can provide the guidance that I need.
>
> I have NetworkManager from CVS and the current version of
> wpa_supplicant running. Hardware is a rt2570 dongle using the dscape
> stack. OS is Ubuntu.
>
> When I use NetworkManager to switch to the wireless device it fails.
> It says the access point is unencrypted when it is running actually
> WEP. The problem is probably caused by the NULL gobject reference.
> What's causing this?

The mailing list for NetworkManager is [email protected],
the website is http://www.gnome.org/projects/NetworkManager/

I believe this list is about the kernel part of wireless support. If
you track the issue to the kernel, then please post here. Don't forget
the kernel messages and more details about the kernel.

If you want a basic connection with WEP, you can try to use iwconfig.
Please make sure to set the channel, the AP (BSSID) and the ESSID.

You can also run wpa_supplicant from the command line. wpa_supplicant
would find the AP for you.

--
Regards,
Pavel Roskin


_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-30 23:49:27

by [email protected]

[permalink] [raw]
Subject: Re: Getting dscape running

On 1/30/07, Mark Wallis <[email protected]> wrote:
> > check out my other post
>
> It would be helpful if you could provide a debug trace as well.
>
> > This is part of what makes working on wireless hard, the pieces are
> > scattered everywhere.
>
> Probably best to move this discussion to rt2400-devel and let us check
> if the problem still exists in our latest CVS. From there, if assoc
> is working fine you can bounce over to the NetworkManager list and go
> from there.

ralink CVS won't build with the current wireless-dev tree.
It tool a little while to check since I had to rebuild my kernel and
turn debugfs on.
I'll try Pavel's suggestions next.

jonsmirl@jonsmirl:/extra/ralink/rt2x00$ make
CC [M] /extra/ralink/rt2x00/ieee80211/ieee80211.o
In file included from /extra/ralink/rt2x00/ieee80211/ieee80211.c:13:
include/linux/netdevice.h:406: error: duplicate member 'ax25_ptr'
/extra/ralink/rt2x00/ieee80211/ieee80211.c: In function 'ieee80211_tx_h_rts':
/extra/ralink/rt2x00/ieee80211/ieee80211.c:858: error:
'IEEE80211_HW_SOFTWARE_RTS' undeclared (first use in this function)
/extra/ralink/rt2x00/ieee80211/ieee80211.c:858: error: (Each
undeclared identifier is reported only once
/extra/ralink/rt2x00/ieee80211/ieee80211.c:858: error: for each
function it appears in.)
/extra/ralink/rt2x00/ieee80211/ieee80211.c: In function
'ieee80211_tx_h_sequence':
/extra/ralink/rt2x00/ieee80211/ieee80211.c:947: error:
'IEEE80211_HW_SOFTWARE_SEQUENCE' undeclared (first use in this
function)
/extra/ralink/rt2x00/ieee80211/ieee80211.c: In function 'ieee80211_beacon_get':
/extra/ralink/rt2x00/ieee80211/ieee80211.c:1857: error:
'IEEE80211_HW_SOFTWARE_SEQUENCE' undeclared (first use in this
function)
/extra/ralink/rt2x00/ieee80211/ieee80211.c: In function '__ieee80211_if_config':
/extra/ralink/rt2x00/ieee80211/ieee80211.c:1993: error: 'struct
ieee80211_if_conf' has no member named 'beacon_control'
make[2]: *** [/extra/ralink/rt2x00/ieee80211/ieee80211.o] Error 1
make[1]: *** [_module_/extra/ralink/rt2x00] Error 2
make: *** [default] Error 2
jonsmirl@jonsmirl:/extra/ralink/rt2x00$



>
> Regards,
> Mark Wallis
> rt2x00 Project Admin
> [email protected]
>
>
>
>
>
>


--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-30 22:55:43

by Pavel Roskin

[permalink] [raw]
Subject: Re: Getting dscape running

On Tue, 2007-01-30 at 17:36 -0500, Jon Smirl wrote:
> Here's the same rt2570 device using the ifconfig commands. I was
> trying to get NetworkManager running on it in case it was doing
> something that I wasn't doing manually. Some is not quite right with
> the WEP exchange.
>
> jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ iwconfig
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> wmaster0 IEEE 802.11g Frequency:2.412 GHz
> RTS thr:off Fragment thr=2346 B
>
> wlan0 IEEE 802.11g ESSID:""
> Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
> RTS thr:off Fragment thr=2346 B
> Link Quality:0 Signal level:0 Noise level:0
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:0 Invalid misc:0 Missed beacon:0
>
> jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0 channel 1
> jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
> key F491B8B905
> jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
> essid Smirl
> jonsmirl@jonsmirl:/extra/wireless-dev/net/d80211$ sudo iwconfig wlan0
> ap 00:11:95:18:15:31

It would be interesting to look at the iwconfig output at this point.
If "Link Quality" is still 0, there is no much use in running dhclient.
Run iwconfig as root so you can verify that the WEP key is correct.

> I'm unable to connect to it using WEP. The same device works on the Intel stack.

And how about connections without WEP?

> wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
> A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
> wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate

My understanding of the code that prints the above is that either the AP
doesn't support WEP or the client doesn't have WEP enabled. That can
include the case when some other encryption algorithm is active.

Just in case, please make sure your .config enables CONFIG_CRYPTO_ECB
and CONFIG_CRYPTO_ARC4.

--
Regards,
Pavel Roskin


_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless

2007-01-31 00:20:16

by [email protected]

[permalink] [raw]
Subject: Re: Getting dscape running

On 1/30/07, Pavel Roskin <[email protected]> wrote:
> > I'm unable to connect to it using WEP. The same device works on the Intel stack.
>
> And how about connections without WEP?
>
> > wmaster0: TX to low-level driver (len=26) FC=0x00a0 DUR=0x013a
> > A1=00:11:95:18:15:31 A2=00:15:e9:2d:76:57 A3=00:11:95:18:15:31
> > wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
>
> My understanding of the code that prints the above is that either the AP
> doesn't support WEP or the client doesn't have WEP enabled. That can
> include the case when some other encryption algorithm is active.

I think I've located what the problem is. NetworkManager was hanging
around as a deamon and changing my encryption settings improperly
probably because of the NULL gobject problem. I fixed my system to not
run NM, rebooted and now I can connect.

> Just in case, please make sure your .config enables CONFIG_CRYPTO_ECB
> and CONFIG_CRYPTO_ARC4.
>
> --
> Regards,
> Pavel Roskin
>
>
>


--
Jon Smirl
[email protected]
_______________________________________________
wireless mailing list
[email protected]
http://lists.tuxdriver.org/mailman/listinfo/wireless