2009-06-01 03:08:17

by Georgy Berdyshev

[permalink] [raw]
Subject: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01

Automation of testing using mac80211_hwsim and Orbit

Hello Linux wireless users and kernel developers, Luis, John and Johannes,

this is the first status report of the "Automation of testing using
mac80211_hwsim and Orbit",
which is kindly sponsored by Google in the Summer of Code program and
mentored by the Linux Foundation.

http://www.linuxwireless.org/en/developers/GSoC/2009/Automation_of_testing
http://socghop.appspot.com/student_project/show/google/gsoc2009/linux_foundation/t124022664044

In the first week, I did implement a ground base for the testing
command line tool, which is written
in Python and will create statistics from the test set and later on
collect them and provide nice
statistics.

The installer, some basic commands and the parser are finished and I
did translate some of the available
tests (link from Luis) to Python. Moreover I have concentrated on
creating new tests and adding the loading
of kernel modules and setting options to the program.

By the end of the week, I did start to have some strange problems with
running hostapd (via nl80211) and using the
mac80211_hwsim kernel driver.

In case that someone did run into that problem with 2.6.30-rc5,6,7 +
latest git and latest git of hostap / wpa_supplicant,
it would be great to have a feedback on that.

One of the first tasks for the new week will be the creation of a wiki
documentation and also an introduction
how to check out the code, run some tests locally and also send
feedbacks / bug reports.
Like planned, I will continue to extend the test scenario by adding
more tests and also functionality to the command
line test tool.


Thanks, Georgy

--
Georgy Berdyshev

GPG key: 830F68C5
Fingerprint: 0379 ED5A BEE5 65A8 7BD5 31E7 F5B4 1EC7 830F 68C5


2009-06-03 02:17:32

by Georgy Berdyshev

[permalink] [raw]
Subject: Re: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01

Hi,

I had recompiled the kernel and tried to run hostapd again and now it
is working.
Still using the same settings. It seems that the problem has been
solved with the latest git pull.

That was the problem before (e.g. running the vlan example
hostapd.conf within hostap/mac80211_hwsim/tests/0002-vlan)
/opt/wifi/bin/hostapd hostapd.conf
Configuration file: hostapd.conf
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=3 eloop_data=0x977be10
user_data=0x977bfa0 handler=0x8076200

Thanks, Georgy

--
Georgy Berdyshev

GPG key: 830F68C5
Fingerprint: 0379 ED5A BEE5 65A8 7BD5 31E7 F5B4 1EC7 830F 68C5

2009-06-01 12:20:22

by Johannes Berg

[permalink] [raw]
Subject: Re: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01


> By the end of the week, I did start to have some strange problems with
> running hostapd (via nl80211) and using the
> mac80211_hwsim kernel driver.

It seems it would help if you explained what the strange problems are :)

johannes


Attachments:
signature.asc (801.00 B)
This is a digitally signed message part

2009-06-03 02:23:33

by Georgy Berdyshev

[permalink] [raw]
Subject: Re: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01

Hi again,

I was doing some additional tests and it seems that unloading the
mac80211_hwsim kernel module and reloading
it with the same configuration triggers the same error again.

Georgy

On Tue, Jun 2, 2009 at 11:17 PM, Georgy Berdyshev
<[email protected]> wrote:
> Hi,
>
> I had recompiled the kernel and tried to run hostapd again and now it
> is working.
> Still using the same settings. It seems that the problem has been
> solved with the latest git pull.
>
> That was the problem before (e.g. running the vlan example
> hostapd.conf within hostap/mac80211_hwsim/tests/0002-vlan)
> /opt/wifi/bin/hostapd hostapd.conf
> Configuration file: hostapd.conf
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
> ELOOP: remaining socket: sock=3 eloop_data=0x977be10
> user_data=0x977bfa0 handler=0x8076200
>
> Thanks, Georgy
>
> --
> Georgy Berdyshev
>
> GPG key: 830F68C5
> Fingerprint: 0379 ED5A BEE5 65A8 7BD5  31E7 F5B4 1EC7 830F 68C5
>



--
Georgy Berdyshev

GPG key: 830F68C5
Fingerprint: 0379 ED5A BEE5 65A8 7BD5 31E7 F5B4 1EC7 830F 68C5

2009-06-03 02:54:50

by Georgy Berdyshev

[permalink] [raw]
Subject: Re: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01

Hi,

I got it worked out.

/opt/wifi/bin/hostapd hostapd.conf -dd
Configuration file: hostapd.conf
nl80211: Add own interface ifindex 6
nl80211: Add own interface ifindex 12
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
.......
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
..........
RATE[11] rate=540 flags=0x0
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
Flushing old station entries
Deauthenticate all stations
nl_set_encr: ifindex=6 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
nl_set_encr: ifindex=6 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
nl_set_encr: ifindex=6 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
nl_set_encr: ifindex=6 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 02:00:00:00:00:00 and ssid 'mac80211 test'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
MGMT (TX callback) ACK

Blacklisting some modules and disabling NetworkManager fixed the problem.

Georgy

--
Georgy Berdyshev

GPG key: 830F68C5
Fingerprint: 0379 ED5A BEE5 65A8 7BD5 31E7 F5B4 1EC7 830F 68C5

2009-06-01 13:30:27

by John W. Linville

[permalink] [raw]
Subject: Re: [GSoC 2009] Automation of testing using mac80211_hwsim and Orbit - status report 01

On Mon, Jun 01, 2009 at 02:20:09PM +0200, Johannes Berg wrote:
>
> > By the end of the week, I did start to have some strange problems with
> > running hostapd (via nl80211) and using the
> > mac80211_hwsim kernel driver.
>
> It seems it would help if you explained what the strange problems are :)

True. However, overall this is a nice report -- please do continue
to keep us informed!

John
--
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.