wifi-test-devel Mailing List for wifi-test
Brought to you by:
jeffzheng
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(12) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
(6) |
Mar
(3) |
Apr
(4) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: srinivas n. <sri...@gm...> - 2012-12-06 06:10:50
|
Hi, I had downloaded wifi-test automation scripts into my test machine and configured the server with two Ethernet cards,one connected to Cisco 1240 acces point and other to the test machine. I had configure the access point with wep security and i am able to perform validation testing in my test machine. But when i configured the access point with WPA-PSK security iam not able perform validation testing in my test machine.The supplicant file which will call the test machine is not getting executed.But if i run the supplicant manually it is getting associated. Can u help me how to get out of this issue... Regards Srinivas. |
From: <ran...@gm...> - 2011-10-03 12:37:44
|
Hi all, I was trying to checkout the sourcecode fo the wireless-test. But as the kernel.org is down the git url doesnt seem to work. Kindly let know if there is any alternate repository available. Regards Ranganath -- I blog at http://ranganaths.wordpress.com |
From: Zheng, J. <jia...@in...> - 2010-10-13 02:42:33
|
Hi Luis, Luis R. Rodriguez wrote: > This adds a simple roam test script. It uses the supplicant > wpa_cli utility to interact with your existing session. > You can either use Network Manager and connect to an ESS > or use wpa_supplicant manually and connect to an ESS, in > both cases you need to hand pick an ESS by SSID and support > the control interface of the supplicant. The script will just > force a roam onto all the APs on the ESS in round robin, > sleeping 2 seconds between each roam. If you are not testing > signal drops you can use this to move around APs without > walking around a building. > > Cc: Paul Stewart <ps...@go...> > Signed-off-by: Luis R. Rodriguez <lro...@at...> > --- The patch has been applied to wifi-test. Thank you for adding this roam test. bests, jiajia |
From: Luis R. R. <lro...@at...> - 2010-09-25 01:58:35
|
Association is dealt with as an atomic offchannel operation, we do this because we don't know we are associated until we get the associatin response from the AP. When we do get the associatin response though we were never clearing the offchannel state. This has a few implications, we told drivers we were still offchannel, and the first configured TX power for the channel does not take into account any power constraints. For ath9k this meant ANI calibration would not start upon association, and we'd have to wait until the first bgscan to be triggered. There may be other issues this resolves but I'm too lazy to colb the code to check. Cc: st...@ke... Cc: Amod Bodas <amo...@at...> Cc: Vasanth Thiagarajan <vas...@at...> Signed-off-by: Luis R. Rodriguez <lro...@at...> --- net/mac80211/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 7c85426..e24fa5b 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -110,7 +110,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) chan = scan_chan; channel_type = NL80211_CHAN_NO_HT; local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; - } else if (local->tmp_channel) { + } else if (local->tmp_channel && + local->oper_channel != local->tmp_channel) { chan = scan_chan = local->tmp_channel; channel_type = local->tmp_channel_type; local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; -- 1.7.0.4 |
From: August <aug...@gm...> - 2010-09-24 03:33:53
|
That is fine. Thank you for work during the holidays. 2010/9/23 <wif...@li...>: > Send Wifi-test-devel mailing list submissions to > wif...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > or, via email, send a message with subject or body 'help' to > wif...@li... > > You can reach the person managing the list at > wif...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Wifi-test-devel digest..." > > > Today's Topics: > > 1. git is down (Gery Kahn) > 2. Re: git is down (Zheng, Jiajia) > 3. Re: git is down (Luis R. Rodriguez) > 4. [PATCH] wifi-test: add simple roam test script (Luis R. Rodriguez) > 5. Re: [PATCH] wifi-test: add simple roam test script > (Luis R. Rodriguez) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 14 Sep 2010 11:28:02 +0200 > From: Gery Kahn <ge...@ti...> > Subject: [Wifi-test-devel] git is down > To: wif...@li... > Message-ID: <4C8...@ti...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi guys, > > Trying to git the project. > > Initialized empty Git repository in /work/ti/wifi-tests/wifi-test/.git/ > error: The requested URL returned error: 504 (curl_result = 22, http_code = 504, > sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) > error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under > http://www.intellinuxwireless.org/repos/wifi-test.git > Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 > while processing commit 24ad3323450072128526ad2666431a771bd9a692. > error: Fetch failed. > > > Gery > > > > ------------------------------ > > Message: 2 > Date: Sun, 19 Sep 2010 14:40:53 +0800 > From: "Zheng, Jiajia" <jia...@in...> > Subject: Re: [Wifi-test-devel] git is down > To: "ge...@ti..." <ge...@ti...>, > "wif...@li..." > <wif...@li...> > Message-ID: > <A24...@sh...> > > Content-Type: text/plain; charset="us-ascii" > > Hi Gery, > Sorry for the late response. > It should works now. Please try again. Thank you! > > bests, > jiajia > Gery Kahn wrote: >> Hi guys, >> >> Trying to git the project. >> >> Initialized empty Git repository in >> /work/ti/wifi-tests/wifi-test/.git/ >> error: The requested URL returned error: 504 (curl_result = 22, >> http_code = 504, sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) >> error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under >> http://www.intellinuxwireless.org/repos/wifi-test.git >> Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 >> while processing commit 24ad3323450072128526ad2666431a771bd9a692. >> error: Fetch failed. >> >> >> Gery >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Wifi-test-devel mailing list >> Wif...@li... >> https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > > > > > > ------------------------------ > > Message: 3 > Date: Wed, 22 Sep 2010 16:59:55 -0700 > From: "Luis R. Rodriguez" <mc...@gm...> > Subject: Re: [Wifi-test-devel] git is down > To: "Zheng, Jiajia" <jia...@in...> > Cc: "wif...@li..." > <wif...@li...> > Message-ID: > <AANLkTinJPgJEFeB2439Lm2RQ9ryfavGMKNdfX3k2XM=P...@ma...> > Content-Type: text/plain; charset=UTF-8 > > On Sat, Sep 18, 2010 at 11:40 PM, Zheng, Jiajia <jia...@in...> wrote: >> Hi Gery, >> Sorry for the late response. >> It should works now. Please try again. Thank you! > > Its still down. > > Luis >> bests, >> jiajia >> Gery Kahn wrote: >>> Hi guys, >>> >>> Trying to git the project. >>> >>> Initialized empty Git repository in >>> /work/ti/wifi-tests/wifi-test/.git/ >>> error: The requested URL returned error: 504 (curl_result = 22, >>> http_code = 504, sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) >>> error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under >>> http://www.intellinuxwireless.org/repos/wifi-test.git >>> Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 >>> while processing commit 24ad3323450072128526ad2666431a771bd9a692. >>> error: Fetch failed. >>> >>> >>> Gery >>> >>> ------------------------------------------------------------------------------ >>> Start uncovering the many advantages of virtual appliances >>> and start using them to simplify application deployment and >>> accelerate your shift to cloud computing. >>> http://p.sf.net/sfu/novell-sfdev2dev >>> _______________________________________________ >>> Wifi-test-devel mailing list >>> Wif...@li... >>> https://lists.sourceforge.net/lists/listinfo/wifi-test-devel >> >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Wifi-test-devel mailing list >> Wif...@li... >> https://lists.sourceforge.net/lists/listinfo/wifi-test-devel >> > > > > ------------------------------ > > Message: 4 > Date: Wed, 22 Sep 2010 20:17:17 -0400 > From: "Luis R. Rodriguez" <lro...@at...> > Subject: [Wifi-test-devel] [PATCH] wifi-test: add simple roam test > script > To: jia...@in... > Cc: "Luis R. Rodriguez" <lro...@at...>, Paul Stewart > <ps...@go...>, lin...@vg..., > wif...@li... > Message-ID: <128...@at...> > > This adds a simple roam test script. It uses the supplicant > wpa_cli utility to interact with your existing session. > You can either use Network Manager and connect to an ESS > or use wpa_supplicant manually and connect to an ESS, in > both cases you need to hand pick an ESS by SSID and support > the control interface of the supplicant. The script will just > force a roam onto all the APs on the ESS in round robin, > sleeping 2 seconds between each roam. If you are not testing > signal drops you can use this to move around APs without > walking around a building. > > Cc: Paul Stewart <ps...@go...> > Signed-off-by: Luis R. Rodriguez <lro...@at...> > --- > > The wifi-test.git tree is down right now.. so if you want to test > this you can download the script from: > > http://bombadil.infradead.org/~mcgrof/test-roam > > for now. This script let me find a bug, I'll post the oops > shortly. > > simple/test-roam | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 66 insertions(+), 0 deletions(-) > create mode 100755 simple/test-roam > > diff --git a/simple/test-roam b/simple/test-roam > new file mode 100755 > index 0000000..9d1c0c4 > --- /dev/null > +++ b/simple/test-roam > @@ -0,0 +1,66 @@ > +#!/bin/bash > +# Copyright (c) 2010 Luis R. Rodriguez <mc...@gm...> > +# > +# Permission to use, copy, modify, and/or distribute this software for any > +# purpose with or without fee is hereby granted, provided that the above > +# copyright notice and this permission notice appear in all copies. > +# > +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING O > + > +# Pretty colors > +GREEN="\033[01;32m" > +YELLOW="\033[01;33m" > +NORMAL="\033[00m" > +BLUE="\033[34m" > +RED="\033[31m" > +PURPLE="\033[35m" > +CYAN="\033[36m" > + > +if [ $# -ne 1 ]; then > + echo -e "Usage: $0 <SSID>" > + exit > +fi > + > +SSID="$1" > + > +# assumes you have a control interface exposed, > +# If you want to use this with network-manager ensure > +# you modify your dbus settings for wpa_supplicant. This is > +# documented here: > +# > +# http://wireless.kernel.org/en/users/Documentation/wpa_supplicant#Enabling_control_interface_and_nl80211_driver > + > +echo -e "${CYAN}Issuing first scan...${NORMAL}" > + > +# XXX: add 'iw event <event-type> -c 1' support > +sudo wpa_cli scan > + > +echo -e "${CYAN}Waiting for results...${NORMAL}" > +sleep 5 > + > +echo -e "${CYAN}Collecting scan results...${NORMAL}" > +ESS=$(sudo wpa_cli scan_results| grep $SSID | awk '{print $1}') > +COUNT=$(echo $ESS | wc -w) > + > +echo -e "${RED}$COUNT ${NORMAL}APs found on ESS ${GREEN}$SSID${NORMAL}, going to roam between them now" > +echo -e "AP list:${NORMAL}" > + > +echo -e "\t${GREEN}BSS\t\t\t${YELLOW}Freq${NORMAL}" > +for i in $ESS; do > + FREQ=$(sudo wpa_cli scan_results| grep $i | awk '{print $2}') > + echo -e "\t${GREEN}$i\t${YELLOW}$FREQ" > +done > + > +while true; do > + for i in $ESS; do > + FREQ=$(sudo wpa_cli scan_results| grep $i | awk '{print $2}') > + echo -e "${NORMAL}Roaming to ${CYAN}${SSID} ${GREEN}${i} ${YELLOW}${FREQ} ${NORMAL}MHz..." > + sudo wpa_cli roam $i; > + sleep 2; > + done; > +done > -- > 1.7.0.4 > > > > > ------------------------------ > > Message: 5 > Date: Wed, 22 Sep 2010 17:22:40 -0700 > From: "Luis R. Rodriguez" <lro...@at...> > Subject: Re: [Wifi-test-devel] [PATCH] wifi-test: add simple roam test > script > To: "jia...@in..." <jia...@in...> > Cc: Paul Stewart <ps...@go...>, "lin...@vg..." > <lin...@vg...>, > "wif...@li..." > <wif...@li...>, Luis Rodriguez > <Lui...@At...> > Message-ID: <20100923002240.GA4484@tux> > Content-Type: text/plain; charset="us-ascii" > > On Wed, Sep 22, 2010 at 05:17:17PM -0700, Luis R. Rodriguez wrote: >> This adds a simple roam test script. It uses the supplicant >> wpa_cli utility to interact with your existing session. >> You can either use Network Manager and connect to an ESS >> or use wpa_supplicant manually and connect to an ESS, in >> both cases you need to hand pick an ESS by SSID and support >> the control interface of the supplicant. The script will just >> force a roam onto all the APs on the ESS in round robin, >> sleeping 2 seconds between each roam. If you are not testing >> signal drops you can use this to move around APs without >> walking around a building. >> >> Cc: Paul Stewart <ps...@go...> >> Signed-off-by: Luis R. Rodriguez <lro...@at...> >> --- >> >> The wifi-test.git tree is down right now.. so if you want to test >> this you can download the script from: >> >> http://bombadil.infradead.org/~mcgrof/test-roam >> >> for now. This script let me find a bug, I'll post the oops >> shortly. > > After roaming for a good while, this is what I got, not sure > yet what caused the NULL pointer dereference... Am I the only > one able to reproduce this? > > [ 3276.590182] ieee80211 phy10: device now idle > [ 3276.596354] cfg80211: All devices are disconnected, going to restore regulatory settings > [ 3276.596365] cfg80211: Restoring regulatory settings > [ 3276.596375] cfg80211: Calling CRDA to update world regulatory domain > [ 3276.604100] cfg80211: World regulatory domain updated: > [ 3276.604115] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > [ 3276.604126] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > [ 3276.604135] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) > [ 3276.604144] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) > [ 3276.604153] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > [ 3276.604161] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > [ 3276.640583] ieee80211 phy10: device no longer idle - working > [ 3276.658666] wlan37: authenticate with 00:01:03:a0:b0:c0 (try 1) > [ 3276.659632] wlan37: authenticated > [ 3276.659670] wlan37: associate with 00:01:03:a0:b0:c0 (try 1) > [ 3276.661981] wlan37: RX AssocResp from 00:01:03:a0:b0:c0 (capab=0x411 status=0 aid=16) > [ 3276.661986] wlan37: associated > [ 3276.661994] ieee80211 phy10: Allocated STA 00:01:03:a0:b0:c0 > [ 3276.662050] ieee80211 phy10: Inserted STA 00:01:03:a0:b0:c0 > [ 3276.730081] BUG: unable to handle kernel NULL pointer dereference at 0000000000000003 > [ 3276.730148] IP: [<0000000000000003>] 0x3 > [ 3276.730179] PGD 2fee1067 PUD 2fec6067 PMD 0 > [ 3276.730212] Oops: 0010 [#1] SMP > [ 3276.730239] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq > [ 3276.730264] CPU 1 > [ 3276.730276] Modules linked in: ath9k netconsole configfs rfcomm sco binfmt_misc ppdev stp bnep l2cap snd_hda_codec_analog joydev nouveau mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi pcmcia snd_seq_midi ath9k_common ttm ath9k_hw snd_rawmidi snd_seq_midi_event snd_seq drm_kms_helper snd_timer drm snd_seq_device ath btusb snd yenta_socket bluetooth tpm_tis pcmcia_rsrc cfg80211 tpm i2c_algo_bit psmouse pcmcia_core nvram tpm_bios soundcore serio_raw snd_page_alloc intel_agp video output lp parport ahci ohci1394 e1000e ieee1394 libahci [last unloaded: netconsole] > [ 3276.730761] > [ 3276.730775] Pid: 9, comm: ksoftirqd/1 Not tainted 2.6.36-rc5-wl+ #253 6460DWU/6460DWU > [ 3276.730796] RIP: 0010:[<0000000000000003>] [<0000000000000003>] 0x3 > [ 3276.730826] RSP: 0018:ffff880001f03ea0 EFLAGS: 00010246 > [ 3276.730844] RAX: ffff880001f03ef8 RBX: ffff88003d688000 RCX: 0000000000000000 > [ 3276.730869] RDX: ffff880001f12188 RSI: dead000000200200 RDI: 0000001d00008020 > [ 3276.730889] RBP: ffff880001f03f38 R08: ffff88002f731290 R09: 0000000000000000 > [ 3276.730909] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88002f731250 > [ 3276.730930] R13: ffff880001f03ef8 R14: 0000000000000100 R15: ffff88003d68dfd8 > [ 3276.730952] FS: 0000000000000000(0000) GS:ffff880001f00000(0000) knlGS:0000000000000000 > [ 3276.730974] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 3276.730992] CR2: 0000000000000003 CR3: 000000003ccbc000 CR4: 00000000000006e0 > [ 3276.731012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 3276.731035] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > [ 3276.731056] Process ksoftirqd/1 (pid: 9, threadinfo ffff88003d68c000, task ffff88003d67c470) > [ 3276.731078] Stack: > [ 3276.731093] ffffffff8106f7da ffff88003d699fd8 ffff880001f03ed0 ffff88003d689c20 > [ 3276.731128] <0> ffff88003d689820 ffff88003d689420 ffff88003d68dfd8 ffff88003d68dfd8 > [ 3276.731175] <0> 0000001d00008020 0000000000000003 ffff88003d689020 ffff880001f12188 > [ 3276.731226] Call Trace: > [ 3276.731239] <IRQ> > [ 3276.731263] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 > [ 3276.731289] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 > [ 3276.731310] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 > [ 3276.731336] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 > [ 3276.731353] <EOI> > [ 3276.731370] [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 > [ 3276.731391] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 > [ 3276.731412] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 > [ 3276.731434] [<ffffffff81080976>] kthread+0x96/0xa0 > [ 3276.731453] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 > [ 3276.731475] [<ffffffff810808e0>] ? kthread+0x0/0xa0 > [ 3276.731499] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 > [ 3276.731517] Code: Bad RIP value. > [ 3276.731545] RIP [<0000000000000003>] 0x3 > [ 3276.731569] RSP <ffff880001f03ea0> > [ 3276.731586] CR2: 0000000000000003 > [ 3276.738990] ---[ end trace f56840a1aec08143 ]--- > [ 3276.739014] Kernel panic - not syncing: Fatal exception in interrupt > [ 3276.739036] Pid: 9, comm: ksoftirqd/1 Tainted: G D 2.6.36-rc5-wl+ #253 > [ 3276.739058] Call Trace: > [ 3276.739070] <IRQ> [<ffffffff8155fd3f>] panic+0x91/0x1a1 > [ 3276.739104] [<ffffffff81060fd5>] ? kmsg_dump+0x145/0x160 > [ 3276.739127] [<ffffffff8156445a>] oops_end+0xea/0xf0 > [ 3276.739154] [<ffffffff8103dbdb>] no_context+0xfb/0x260 > [ 3276.739175] [<ffffffff8108fa37>] ? tick_do_broadcast+0x77/0x90 > [ 3276.739199] [<ffffffff8103de65>] __bad_area_nosemaphore+0x125/0x1e0 > [ 3276.739222] [<ffffffff8103df33>] bad_area_nosemaphore+0x13/0x20 > [ 3276.739243] [<ffffffff81566d8f>] do_page_fault+0x28f/0x350 > [ 3276.739266] [<ffffffff81562dbe>] ? _raw_spin_lock+0xe/0x20 > [ 3276.739288] [<ffffffff81563715>] page_fault+0x25/0x30 > [ 3276.739313] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 > [ 3276.739336] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 > [ 3276.739355] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 > [ 3276.739378] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 > [ 3276.739395] <EOI> [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 > [ 3276.740540] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 > [ 3276.741551] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 > [ 3276.742551] [<ffffffff81080976>] kthread+0x96/0xa0 > [ 3276.743594] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 > [ 3276.744586] [<ffffffff810808e0>] ? kthread+0x0/0xa0 > [ 3276.745578] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 > [ 3276.746559] panic occurred, switching back to text console > [ 3276.747448] BUG: scheduling while atomic: ksoftirqd/1/9/0x10000100 > [ 3276.748321] Modules linked in: ath9k netconsole configfs rfcomm sco binfmt_misc ppdev stp bnep l2cap snd_hda_codec_analog joydev nouveau mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi pcmcia snd_seq_midi ath9k_common ttm ath9k_hw snd_rawmidi snd_seq_midi_event snd_seq drm_kms_helper snd_timer drm snd_seq_device ath btusb snd yenta_socket bluetooth tpm_tis pcmcia_rsrc cfg80211 tpm i2c_algo_bit psmouse pcmcia_core nvram tpm_bios soundcore serio_raw snd_page_alloc intel_agp video output lp parport ahci ohci1394 e1000e ieee1394 libahci [last unloaded: netconsole] > [ 3276.750523] Pid: 9, comm: ksoftirqd/1 Tainted: G D 2.6.36-rc5-wl+ #253 > [ 3276.750523] Call Trace: > [ 3276.750523] <IRQ> [<ffffffff8104f686>] __schedule_bug+0x66/0x70 > [ 3276.750523] [<ffffffff815607c4>] schedule+0x6d4/0xa00 > [ 3276.750523] [<ffffffff810588ea>] __cond_resched+0x2a/0x40 > [ 3276.750523] [<ffffffff81560c40>] _cond_resched+0x30/0x40 > [ 3276.750523] [<ffffffff81142709>] __kmalloc+0xd9/0x1c0 > [ 3276.750523] [<ffffffffa0243ca3>] ? T.746+0x13/0x20 [drm_kms_helper] > [ 3276.750523] [<ffffffffa0243ca3>] T.746+0x13/0x20 [drm_kms_helper] > [ 3276.750523] [<ffffffffa0243da2>] drm_crtc_helper_set_config+0xf2/0x960 [drm_kms_helper] > [ 3276.750523] [<ffffffffa02410f9>] drm_fb_helper_force_kernel_mode+0x79/0xb0 [drm_kms_helper] > [ 3276.750523] [<ffffffffa024118c>] drm_fb_helper_panic+0x1c/0x30 [drm_kms_helper] > [ 3276.750523] [<ffffffff81566ea6>] notifier_call_chain+0x56/0x80 > [ 3276.750523] [<ffffffff81566f0a>] atomic_notifier_call_chain+0x1a/0x20 > [ 3276.750523] [<ffffffff8155fd6b>] panic+0xbd/0x1a1 > [ 3276.750523] [<ffffffff81060fd5>] ? kmsg_dump+0x145/0x160 > [ 3276.750523] [<ffffffff8156445a>] oops_end+0xea/0xf0 > [ 3276.750523] [<ffffffff8103dbdb>] no_context+0xfb/0x260 > [ 3276.750523] [<ffffffff8108fa37>] ? tick_do_broadcast+0x77/0x90 > [ 3276.750523] [<ffffffff8103de65>] __bad_area_nosemaphore+0x125/0x1e0 > [ 3276.750523] [<ffffffff8103df33>] bad_area_nosemaphore+0x13/0x20 > [ 3276.750523] [<ffffffff81566d8f>] do_page_fault+0x28f/0x350 > [ 3276.750523] [<ffffffff81562dbe>] ? _raw_spin_lock+0xe/0x20 > [ 3276.750523] [<ffffffff81563715>] page_fault+0x25/0x30 > [ 3276.750523] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 > [ 3276.750523] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 > [ 3276.750523] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 > [ 3276.750523] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 > [ 3276.750523] <EOI> [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 > [ 3276.750523] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 > [ 3276.750523] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 > [ 3276.750523] [<ffffffff81080976>] kthread+0x96/0xa0 > [ 3276.750523] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 > [ 3276.750523] [<ffffffff810808e0>] ? kthread+0x0/0xa0 > [ 3276.750523] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 > > > > ------------------------------ > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > > ------------------------------ > > _______________________________________________ > Wifi-test-devel mailing list > Wif...@li... > https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > > > End of Wifi-test-devel Digest, Vol 6, Issue 1 > ********************************************* > -- --------------------------------- Best Regards 张杰 ADD:苏州 工业园区 文景路 东南大学苏州研究院 |
From: Luis R. R. <lro...@at...> - 2010-09-23 18:07:16
|
On Thu, Sep 23, 2010 at 8:03 AM, Johannes Berg <joh...@si...> wrote: > On Thu, 2010-09-23 at 17:02 +0200, Johannes Berg wrote: >> On Thu, 2010-09-23 at 07:53 -0700, Luis R. Rodriguez wrote: >> >> > >> After roaming for a good while, this is what I got, not sure >> > >> yet what caused the NULL pointer dereference... Am I the only >> > >> one able to reproduce this? >> > > >> > >> [ 3276.730081] BUG: unable to handle kernel NULL pointer dereference at 0000000000000003 >> > >> [ 3276.730148] IP: [<0000000000000003>] 0x3 >> > > >> > > Something called a NULL pointer function pointer. Rafael recently said >> > > "cpuidle is buggy" when a similar issue came up: >> > > http://mid.gmane.org/201...@si... >> > >> > But that seems related to ACPI, no? On my box I never suspended, I >> > just associated and disassociated rapidly between two peers. The only >> > suspicion I have is its obviously right after adding the STA peer. >> >> Yes, but he said suspend/resume _fixed_ it :-) > > Hm never mind, misunderstood the original report ... suspend + wait + > resume was what was broken. > > But still, it's a NULL pointer call, and I can't really see how that > would happen. Hey so how do we know its a function ? Luis |
From: Luis R. R. <lro...@at...> - 2010-09-23 14:54:01
|
On Thu, Sep 23, 2010 at 1:52 AM, Johannes Berg <joh...@si...> wrote: > On Wed, 2010-09-22 at 17:22 -0700, Luis R. Rodriguez wrote: > >> After roaming for a good while, this is what I got, not sure >> yet what caused the NULL pointer dereference... Am I the only >> one able to reproduce this? > >> [ 3276.730081] BUG: unable to handle kernel NULL pointer dereference at 0000000000000003 >> [ 3276.730148] IP: [<0000000000000003>] 0x3 > > Something called a NULL pointer function pointer. Rafael recently said > "cpuidle is buggy" when a similar issue came up: > http://mid.gmane.org/201...@si... But that seems related to ACPI, no? On my box I never suspended, I just associated and disassociated rapidly between two peers. The only suspicion I have is its obviously right after adding the STA peer. Luis |
From: Luis R. R. <lro...@at...> - 2010-09-23 00:34:50
|
On Wed, Sep 22, 2010 at 05:17:17PM -0700, Luis R. Rodriguez wrote: > This adds a simple roam test script. It uses the supplicant > wpa_cli utility to interact with your existing session. > You can either use Network Manager and connect to an ESS > or use wpa_supplicant manually and connect to an ESS, in > both cases you need to hand pick an ESS by SSID and support > the control interface of the supplicant. The script will just > force a roam onto all the APs on the ESS in round robin, > sleeping 2 seconds between each roam. If you are not testing > signal drops you can use this to move around APs without > walking around a building. > > Cc: Paul Stewart <ps...@go...> > Signed-off-by: Luis R. Rodriguez <lro...@at...> > --- > > The wifi-test.git tree is down right now.. so if you want to test > this you can download the script from: > > http://bombadil.infradead.org/~mcgrof/test-roam > > for now. This script let me find a bug, I'll post the oops > shortly. After roaming for a good while, this is what I got, not sure yet what caused the NULL pointer dereference... Am I the only one able to reproduce this? [ 3276.590182] ieee80211 phy10: device now idle [ 3276.596354] cfg80211: All devices are disconnected, going to restore regulatory settings [ 3276.596365] cfg80211: Restoring regulatory settings [ 3276.596375] cfg80211: Calling CRDA to update world regulatory domain [ 3276.604100] cfg80211: World regulatory domain updated: [ 3276.604115] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 3276.604126] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 3276.604135] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 3276.604144] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 3276.604153] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 3276.604161] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 3276.640583] ieee80211 phy10: device no longer idle - working [ 3276.658666] wlan37: authenticate with 00:01:03:a0:b0:c0 (try 1) [ 3276.659632] wlan37: authenticated [ 3276.659670] wlan37: associate with 00:01:03:a0:b0:c0 (try 1) [ 3276.661981] wlan37: RX AssocResp from 00:01:03:a0:b0:c0 (capab=0x411 status=0 aid=16) [ 3276.661986] wlan37: associated [ 3276.661994] ieee80211 phy10: Allocated STA 00:01:03:a0:b0:c0 [ 3276.662050] ieee80211 phy10: Inserted STA 00:01:03:a0:b0:c0 [ 3276.730081] BUG: unable to handle kernel NULL pointer dereference at 0000000000000003 [ 3276.730148] IP: [<0000000000000003>] 0x3 [ 3276.730179] PGD 2fee1067 PUD 2fec6067 PMD 0 [ 3276.730212] Oops: 0010 [#1] SMP [ 3276.730239] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq [ 3276.730264] CPU 1 [ 3276.730276] Modules linked in: ath9k netconsole configfs rfcomm sco binfmt_misc ppdev stp bnep l2cap snd_hda_codec_analog joydev nouveau mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi pcmcia snd_seq_midi ath9k_common ttm ath9k_hw snd_rawmidi snd_seq_midi_event snd_seq drm_kms_helper snd_timer drm snd_seq_device ath btusb snd yenta_socket bluetooth tpm_tis pcmcia_rsrc cfg80211 tpm i2c_algo_bit psmouse pcmcia_core nvram tpm_bios soundcore serio_raw snd_page_alloc intel_agp video output lp parport ahci ohci1394 e1000e ieee1394 libahci [last unloaded: netconsole] [ 3276.730761] [ 3276.730775] Pid: 9, comm: ksoftirqd/1 Not tainted 2.6.36-rc5-wl+ #253 6460DWU/6460DWU [ 3276.730796] RIP: 0010:[<0000000000000003>] [<0000000000000003>] 0x3 [ 3276.730826] RSP: 0018:ffff880001f03ea0 EFLAGS: 00010246 [ 3276.730844] RAX: ffff880001f03ef8 RBX: ffff88003d688000 RCX: 0000000000000000 [ 3276.730869] RDX: ffff880001f12188 RSI: dead000000200200 RDI: 0000001d00008020 [ 3276.730889] RBP: ffff880001f03f38 R08: ffff88002f731290 R09: 0000000000000000 [ 3276.730909] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88002f731250 [ 3276.730930] R13: ffff880001f03ef8 R14: 0000000000000100 R15: ffff88003d68dfd8 [ 3276.730952] FS: 0000000000000000(0000) GS:ffff880001f00000(0000) knlGS:0000000000000000 [ 3276.730974] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 3276.730992] CR2: 0000000000000003 CR3: 000000003ccbc000 CR4: 00000000000006e0 [ 3276.731012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 3276.731035] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 3276.731056] Process ksoftirqd/1 (pid: 9, threadinfo ffff88003d68c000, task ffff88003d67c470) [ 3276.731078] Stack: [ 3276.731093] ffffffff8106f7da ffff88003d699fd8 ffff880001f03ed0 ffff88003d689c20 [ 3276.731128] <0> ffff88003d689820 ffff88003d689420 ffff88003d68dfd8 ffff88003d68dfd8 [ 3276.731175] <0> 0000001d00008020 0000000000000003 ffff88003d689020 ffff880001f12188 [ 3276.731226] Call Trace: [ 3276.731239] <IRQ> [ 3276.731263] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 [ 3276.731289] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 [ 3276.731310] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 [ 3276.731336] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 [ 3276.731353] <EOI> [ 3276.731370] [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 [ 3276.731391] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 [ 3276.731412] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 [ 3276.731434] [<ffffffff81080976>] kthread+0x96/0xa0 [ 3276.731453] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 [ 3276.731475] [<ffffffff810808e0>] ? kthread+0x0/0xa0 [ 3276.731499] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 [ 3276.731517] Code: Bad RIP value. [ 3276.731545] RIP [<0000000000000003>] 0x3 [ 3276.731569] RSP <ffff880001f03ea0> [ 3276.731586] CR2: 0000000000000003 [ 3276.738990] ---[ end trace f56840a1aec08143 ]--- [ 3276.739014] Kernel panic - not syncing: Fatal exception in interrupt [ 3276.739036] Pid: 9, comm: ksoftirqd/1 Tainted: G D 2.6.36-rc5-wl+ #253 [ 3276.739058] Call Trace: [ 3276.739070] <IRQ> [<ffffffff8155fd3f>] panic+0x91/0x1a1 [ 3276.739104] [<ffffffff81060fd5>] ? kmsg_dump+0x145/0x160 [ 3276.739127] [<ffffffff8156445a>] oops_end+0xea/0xf0 [ 3276.739154] [<ffffffff8103dbdb>] no_context+0xfb/0x260 [ 3276.739175] [<ffffffff8108fa37>] ? tick_do_broadcast+0x77/0x90 [ 3276.739199] [<ffffffff8103de65>] __bad_area_nosemaphore+0x125/0x1e0 [ 3276.739222] [<ffffffff8103df33>] bad_area_nosemaphore+0x13/0x20 [ 3276.739243] [<ffffffff81566d8f>] do_page_fault+0x28f/0x350 [ 3276.739266] [<ffffffff81562dbe>] ? _raw_spin_lock+0xe/0x20 [ 3276.739288] [<ffffffff81563715>] page_fault+0x25/0x30 [ 3276.739313] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 [ 3276.739336] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 [ 3276.739355] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 [ 3276.739378] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 [ 3276.739395] <EOI> [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 [ 3276.740540] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 [ 3276.741551] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 [ 3276.742551] [<ffffffff81080976>] kthread+0x96/0xa0 [ 3276.743594] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 [ 3276.744586] [<ffffffff810808e0>] ? kthread+0x0/0xa0 [ 3276.745578] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 [ 3276.746559] panic occurred, switching back to text console [ 3276.747448] BUG: scheduling while atomic: ksoftirqd/1/9/0x10000100 [ 3276.748321] Modules linked in: ath9k netconsole configfs rfcomm sco binfmt_misc ppdev stp bnep l2cap snd_hda_codec_analog joydev nouveau mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm thinkpad_acpi pcmcia snd_seq_midi ath9k_common ttm ath9k_hw snd_rawmidi snd_seq_midi_event snd_seq drm_kms_helper snd_timer drm snd_seq_device ath btusb snd yenta_socket bluetooth tpm_tis pcmcia_rsrc cfg80211 tpm i2c_algo_bit psmouse pcmcia_core nvram tpm_bios soundcore serio_raw snd_page_alloc intel_agp video output lp parport ahci ohci1394 e1000e ieee1394 libahci [last unloaded: netconsole] [ 3276.750523] Pid: 9, comm: ksoftirqd/1 Tainted: G D 2.6.36-rc5-wl+ #253 [ 3276.750523] Call Trace: [ 3276.750523] <IRQ> [<ffffffff8104f686>] __schedule_bug+0x66/0x70 [ 3276.750523] [<ffffffff815607c4>] schedule+0x6d4/0xa00 [ 3276.750523] [<ffffffff810588ea>] __cond_resched+0x2a/0x40 [ 3276.750523] [<ffffffff81560c40>] _cond_resched+0x30/0x40 [ 3276.750523] [<ffffffff81142709>] __kmalloc+0xd9/0x1c0 [ 3276.750523] [<ffffffffa0243ca3>] ? T.746+0x13/0x20 [drm_kms_helper] [ 3276.750523] [<ffffffffa0243ca3>] T.746+0x13/0x20 [drm_kms_helper] [ 3276.750523] [<ffffffffa0243da2>] drm_crtc_helper_set_config+0xf2/0x960 [drm_kms_helper] [ 3276.750523] [<ffffffffa02410f9>] drm_fb_helper_force_kernel_mode+0x79/0xb0 [drm_kms_helper] [ 3276.750523] [<ffffffffa024118c>] drm_fb_helper_panic+0x1c/0x30 [drm_kms_helper] [ 3276.750523] [<ffffffff81566ea6>] notifier_call_chain+0x56/0x80 [ 3276.750523] [<ffffffff81566f0a>] atomic_notifier_call_chain+0x1a/0x20 [ 3276.750523] [<ffffffff8155fd6b>] panic+0xbd/0x1a1 [ 3276.750523] [<ffffffff81060fd5>] ? kmsg_dump+0x145/0x160 [ 3276.750523] [<ffffffff8156445a>] oops_end+0xea/0xf0 [ 3276.750523] [<ffffffff8103dbdb>] no_context+0xfb/0x260 [ 3276.750523] [<ffffffff8108fa37>] ? tick_do_broadcast+0x77/0x90 [ 3276.750523] [<ffffffff8103de65>] __bad_area_nosemaphore+0x125/0x1e0 [ 3276.750523] [<ffffffff8103df33>] bad_area_nosemaphore+0x13/0x20 [ 3276.750523] [<ffffffff81566d8f>] do_page_fault+0x28f/0x350 [ 3276.750523] [<ffffffff81562dbe>] ? _raw_spin_lock+0xe/0x20 [ 3276.750523] [<ffffffff81563715>] page_fault+0x25/0x30 [ 3276.750523] [<ffffffff8106f7da>] ? run_timer_softirq+0x17a/0x370 [ 3276.750523] [<ffffffff81066d09>] __do_softirq+0xb9/0x1f0 [ 3276.750523] [<ffffffff8100bf5c>] ? call_softirq+0x1c/0x30 [ 3276.750523] [<ffffffff8100bf5c>] call_softirq+0x1c/0x30 [ 3276.750523] <EOI> [<ffffffff8100da15>] ? do_softirq+0x65/0xa0 [ 3276.750523] [<ffffffff81066848>] run_ksoftirqd+0x88/0x140 [ 3276.750523] [<ffffffff810667c0>] ? run_ksoftirqd+0x0/0x140 [ 3276.750523] [<ffffffff81080976>] kthread+0x96/0xa0 [ 3276.750523] [<ffffffff8100be64>] kernel_thread_helper+0x4/0x10 [ 3276.750523] [<ffffffff810808e0>] ? kthread+0x0/0xa0 [ 3276.750523] [<ffffffff8100be60>] ? kernel_thread_helper+0x0/0x10 |
From: Luis R. R. <lro...@at...> - 2010-09-23 00:17:26
|
This adds a simple roam test script. It uses the supplicant wpa_cli utility to interact with your existing session. You can either use Network Manager and connect to an ESS or use wpa_supplicant manually and connect to an ESS, in both cases you need to hand pick an ESS by SSID and support the control interface of the supplicant. The script will just force a roam onto all the APs on the ESS in round robin, sleeping 2 seconds between each roam. If you are not testing signal drops you can use this to move around APs without walking around a building. Cc: Paul Stewart <ps...@go...> Signed-off-by: Luis R. Rodriguez <lro...@at...> --- The wifi-test.git tree is down right now.. so if you want to test this you can download the script from: http://bombadil.infradead.org/~mcgrof/test-roam for now. This script let me find a bug, I'll post the oops shortly. simple/test-roam | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 0 deletions(-) create mode 100755 simple/test-roam diff --git a/simple/test-roam b/simple/test-roam new file mode 100755 index 0000000..9d1c0c4 --- /dev/null +++ b/simple/test-roam @@ -0,0 +1,66 @@ +#!/bin/bash +# Copyright (c) 2010 Luis R. Rodriguez <mc...@gm...> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING O + +# Pretty colors +GREEN="\033[01;32m" +YELLOW="\033[01;33m" +NORMAL="\033[00m" +BLUE="\033[34m" +RED="\033[31m" +PURPLE="\033[35m" +CYAN="\033[36m" + +if [ $# -ne 1 ]; then + echo -e "Usage: $0 <SSID>" + exit +fi + +SSID="$1" + +# assumes you have a control interface exposed, +# If you want to use this with network-manager ensure +# you modify your dbus settings for wpa_supplicant. This is +# documented here: +# +# http://wireless.kernel.org/en/users/Documentation/wpa_supplicant#Enabling_control_interface_and_nl80211_driver + +echo -e "${CYAN}Issuing first scan...${NORMAL}" + +# XXX: add 'iw event <event-type> -c 1' support +sudo wpa_cli scan + +echo -e "${CYAN}Waiting for results...${NORMAL}" +sleep 5 + +echo -e "${CYAN}Collecting scan results...${NORMAL}" +ESS=$(sudo wpa_cli scan_results| grep $SSID | awk '{print $1}') +COUNT=$(echo $ESS | wc -w) + +echo -e "${RED}$COUNT ${NORMAL}APs found on ESS ${GREEN}$SSID${NORMAL}, going to roam between them now" +echo -e "AP list:${NORMAL}" + +echo -e "\t${GREEN}BSS\t\t\t${YELLOW}Freq${NORMAL}" +for i in $ESS; do + FREQ=$(sudo wpa_cli scan_results| grep $i | awk '{print $2}') + echo -e "\t${GREEN}$i\t${YELLOW}$FREQ" +done + +while true; do + for i in $ESS; do + FREQ=$(sudo wpa_cli scan_results| grep $i | awk '{print $2}') + echo -e "${NORMAL}Roaming to ${CYAN}${SSID} ${GREEN}${i} ${YELLOW}${FREQ} ${NORMAL}MHz..." + sudo wpa_cli roam $i; + sleep 2; + done; +done -- 1.7.0.4 |
From: Luis R. R. <mc...@gm...> - 2010-09-23 00:00:21
|
On Sat, Sep 18, 2010 at 11:40 PM, Zheng, Jiajia <jia...@in...> wrote: > Hi Gery, > Sorry for the late response. > It should works now. Please try again. Thank you! Its still down. Luis > bests, > jiajia > Gery Kahn wrote: >> Hi guys, >> >> Trying to git the project. >> >> Initialized empty Git repository in >> /work/ti/wifi-tests/wifi-test/.git/ >> error: The requested URL returned error: 504 (curl_result = 22, >> http_code = 504, sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) >> error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under >> http://www.intellinuxwireless.org/repos/wifi-test.git >> Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 >> while processing commit 24ad3323450072128526ad2666431a771bd9a692. >> error: Fetch failed. >> >> >> Gery >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Wifi-test-devel mailing list >> Wif...@li... >> https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Wifi-test-devel mailing list > Wif...@li... > https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > |
From: Zheng, J. <jia...@in...> - 2010-09-19 06:42:57
|
Hi Gery, Sorry for the late response. It should works now. Please try again. Thank you! bests, jiajia Gery Kahn wrote: > Hi guys, > > Trying to git the project. > > Initialized empty Git repository in > /work/ti/wifi-tests/wifi-test/.git/ > error: The requested URL returned error: 504 (curl_result = 22, > http_code = 504, sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) > error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under > http://www.intellinuxwireless.org/repos/wifi-test.git > Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 > while processing commit 24ad3323450072128526ad2666431a771bd9a692. > error: Fetch failed. > > > Gery > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Wifi-test-devel mailing list > Wif...@li... > https://lists.sourceforge.net/lists/listinfo/wifi-test-devel |
From: Gery K. <ge...@ti...> - 2010-09-14 09:28:14
|
Hi guys, Trying to git the project. Initialized empty Git repository in /work/ti/wifi-tests/wifi-test/.git/ error: The requested URL returned error: 504 (curl_result = 22, http_code = 504, sha1 = 5d4afbf784df64e80a0f03dc3af03aa017dae467) error: Unable to find 5d4afbf784df64e80a0f03dc3af03aa017dae467 under http://www.intellinuxwireless.org/repos/wifi-test.git Cannot obtain needed tree 5d4afbf784df64e80a0f03dc3af03aa017dae467 while processing commit 24ad3323450072128526ad2666431a771bd9a692. error: Fetch failed. Gery |
From: Zheng, J. <jia...@in...> - 2010-05-26 08:27:20
|
From: Jiajia Zheng <Jia...@in...> Add comments for parameters in WPA test cases, making it more easy to read. And fix WPA-PSK and WPA-EAP performance test cases, which used wrong paramters. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/iwl_wpacommon.sh b/TestSuites/iwl/ts/iwl_wpacommon.sh index ca51d44..3a5aed3 100755 --- a/TestSuites/iwl/ts/iwl_wpacommon.sh +++ b/TestSuites/iwl/ts/iwl_wpacommon.sh @@ -27,46 +27,53 @@ wpa() iwl_tpresult } +#==========================================================================================================# +# mode | key_idx | pair_idx | group_idx | eap_idx | phase2_idx | fragmentation | +#----------------------------------------------------------------------------------------------------------- +# 1:(BSS)proto=WPA |1: WPA-PSK |1: CCMP |1: CCMP |1: TLS |1: MD5 | 0: disable +# 2:(BSS)proto=RSN (WPA2) |2: WPA-EAP |2: TKIP |2: TKIP |2: PEAP |2: MSCHAPV | 1: enable +# 3:(IBSS)proto=WPA |3: IEEE8021X| |3: WEP104 |3: TTLS |3: PAP | +# 4:(IBSS)proto=RSN (WPA2)|4: NONE | |4: WEP40 |4: MD5 |4: CHAP | +# |5: WPA-NONE | |5: SHARED-WEP10|5: MSCHAPV2|5: MSCHA | +# | | |6: SHARED-WEP40|6: OTP |6: OTP | +# | | | |7: GTC |7: GTC | +#===========================================================================================================# + wpa2() { - # $1 - # 1: mode=0(BSS), proto=WPA - # 2: mode=0(BSS), proto=RSN (WPA2) - # 3: mode=1 (IBSS), proto=WPA - # 4: mode=1 (IBSS), proto=RSN (WPA2) - # key_idx=$2 - # key_mgmt=(0 WPA-PSK WPA-EAP IEEE8021X NONE WPA-NONE) - # pair_idx=$3 - # pair=(0 CCMP TKIP) - # group_idx=$4 - # group=(0 CCMP TKIP WEP104 WEP40 SHARED-WEP104 SHARED-WEP40) + str=" -S " - [ $1 -eq 1 -a $2 -eq 1 ] && str=$str" -a psk" - [ $1 -eq 1 -a $2 -eq 2 ] && str=$str" -a wpa" - [ $1 -eq 2 -a $2 -eq 1 ] && str=$str" -a psk2" - [ $1 -eq 2 -a $2 -eq 2 ] && str=$str" -a wpa2" - [ $2 -eq 3 ] && str=$str" -a radius" + mode=$1 + key_idx=$2 + pair_idx=$3 + group_idx=$4 + eap_idx=$5 + phase2_idx=$6 + frag=$7 + + [ $mode -eq 1 -a $key_idx -eq 1 ] && str=$str" -a psk" + [ $mode -eq 1 -a $key_idx -eq 2 ] && str=$str" -a wpa" + [ $mode -eq 2 -a $key_idx -eq 1 ] && str=$str" -a psk2" + [ $mode -eq 2 -a $key_idx -eq 2 ] && str=$str" -a wpa2" + $key_idx -eq 3 ] && str=$str" -a radius" - if [ $3 -eq 1 -a $4 -eq 2 ]; then + if [ $pair_idx -eq 1 -a $group_idx -eq 2 ]; then str=$str" -t TKIP+AES" else - [ $3 -eq 1 ] && str=$str" -t AES" - [ $3 -eq 2 ] && str=$str" -t TKIP" + [ $pair_idx -eq 1 ] && str=$str" -t AES" + [ $pair_idx -eq 2 ] && str=$str" -t TKIP" fi - [ $4 -eq 3 ] && str=$str" -w enable -k 3" # key3 is 128bit - [ $4 -eq 4 ] && str=$str" -w enable -k 1" # key1 is 64 (or 40) bit - [ $4 -eq 5 ] && str=$str" -w enable -k 3 -a shared" # AUTH:shared - [ $4 -eq 6 ] && str=$str" -w enable -k 1 -a shared" # AUTH:shared + [ $group_idx -eq 3 ] && str=$str" -w enable -k 3" # key3 is 128bit + [ $group_idx -eq 4 ] && str=$str" -w enable -k 1" # key1 is 64 (or 40) bit + [ $group_idx -eq 5 ] && str=$str" -w enable -k 3 -a shared" # AUTH:shared + [ $group_idx -eq 6 ] && str=$str" -w enable -k 1 -a shared" # AUTH:shared iwl_genconf wpa_supplicant.conf $@ - [ $8 -eq 1 ] && str=$str" -f 300" + [ $frag -eq 1 ] && str=$str" -f 300" info=`cat wpa_supplicant.conf` tet_infoline "The wpa_supplicant.conf is" tet_infoline "$info" - #wpa "wpa_test" $str -x wpa_supplicant.conf - #shift 6 - #wpa $str $@ -x wpa_supplicant.conf wpa $str -x wpa_supplicant.conf } @@ -74,48 +81,16 @@ iwl_genconf() { file=$1 mode=$2 - # 1: mode=0(BSS), proto=WPA - # 2: mode=0(BSS), proto=RSN (WPA2) - # 3: mode=1 (IBSS), proto=WPA - # 4: mode=1 (IBSS), proto=RSN (WPA2) key_idx=$3 key_mgmt=(0 WPA-PSK WPA-EAP IEEE8021X NONE WPA-NONE) - # 1: WPA-PSK - # 2: WPA-EAP - # 3: IEEE8021X - # 4: NONE - # 5: WPA-NONE pair_idx=$4 pair=(0 CCMP TKIP) - # 1: CCMP - # 2: TKIP group_idx=$5 group=(0 CCMP TKIP WEP104 WEP40 SHARED-WEP104 SHARED-WEP40) - # 1: CCMP - # 2: TKIP - # 3: WEP104 - # 4: WEP40 - # 5: SHARED-WEP104 - # 6: SHARED-WEP40 eap_idx=$6 eap=(0 TLS PEAP TTLS MD5 MSCHAPV2 OTP GTC ) - # 1: TLS - # 2: PEAP - # 3: TTLS - # 4: MD5 - # 5: MSCHAPV2 - # 6: OTP - # 7: GTC phase2_idx=$7 phase2=(0 MD5 MSCHAPV2 PAP CHAP MSCHAP OTP GTC) - # 1: MD5 - # 2: MSCHAPV2 - # 3: PAP - # 4: CHAP - # 5: MSCHAP - # 6: OTP - # 7: GTC - #iwl_essid=otc-11215947-asus Head="ctrl_interface=/var/run/wpa_supplicant\n\ ctrl_interface_group=wheel\n\ network={\n\ diff --git a/TestSuites/iwl/ts/perf.sh b/TestSuites/iwl/ts/perf.sh index 28f973c..03da929 100755 --- a/TestSuites/iwl/ts/perf.sh +++ b/TestSuites/iwl/ts/perf.sh @@ -90,18 +90,26 @@ perf_security=(0 Open WEP40 WEP104 WPA-PSK WPA-EAP WPA2-PSK WPA2-EAP) perf_updown=(0 Upload Download) perf_frag=(0 Frag) perf_file_size=300 -perfdir=/usr/bin +dir=/usr/bin -# perf <tool> <mode> <security> <upload> +# perf <tool> <mode> <security> <upload/download> <frag> # tool: 1: iperf 2: scp -# mode: 1: BSS AP (Another machine wire correct to AP) -# 2: BSS Peer (Two wireless machine) -# 3: IBSS +# trans_mode: 1: BSS-AP (Another machine wire correct to AP) +# 2: BSS-Peer (Two wireless machine) +# 3: IBSS # security: 1: None 2: WEP40 3: WEP104 4: WPA PSK # 5: WPA EAP 6: WPA2 PSK 7: WPA2 EAP # updown: 1: Upload 2: Download +# frag: 1:enable 2:disable + perf() -{ +{ + local tool=$1 + local trans_mode=$2 + local security=$3 + local updown=$4 + local frag=$5 + local str="" local peer=${iwl_peer[1]}; local peer_name=${iwl_peer[0]}; @@ -133,21 +141,21 @@ perf() ;; esac iwl_load_module - perf_connect $2 $3 $5 - if [ $2 -eq 1 ]; then + perf_connect $trans_mode $security $frag + if [ $trans_mode -eq 1 ]; then peer=${iwl_srv[1]} peer_name=${iwl_srv[0]} fi - if [ $1 -eq 1 ]; then - perf_iperf $peer $4 + if [ $tool -eq 1 ]; then + perf_iperf $peer $updown else # Prepare file to be download - if [ $4 -eq 2 ]; then + if [ $upload -eq 2 ]; then ssh $peer_name "dd if=/dev/zero of=/tmp/perf.$hn bs=1MB count=$perf_file_size" else dd if=/dev/zero of=/tmp/perf bs=1MB count=$perf_file_size fi - perf_scp $peer $4 + perf_scp $peer $updown fi #tet_infoline "data transfer rate is $iwl_rate" tpresult $iwl_rate @@ -156,11 +164,13 @@ perf() } # perf_iperf <peer machine> <updown> +# updown: 1: Upload 2: Download perf_iperf() { - if [ $2 -eq 1 ]; then + local updown=$2 + if [ $updown -eq 1 ]; then ssh $1 "pkill -9 iperf" - ssh $1 "$perfdir/iperf -s -u" & + ssh $1 "$dir/iperf -s -u" & else pkill -9 iperf iperf -s -u & @@ -168,12 +178,12 @@ perf_iperf() sleep 3 i=1 iwl_rate=0 - while [ $i -lt 2 ]; do - if [ $2 -eq 1 ]; then + while [ $i -le 2 ]; do + if [ $updown -eq 1 ]; then ipeer=`echo $1 |sed "s/test@//"` rate=`iperf -fm -c $ipeer -t 60 -u -b 450M |tail -n 2 | awk '/Mbits/{print $7}'` else - rate=`ssh $1 "$perfdir/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 2 |awk '/Mbits/{print $7}'` + rate=`ssh $1 "$dir/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 2 |awk '/Mbits/{print $7}'` fi if [ ! -z $rate ]; then iret=`echo "$rate >= $iwl_rate" |bc` @@ -181,7 +191,7 @@ perf_iperf() fi i=$((i+1)) done - if [ $2 -eq 1 ]; then + if [ $updown -eq 1 ]; then ssh $1 "pkill -9 iperf" else pkill -9 iperf @@ -189,15 +199,17 @@ perf_iperf() } # perf_scp <peer machine> <updown> + perf_scp() { + local updown=$2 local hn=`hostname -s` local iret=1 i=1 iwl_rate=0 # Get the best transfer rate - while [ $i -lt 2 ]; do - if [ $2 -eq 1 ]; then + while [ $i -le 2 ]; do + if [ $updown -eq 1 ]; then dur1=`(set +x; time -p scp /tmp/perf ${1}:/tmp/perf.$hn)2>&1` else dur1=`(set +x; time -p scp ${1}:/tmp/perf.$hn /tmp/perf.$hn)2>&1` @@ -218,36 +230,41 @@ perf_scp() } -# TODO: Need hack wpa in iwl_wpacommon.sh -# perf_connect <mode> <security> +# perf_connect <trans_mode> <security> <frag> +# trans_mode: 1: BSS-AP (Another machine wire correct to AP) +# 2: BSS-Peer (Two wireless machine) +# 3: IBSS +# security: 1: None 2: WEP40 3: WEP104 4: WPA PSK +# 5: WPA EAP 6: WPA2 PSK 7: WPA2 EAP +# frag: 1:enable 2:disable + + perf_connect() { - # security: 1: None 2: WEP40 3: WEP104 4: WPA PSK - # 5: WPA EAP 6: WPA2 PSK 7: WPA2 EAP - if [ ! -z $3 ] && [ $3 -eq 1 ]; then - case $2 in + local trans_mode=$1 + local security=$2 + local frag=$3 + if [ ! -z $frag ] && [ $frag -eq 1 ]; then + case $security in 2) str="$str -w enable -k 1 -f 300";; 3) str="$str -w enable -k 3 -f 300";; - 4) wpa2 1 2 2 2 1 0 0 1; return $?;; - 5) wpa2 2 1 1 1 0 0 0 1; return $?;; - 6) wpa2 2 1 1 1 0 0 0 1; return $?;; - 7) wpa2 2 2 1 1 1 0 0 1; return $?;; + 4) wpa2 1 1 2 2 0 0 1; return $?;; + 5) wpa2 1 2 1 1 0 0 1; return $?;; + 6) wpa2 2 1 1 1 0 0 1; return $?;; + 7) wpa2 2 2 1 1 1 0 1; return $?;; esac else - case $2 in + case $security in 2) str="$str -w enable -k 1";; 3) str="$str -w enable -k 3";; - 4) wpa2 1 2 2 2 1 0; return $?;; - 5) wpa2 2 1 1 1 0 0; return $?;; + 4) wpa2 1 1 2 2 0 0; return $?;; + 5) wpa2 1 2 1 1 0 0; return $?;; 6) wpa2 2 1 1 1 0 0; return $?;; 7) wpa2 2 2 1 1 1 0; return $?;; esac fi - # mode: 1: BSS AP (Another machine wire correct to AP) - # 2: BSS Peer (Two wireless machine) - # 3: IBSS - case $1 in + case $trans_mode in 1) iwl_test_bss $str;; 2) iwl_test_peer $str;; 3) iwl_test_ibss $str;; |
From: Zheng, J. <jia...@in...> - 2010-05-21 06:51:36
|
From: Jiajia Zheng <Jia...@in...> Code Clean Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/iwl_common.sh b/TestSuites/iwl/ts/iwl_common.sh index 695c684..ab0984a 100755 --- a/TestSuites/iwl/ts/iwl_common.sh +++ b/TestSuites/iwl/ts/iwl_common.sh @@ -34,13 +34,21 @@ iwl_displaykey=(0 $iwl_displaykey1 $iwl_displaykey2 $iwl_displaykey3 $iwl_displa iwl_srv=($iwl_esrv $iwl_wsrv) iwl_host=($iwl_ehost $iwl_whost) iwl_peer=($iwl_epeer $iwl_wpeer) -iwl_card=5 # Default 5000 serial cards # 3945 card -lspci -n | grep 8086:4222 && iwl_card=3 -lspci -n | grep 8086:4227 && iwl_card=3 +lspci -n | grep 8086:4222 && iwl_card=3945 +lspci -n | grep 8086:4227 && iwl_card=3945 # 4965 card -lspci -n | grep 8086:4229 && iwl_card=4 -lspci -n | grep 8086:4230 && iwl_card=4 +lspci -n | grep 8086:4229 && iwl_card=4956 +lspci -n | grep 8086:4230 && iwl_card=4956 +#5100 card +lspci -n | grep 8086:4232 && iwl_card=5100 +lspci -n | grep 8086:4237 && iwl_card=5100 +#5300 card +lspci -n | grep 8086:4235 && iwl_card=5300 +lspci -n | grep 8086:4236 && iwl_card=5300 +#1000 card +lspci -n | grep 8086:0083 && iwl_card=1000 +lspci -n | grep 8086:0084 && iwl_card=1000 export iwl_essid iwl_ap_mac iwl_wap iwl_apset_cmd iwl_card @@ -52,22 +60,32 @@ tet_title(){ is3945() { - test $iwl_card -eq 3 + test $iwl_card -eq 3945 } is4965() { - test $iwl_card -eq 4 + test $iwl_card -eq 4965 } -is5000() +is5100() { - test $iwl_card -eq 5 + test $iwl_card -eq 5100 +} + +is5300() +{ + test $iwl_card -eq 5300 +} + +is1000() +{ + test $iwl_card -eq 1000 } isagn() { - test $iwl_card -ne 3 + test $iwl_card -ne 3945 } @@ -89,7 +107,9 @@ iwl_load_iwlwifi() sleep 2 is3945 && modprobe iwl3945 debug=0x40000 is4965 && modprobe iwlagn debug=0x40000 - is5000 && modprobe iwlagn debug50=0x40000 + is5100 && modprobe iwlagn debug50=0x40000 + is5300 && modprobe iwlagn debug50=0x40000 + is1000 && modprobe iwlagn debug=0x40000 sleep 4 } diff --git a/TestSuites/iwl/ts/perf.sh b/TestSuites/iwl/ts/perf.sh index 830f7eb..28f973c 100755 --- a/TestSuites/iwl/ts/perf.sh +++ b/TestSuites/iwl/ts/perf.sh @@ -90,6 +90,7 @@ perf_security=(0 Open WEP40 WEP104 WPA-PSK WPA-EAP WPA2-PSK WPA2-EAP) perf_updown=(0 Upload Download) perf_frag=(0 Frag) perf_file_size=300 +perfdir=/usr/bin # perf <tool> <mode> <security> <upload> # tool: 1: iperf 2: scp @@ -159,7 +160,7 @@ perf_iperf() { if [ $2 -eq 1 ]; then ssh $1 "pkill -9 iperf" - ssh $1 "/usr/local/bin/iperf -s -u" & + ssh $1 "$perfdir/iperf -s -u" & else pkill -9 iperf iperf -s -u & @@ -172,7 +173,7 @@ perf_iperf() ipeer=`echo $1 |sed "s/test@//"` rate=`iperf -fm -c $ipeer -t 60 -u -b 450M |tail -n 2 | awk '/Mbits/{print $7}'` else - rate=`ssh $1 "/usr/local/bin/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 2 |awk '/Mbits/{print $7}'` + rate=`ssh $1 "$perfdir/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 2 |awk '/Mbits/{print $7}'` fi if [ ! -z $rate ]; then iret=`echo "$rate >= $iwl_rate" |bc` @@ -615,26 +616,6 @@ perf21721() . iwl_wpacommon.sh . iwl_common.sh -tpstart() -{ - local fn=`iwl_arrayno ${FUNCNAME[@]}` - local tpno=$((fn-3)) - local tpname=${FUNCNAME[$tpno]} - local postfix - case $iwl_band in - A-ONLY) postfix=_a;; - B-ONLY) postfix=_b;; - G-ONLY) postfix=_g;; - N-ONLY|N5-ONLY) postfix=_n;; - N2.4-ONLY) postfix=_n2;; - *) postfix="";; - esac - tet_output "201" 0 "${tpname}${postfix}" - #tet_title "$@" - FAIL=N - dmesg -c > /dev/null 2>&1 -} - tpresult() { tet_title "${perf_title} $@ Mbits/s" diff --git a/TestSuites/iwl/ts/reslt.sh b/TestSuites/iwl/ts/reslt.sh index b1e707c..f2d7e91 100755 --- a/TestSuites/iwl/ts/reslt.sh +++ b/TestSuites/iwl/ts/reslt.sh @@ -45,6 +45,9 @@ lspci -n | grep 8086:4237 && card=5100 #5300 card lspci -n | grep 8086:4235 && card=5300 lspci -n | grep 8086:4236 && card=5300 +#1000 card +lspci -n | grep 8086:0083 && card=1000 +lspci -n | grep 8086:0084 && card=1000 os=`uname -a | awk '{print tolower($12)}'` case $os in |
From: Zheng, J. <jia...@in...> - 2010-04-27 03:08:37
|
From: Jiajia Zheng <Jia...@in...> Use nl80211 instead of wext as the driver for wpa_supplicant. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/iwl_common.sh b/TestSuites/iwl/ts/iwl_common.sh index eb521b0..e08672b 100755 --- a/TestSuites/iwl/ts/iwl_common.sh +++ b/TestSuites/iwl/ts/iwl_common.sh @@ -491,7 +491,10 @@ iwl_apset() iwl_connect_with_wpa() { local conf=$3 - wpa_supplicant -Dwext -iwlan0 -c $conf & +# Use Linux wireless extensions +# wpa_supplicant -Dwext -iwlan0 -c $conf & +# Use nl80211 + wpa_supplicant -Dnl80211 -iwlan0 -c $conf & i=1 while [ $i -le 20 ] do |
From: Zheng, J. <jia...@in...> - 2010-04-09 08:04:32
|
From: Jiajia Zheng <Jia...@in...> Sometimes, the packets arrive "out of order" that "tail -n 1" will fail to get the bandwidth. Fix this issue by this patch. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/perf.sh b/TestSuites/iwl/ts/perf.sh index 71f71a0..830f7eb 100755 --- a/TestSuites/iwl/ts/perf.sh +++ b/TestSuites/iwl/ts/perf.sh @@ -170,9 +170,9 @@ perf_iperf() while [ $i -lt 2 ]; do if [ $2 -eq 1 ]; then ipeer=`echo $1 |sed "s/test@//"` - rate=`iperf -fm -c $ipeer -t 60 -u -b 450M |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` + rate=`iperf -fm -c $ipeer -t 60 -u -b 450M |tail -n 2 | awk '/Mbits/{print $7}'` else - rate=`ssh $1 "/usr/local/bin/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` + rate=`ssh $1 "/usr/local/bin/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 2 |awk '/Mbits/{print $7}'` fi if [ ! -z $rate ]; then iret=`echo "$rate >= $iwl_rate" |bc` |
From: Zheng, J. <jia...@in...> - 2010-04-09 03:57:47
|
From: Jiajia Zheng <Jia...@in...> Sets a timeout interval in seconds after which if no data has been received from the server, ssh will send a message through the encrypted channel to request a response from the server. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/iwl_common.sh b/TestSuites/iwl/ts/iwl_common.sh index d243cdd..eb521b0 100755 --- a/TestSuites/iwl/ts/iwl_common.sh +++ b/TestSuites/iwl/ts/iwl_common.sh @@ -525,9 +525,9 @@ iwl_scp_copy() file=/tmp/5M fi - scp -o ConnectTimeout=60 ${file} $target:${file1} || return 1 + scp -o ServerAliveInterval=30 ${file} $target:${file1} || return 1 tet_infoline "scp ${file} $target:${file1} success" - scp -o ConnectTimeout=60 $target:${file1} ${file1} || return 1 + scp -o ServerAliveInterval=30 $target:${file1} ${file1} || return 1 tet_infoline "scp $target:${file1} ${file1} success" md1=`md5sum ${file} |awk '{print $1}'` md2=`md5sum ${file1} |awk '{print $1}'` |
From: Zheng, J. <jia...@in...> - 2010-04-01 03:41:26
|
From: Jiajia Zheng <Jia...@in...> Modify performance testing script using iperf with UDP. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/perf.sh b/TestSuites/iwl/ts/perf.sh index 2a9aebf..71f71a0 100755 --- a/TestSuites/iwl/ts/perf.sh +++ b/TestSuites/iwl/ts/perf.sh @@ -159,20 +159,20 @@ perf_iperf() { if [ $2 -eq 1 ]; then ssh $1 "pkill -9 iperf" - ssh $1 "/usr/local/bin/iperf -s" & + ssh $1 "/usr/local/bin/iperf -s -u" & else pkill -9 iperf - iperf -s & + iperf -s -u & fi sleep 3 i=1 iwl_rate=0 - while [ $i -lt 4 ]; do + while [ $i -lt 2 ]; do if [ $2 -eq 1 ]; then ipeer=`echo $1 |sed "s/test@//"` - rate=`iperf -fm -c $ipeer -t 100 |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` + rate=`iperf -fm -c $ipeer -t 60 -u -b 450M |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` else - rate=`ssh $1 "/usr/local/bin/iperf -fm -c ${iwl_host[1]} -t 100" |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` + rate=`ssh $1 "/usr/local/bin/iperf -fm -c ${iwl_host[1]} -t 60 -u -b 450M" |tail -n 1 | sed "s/.*Bytes//" | awk '{print $1}'` fi if [ ! -z $rate ]; then iret=`echo "$rate >= $iwl_rate" |bc` @@ -195,7 +195,7 @@ perf_scp() i=1 iwl_rate=0 # Get the best transfer rate - while [ $i -lt 4 ]; do + while [ $i -lt 2 ]; do if [ $2 -eq 1 ]; then dur1=`(set +x; time -p scp /tmp/perf ${1}:/tmp/perf.$hn)2>&1` else |
From: Zheng, J. <jia...@in...> - 2010-03-30 05:57:42
|
From: Jiajia Zheng <Jia...@in...> Add a test suite based on nl80211 for IBSS connection and WEP encrypt connection. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/ibss_iw.sh b/TestSuites/iwl/ts/ibss_iw.sh new file mode 100755 index 0000000..4e987d5 --- /dev/null +++ b/TestSuites/iwl/ts/ibss_iw.sh @@ -0,0 +1,156 @@ +#!/bin/bash +# +#Copyright (c) 2006 - 2009, Intel Corporation +#Author: Jeff Zheng <jef...@in...> +#Contact: WiFi Test Development <wif...@li...> +# +#This program is free software; you can redistribute it and/or +#modify it under the terms of the GNU General Public License version +#2 as published by the Free Software Foundation. +# +#This program is distributed in the hope that it will be useful, but +#WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +#General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not, write to the Free Software Foundation, +#Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. +# + +set -x + +tet_startup="startup" # startup function +tet_cleanup="cleanup" # cleanup function + +iclist="ic1 ic3 ic5 ic6 ic7 ic8 ic9 ic10 ic11" +ic1="IBSS1" +ic3="IBSS3" +ic5="IBSSCHAN1" +ic6="IBSSDATA1" +ic7="IBSSSSID1" +ic8="BSS3" +ic9="BSS4" +ic10="IBSS1_CELL" +ic11="IBSSCHAN1_CELL" + +#===================== +# IBSS1 Configure two laptops in ad-hoc mode without WEP +IBSS1() +{ + tpstart "IBSS Unicast" + iwl_load_module + iwl_test_ibss || { iwl_fail; break; } + tpresult +} + +IBSS3() +{ + tpstart "IBSS reconnet after reload" + iwl_load_module + essid=${iwl_host[0]}-ibss-`date +%H%M%S` # Refer to iwl_test_ibss + iwl_test_ibss -s $essid || iwl_fail + tet_infoline "Reload driver and reassociate" + iwl_load_module + iwl_connect -s $essid -i && iwl_check ${iwl_peer[1]} + [ $? -eq 0 ] || iwl_fail + tpresult +} + +IBSSCHAN1() +{ + tpstart "IBSS all channel" + #iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_load_module + # workaround for ibss channel + ssh ${iwl_peer[0]} "modprobe -r iwl4965" + iwl_test_ibss -c $i || { iwl_fail; break; } + tet_infoline "Associate to IBSS cell with channel $i success" + done + tpresult +} + +IBSS1_CELL() +{ + tpstart "IBSS Unicast" + iwl_load_module + iwl_test_ibss_cell || { iwl_fail; break; } + tpresult +} + +IBSSCHAN1_CELL() +{ + tpstart "IBSS all channel" + #iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_load_module + # workaround for ibss channel + ssh ${iwl_peer[0]} "modprobe -r iwl4965" + iwl_test_ibss_cell -c $i || { iwl_fail; break; } + tet_infoline "Associate to IBSS cell with channel $i success" + done + tpresult +} + +IBSSDATA1() +{ + tpstart "IBSS broadcast" + iwl_load_module + iwl_test_ibss || { iwl_fail; break; } + "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" + ssh ${iwl_peer[0]} "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" + msg=`ping -b 192.168.50.255 -c3` + echo $msg |grep $iwl_wpeer - || iwl_fail + tpresult +} + + +IBSSSSID1() +{ + tpstart "SSID in IBSS probe response" + iwl_load_module + for i in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + iwl_ibss_ap -s $i -i && iwl_connect -s $i -i && iwl_check ${iwl_peer[1]} + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to IBSS cell with essid $i success" + done + tpresult +} + +BSS3() +{ + tpstart "BSS and IBSS can not commnuicate" + iwl_load_module + iwl_test_ibss || { iwl_fail; break; } + tet_infoline "Associate to IBSS cell success" + essid=${iwl_host[0]}-ibss # Refer to iwl_test_ibss + iwl_load_module + iwl_test -s $essid && iwl_apset -n $essid + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to BSS AP success" + ping -c 3 ${iwl_peer[1]} && { iwl_fail; break; } # Should not connect + tet_infoline "Cannot ping to IBSS cell in peer machine" + tpresult +} + +BSS4() +{ + tpstart "DUT is able to connect to AP and to IBSS network" + iwl_load_module + iwl_test || { iwl_fail; break; } + tet_infoline "Associate to BSS AP success" + iwl_test_ibss || { iwl_fail; break; } + tet_infoline "Associate to IBSS cell success" + tpresult + +} + +. iwl_iw.sh +. $TVS_ROOT/lib/TVSFunctions.sh + +# execute shell test case manager - must be last line +. $TET_ROOT/lib/xpg3sh/tcm.sh diff --git a/TestSuites/iwl/ts/iwl_association_iw.sh b/TestSuites/iwl/ts/iwl_association_iw.sh new file mode 100755 index 0000000..15bb56f --- /dev/null +++ b/TestSuites/iwl/ts/iwl_association_iw.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +#Copyright (c) 2006 - 2009, Intel Corporation +#Author: Jeff Zheng <jef...@in...> +#Contact: WiFi Test Development <wif...@li...> +# +#This program is free software; you can redistribute it and/or +#modify it under the terms of the GNU General Public License version +#2 as published by the Free Software Foundation. +# +#This program is distributed in the hope that it will be useful, but +#WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +#General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not, write to the Free Software Foundation, +#Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. +# + +dir=`dirname $0` +. $dir/tvs_env +. $dir/iwl_common.sh +. $dir/iwl_iw.sh +tet_infoline() +{ +echo $@ +} + +iwl_startup +iwl_load_module +iwl_connect $@ + diff --git a/TestSuites/iwl/ts/iwl_iw.sh b/TestSuites/iwl/ts/iwl_iw.sh index 04ac95c..fc0d089 100755 --- a/TestSuites/iwl/ts/iwl_iw.sh +++ b/TestSuites/iwl/ts/iwl_iw.sh @@ -132,6 +132,41 @@ iwl_connect_with_wpa() tet_infoline "Associated" } +# Setup a cell ap in test machine and connect to the cell from a peer +iwl_test_ibss_cell() +{ + # Peer machine might have the essid, so need an uniq essid + essid=${iwl_host[0]}-ibss-`date +%H%M%S` + iwl_connect -s $essid $@ -i || iwl_fail "Setup cell failed" + tet_infoline "Setup cell $essid success" + iwl_ssh ${iwl_peer[0]} mkdir -p /tmp/${iwl_host[0]} + scp iwl_association_iw.sh iwl_common.sh iwl_iw.sh iwl_env.sh \ + $TVS_ROOT/tsets/iwl/tvs_env ${iwl_peer[0]}:/tmp/${iwl_host[0]} + iwl_ssh ${iwl_peer[0]} /tmp/${iwl_host[0]}/iwl_association_iw.sh -s \ + $essid -i -l ${iwl_peer[1]} -p ${iwl_host[1]} \ + || iwl_fail "Associate to cell $essid failed" + iwl_check ${iwl_peer[1]} || \ + iwl_fail "Ping and scp from/to ${iwl_peer[1]} failed" + tet_infoline "Associate to cell $essid success" +} + +# Preparing to setup cell app in peer machine +iwl_ibss_ap() +{ + iwl_ssh ${iwl_peer[0]} mkdir -p /tmp/${iwl_host[0]} + scp iwl_association_iw.sh iwl_common.sh iwl_iw.sh \ + $TVS_ROOT/tsets/iwl/tvs_env ${iwl_peer[0]}:/tmp/${iwl_host[0]} + iwl_ssh ${iwl_peer[0]} /tmp/${iwl_host[0]}/iwl_association_iw.sh $@ \ + -l ${iwl_peer[1]} -p ${iwl_host[1]} + if [ $? -ne 0 ]; then + tet_infoline "IBSS cell setup at ${iwl_peer[0]} failed" + return 1 + else + tet_infoline "IBSS cell setup at ${iwl_peer[0]} success" + return 0 + fi +} + get_chans() { allchans=`iw list|grep "MHz \[" |awk -F[ '{print $2}'|awk -F] '{print $1}'` diff --git a/TestSuites/iwl/ts/wep_iw.sh b/TestSuites/iwl/ts/wep_iw.sh new file mode 100755 index 0000000..9a03491 --- /dev/null +++ b/TestSuites/iwl/ts/wep_iw.sh @@ -0,0 +1,315 @@ +#!/bin/bash +# +#Copyright (c) 2006 - 2009, Intel Corporation +#Author: Jeff Zheng <jef...@in...> +#Contact: WiFi Test Development <wif...@li...> +# +#This program is free software; you can redistribute it and/or +#modify it under the terms of the GNU General Public License version +#2 as published by the Free Software Foundation. +# +#This program is distributed in the hope that it will be useful, but +#WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +#General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not, write to the Free Software Foundation, +#Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. +# + +set -x + +tet_startup="startup" # startup function +tet_cleanup="cleanup" # cleanup function + +iclist="ic1 ic2 ic3 ic4 ic5 ic6 ic8 ic10 ic11 ic12 ic13 ic14 ic15 ic16 ic17 ic19 ic20 ic21 ic22 ic23 ic24 ic25 ic26" +ic1="WEPBSS1" +ic2="WEPBSS2" +ic3="WEPBSS3" +ic4="WEPBSS4" +ic5="WEPBSS5" +ic6="WEPBSS6" +ic8="WEPBSS8_9" +ic10="WEPBSS10" +ic12="WEPBSS12" +ic13="WEPBSS13" +ic14="WEPBSS14" +ic15="WEPBSS15" +ic16="WEPBSS16" +ic17="WEPBSS17" +ic19="WEPIBSS1" +ic20="WEPIBSS2" +ic21="WEPIBSS3" +ic22="WEPIBSS4" +ic23="WEPIBSS5" +ic24="WEPIBSS6" +ic25="WEPIBSS1" +ic26="WEPIBSS2" + +#============== +# WEP1 64bit KEY (KEY1) +WEPBSS1() +{ + tpstart "BSS Open WEP40" + iwl_load_module + iwl_test -a open -b enable -w enable -k 1 || { iwl_fail; break; } + tpresult +} + +# WEP2 128bit KEY +WEPBSS2() +{ + tpstart "BSS Open WEP104" + iwl_load_module + iwl_test -a open -b enable -w enable -k 3 || { iwl_fail; break; } + tpresult +} +# replace with wpa040600 +#WEPBSS3() +#{ +# tpstart "BSS Shared WEP40" +# iwl_ssh $iwl_apset_cmd --reboot || return 1 +# iwl_load_module +# iwl_test -w enable -k 1 -a shared || { iwl_fail; break; } +# tpresult +#} +#replace with wpa040500 +#WEPBSS4() +#{ +# tpstart "BSS Shared WEP104" +# iwl_ssh $iwl_apset_cmd --reboot || return 1 +# iwl_load_module +# iwl_test -w enable -k 3 -a shared || { iwl_fail; break; } +# tpresult +#} + +WEPBSS5() +{ + tpstart "BSS Shared hidden-AP" + iwl_ssh $iwl_apset_cmd --reboot || return 1 + iwl_load_module + iwl_test -w enable -k 4 -a shared -b disable || { iwl_fail; break; } + tpresult +} + +WEPBSS6() +{ + tpstart "BSS Open hidden-AP" + iwl_load_module + iwl_test -w enable -k 2 -a open -b disable || { iwl_fail; break; } + tpresult +} + +WEPBSS8_9() +{ + tpstart "WEP40,WEP104--KEYIDX" + iwl_load_module + for i in 1 2 3 4 + do + iwconfig wlan0 key [$i] ${iwl_keyvalue[$i]} + done + for i in 1 2 3 4 + do + iwl_apset -w enable -k $i + ifconfig wlan0 down + iwconfig wlan0 key [$i] + iwconfig wlan0 |grep ${iwl_displaykey[$i]} - || { iwl_fail; break; } + tet_infoline "iwconfig wlan0 key [$i] success" + ifconfig wlan0 up + iwconfig wlan0 essid $iwl_essid channel $iwl_channel + ifconfig wlan0 ${iwl_host[1]} + sleep 5 # Long enough? + ping -c 5 -I wlan0 ${iwl_srv[1]} || { iwl_fail; break; } + tet_infoline "Associate to $iwl_essid success" + done + tpresult +} + + +WEPBSS10() +{ + tpstart "WEP string key" + iwl_load_module + iwl_apset -w enable -e 64 -1 "6161616161" + ifconfig wlan0 down + iwconfig wlan0 key s:aaaaa + iwconfig wlan0 |grep "6161-6161-61" - || { iwl_fail; break; } + tet_infoline "iwconfig wlan0 key s:aaaaa success" + ifconfig wlan0 up + iwconfig wlan0 essid $iwl_essid channel $iwl_channel + ifconfig wlan0 ${iwl_host[1]} + sleep 5 # Long enough? + ping -c 5 -I wlan0 ${iwl_srv[1]} || { iwl_fail; break; } + tet_infoline "Associate to $iwl_essid success" + tpresult +} + +WEPBSS12() +{ + tpstart "BSS SSID WEP104" + iwl_load_module + for s in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + iwl_test -s $s -w enable -k 3 && iwl_apset -n $s + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to AP $s success" + done + tpresult +} + +WEPBSS13() +{ + tpstart "BSS SSIDs WEP40" + iwl_load_module + for s in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + iwl_test -s $s -w enable -k 1 && iwl_apset -n $s + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to AP $s success" + done + tpresult +} + +WEPBSS14() +{ + tpstart "BSS Channel WEP40" + iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_test -c $i -w enable -k 2 + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to AP with channel $i success" + done + tpresult +} + +WEPBSS15() +{ + tpstart "BSS Channel WEP104" + tpstart "BSS WEP104 all channels" + iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_test -c $i -w enable -k 4 + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to AP with channel $i success" + done + tpresult +} + +WEPBSS16() +{ + tpstart "Changing key on AP and Laptops and reassociation--open mode" + iwl_load_module + iwl_test -w enable -k 1 -a open || { iwl_fail; break; } + tet_infoline "Associate in open mode success" + iwl_test -w enable -e 64 -1 "1234567890" || { iwl_fail; break; } + tet_infoline "Associate in open mode success again" + tpresult +} + +WEPBSS17() +{ + tpstart "Changing key on AP and Laptops and reassociation--shared mode" + iwl_load_module + iwl_test -w enable -k 1 -a shared || { iwl_fail; break; } + tet_infoline "Associate in shared mode success" + iwl_test -e 64 -1 "1234567890" -a shared || { iwl_fail; break; } + tet_infoline "Associate in shared mode success again" + tpresult +} + +#WEP15 Connect with key to open AP + +WEPIBSS1() +{ + tpstart "IBSS WEP40" + iwl_load_module + iwl_test_ibss -w enable -k 2 || { iwl_fail; break; } + tpresult +} + + +WEPIBSS2() +{ + tpstart "IBSS WEP104" + iwl_load_module + iwl_test_ibss -w enable -k 3 || { iwl_fail; break; } + tpresult +} + +WEPIBSS1_CELL() +{ + tpstart "IBSS WEP40" + iwl_load_module + iwl_test_ibss_cell -w enable -k 2 || { iwl_fail; break; } + tpresult +} + + +WEPIBSS2_CELL() +{ + tpstart "IBSS WEP104" + iwl_load_module + iwl_test_ibss_cell -w enable -k 3 || { iwl_fail; break; } + tpresult +} + +WEPIBSS3() +{ + tpstart "IBSS--SSID--WEP40" + iwl_load_module + for i in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + iwl_ibss_ap -s $i -w enable -k 1 -i && iwl_connect -s $i -w enable -k 1 -i && iwl_check ${iwl_peer[1]} + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to IBSS $i success" + done + tpresult + +} + +WEPIBSS4() +{ + tpstart "IBSS--SSID--WEP104" + iwl_load_module + for i in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + iwl_ibss_ap -s $i -w enable -k 3 -i && iwl_connect -s $i -w enable -k 3 -i && iwl_check ${iwl_peer[1]} + [ $? -ne 0 ] && { iwl_fail; break; } + tet_infoline "Associate to IBSS $i success" + done + tpresult +} + +WEPIBSS5() +{ + tpstart "IBSS--Channle--WEP40" + iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_test_ibss -c $i -w enable -k 2 || { iwl_fail; break; } + tet_infoline "Associate to IBSS with channel $i success" + done + tpresult +} + +WEPIBSS6() +{ + tpstart "IBSS--Channel--WEP104" + iwl_load_module + for i in ${iwl_chans[@]} + do + iwl_test_ibss -c $i -w enable -k 3 || { iwl_fail; break; } + tet_infoline "Associate to IBSS with channel $i success" + done + tpresult + +} + +. iwl_iw.sh +. $TVS_ROOT/lib/TVSFunctions.sh + +# execute shell test case manager - must be last line +. $TET_ROOT/lib/xpg3sh/tcm.sh |
From: Zheng, J. <jia...@in...> - 2010-03-18 08:19:02
|
From: Jiajia Zheng <Jia...@in...> Add a test suite based on nl80211 for BSS connection. We will replace the current BSS connection test suite based on wext in nightly testing with this new test suite. Signed-off-by: Jiajia Zheng <Jia...@in...> --- diff --git a/TestSuites/iwl/ts/bss_iw.sh b/TestSuites/iwl/ts/bss_iw.sh new file mode 100755 index 0000000..78d8753 --- /dev/null +++ b/TestSuites/iwl/ts/bss_iw.sh @@ -0,0 +1,135 @@ +#!/bin/bash +# +#Copyright (c) 2006 - 2009, Intel Corporation +#Author: Jeff Zheng <jef...@in...> +#Contact: WiFi Test Development <wif...@li...> +# +#This program is free software; you can redistribute it and/or +#modify it under the terms of the GNU General Public License version +#2 as published by the Free Software Foundation. +# +#This program is distributed in the hope that it will be useful, but +#WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +#General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not, write to the Free Software Foundation, +#Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. +# + +set -x + +tet_startup="startup" # startup function +tet_cleanup="cleanup" # cleanup function +iclist="ic1 ic2 ic4 ic5 ic6 ic7 ic8" +ic1="BSS1" +ic2="BSS2" +ic3="BSS5" +ic4="BSSDATA1" +ic5="BSSDATA2" +ic6="BSSSSID1" +ic7="BSSCHAN1" +ic8="BSS11NCHAN1" + +#============== +BSS1() +{ + tpstart "Broadcast AP" + iwl_load_module + iwl_test -a open -b enable + tpresult +} + +BSS2() +{ + tpstart "Hidden AP" + iwl_load_module + iwl_test -a open -b disable + tpresult +} + +BSS5() +{ + local pid + tpstart "Get IP through DHCP" + iwl_load_module + iwl_test -d + # Kill dhclient that launched in iwl_connect() + pid=`ps -ef |grep dhclient |grep wlan0 |awk '{print $2}'` + kill -9 $pid + tpresult +} + +# BSSDATA1 Send Unicast package to another wireless achine +BSSDATA1() +{ + tpstart "BSS unicast" + iwl_load_module + iwl_test_peer + tpresult +} + +# BSSDATA2 Send Broadcast package to the network +BSSDATA2() +{ + tpstart "BSS broadcast" + iwl_load_module + iwl_test_peer + msg=`ping -b 192.168.50.255 -c 10` + "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" + ssh ${iwl_peer[0]} "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" + echo $msg |grep $iwl_wap - || iwl_fail + echo $msg |grep $iwl_wpeer - || iwl_fail + tpresult +} + +#BSSSSID1 different names of SSID +BSSSSID1() +{ + tpstart "BSS SSIDs" + iwl_load_module + for i in A linus 9 _ aaaaaaa11111111-----AAAAAAAAA1a_ + do + tet_infoline "Associating to essid $i success" + iwl_test -s $s && iwl_apset -n $s + tet_infoline "Success" + done + tpresult +} + + +BSSCHAN1() +{ + tpstart "BSS all channels" + iwl_load_module + for i in ${iwl_chans[@]} + do + tet_infoline "Associating with channel $i" + iwl_test -c $i + tet_infoline "Success" + done + tpresult +} + +BSS11NCHAN1() +{ + tpstart "BSS fat channel" + iwl_load_module + for i in ${iwl_chans[@]} + do + tet_infoline "Associating with fat channel $i above" + iwl_test -c $i -h 40-above + tet_infoline "Success" + tet_infoline "Associating with fat channel $i below" + iwl_test -h 40-below + tet_infoline "Success" + done + tpresult +} + +. iwl_iw.sh +. $TVS_ROOT/lib/TVSFunctions.sh + +# execute shell test case manager - must be last line +. $TET_ROOT/lib/xpg3sh/tcm.sh diff --git a/TestSuites/iwl/ts/iwl_iw.sh b/TestSuites/iwl/ts/iwl_iw.sh index e51bf34..acf5eb1 100755 --- a/TestSuites/iwl/ts/iwl_iw.sh +++ b/TestSuites/iwl/ts/iwl_iw.sh @@ -15,8 +15,8 @@ #along with this program; if not, write to the Free Software Foundation, #Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. # - -. iwl_common.sh +dir=`dirname $0` +. $dir/iwl_common.sh iwl_keyvalue=(0 $iwl_keyvalue1 $iwl_keyvalue2 $iwl_keyvalue3 $iwl_keyvalue4) iwl_displaykey=(0 $iwl_displaykey1 $iwl_displaykey2 $iwl_displaykey3 $iwl_displaykey4) @@ -33,6 +33,7 @@ iwl_connect() local ap_mac local ibss local lhost # Local machine ip + local phost # Peer machine ip local dhcp local supplicant ifconfig wlan0 up @@ -41,11 +42,13 @@ iwl_connect() while getopts "m:c:b:h:f:r:s:w:k:e:1:2:3:4:a:t:l:p:x:idSA:" Option do case $Option in - c) iw dev wlan0 set channel $OPTARG;; + c) channel=$OPTARG;; s) essid=$OPTARG;; k) keyindex=$OPTARG;; x) wpa_conf=$OPTARG;; i) ibss=1;; + l) lhost=$OPTARG;; + p) phost=$OPTARG;; S) supplicant=1;; A) ap_mac=$OPTARG;; ?) echo $Options not necessary;; @@ -53,17 +56,10 @@ iwl_connect() done if [ -z "$supplicant" -o "$supplicant" != "1" ]; then [ -z "$essid" ] && essid=$iwl_essid - for i in 1 2 3 4 5 - do - sleep 3 - [ -z "$ap_mac" ] && ap_mac=$iwl_ap_mac - iw dev wlan0 scan|grep $ap_mac - && break - done - [ $? -ne 0 ] && { tet_infoline "Cannot scan $ap_mac"; return; } - tet_infoline "There is $ap_mac" - - [ -z "$channel" ] && channel=$iwl_channel +### BSS Connection ### if [ -z $ibss ]; then + [ -z "$channel" ] && channel=$iwl_channel + [ -z "$ap_mac" ] && ap_mac=$iwl_ap_mac if [ ! -z "$keyindex" ]; then key=${iwl_keyvalue[$keyindex]} tet_infoline "With key $((keyindex-1)):$key" @@ -73,13 +69,30 @@ iwl_connect() fi [ $? -ne 0 ] && { tet_infoline "Associate to $essid $ap_mac failed"; return; } sleep 6 +### Check BSS connection status ### + i=1 + while [ $i -lt 30 ]; do + iw dev wlan0 station dump|grep "$iwl_ap_mac" && break +# iw dev wlan0 link|grep "$iwl_ap_mac" && break + sleep 2 + i=$((i+1)) + echo $i + done + [ $i -lt 30 ] || { tet_infoline "Cannot associate"; return 1;} + tet_infoline "Associated to $essid" +### IBSS Connection ### else ifconfig wlan0 down sleep 2 iw dev wlan0 set type ibss || { tet_infoline "set ibss failed"; return;} ifconfig wlan0 up sleep 3 - freq=`iw list |grep "MHz \[$channel\]" |awk '{print $2}'` + + if [ -z "$channel" ]; then + freq=2412 + else + freq=`iw list |grep "MHz \[$channel\]" |awk '{print $2}'` + fi if [ ! -z "$keyindex" ]; then key=${iwl_keyvalue[$keyindex]} tet_infoline "With key $((keyindex-1)):$key" @@ -87,24 +100,13 @@ iwl_connect() else iw dev wlan0 ibss join $essid $freq fi - [ $? -ne 0 ] && { tet_infoline "Associate to $essid failed"; return; } fi +### WPA key management ### else iwl_connect_with_wpa 1 1 "$wpa_conf" || \ { tet_infoline "wpa_supplicant with $wpa_conf failed"; return 1; } fi - - i=1 - while [ $i -lt 30 ]; do - #iw dev wlan0 station dump|grep "$iwl_ap_mac" && break - iw dev wlan0 link|grep "$iwl_ap_mac" && break - sleep 2 - i=$((i+1)) - echo $i - done - [ $i -lt 30 ] || { tet_infoline "Cannot associat"; return 1;} - tet_infoline "Associated to $essid" - +### assign or get IP address ### [ -z $lhost ] && lhost=${iwl_host[1]} if [ -z $dhcp ]; then ifconfig wlan0 $lhost || return 1 @@ -147,15 +149,28 @@ get_chans() iwl_startup() { + if [ -z "$iwl_essid" ]; then + case $iwl_band in + # 5GHz band + A-ONLY|N-ONLY|N5-ONLY) iwl_essid=$iwl_ap"-5g";; + # 2.4GHz band + B-ONLY|G-ONLY|N2.4-ONLY) iwl_essid=$iwl_ap"-2.4g";; + esac + fi + iwl_chans=`get_chans "$iwl_apchans"` + [ -z "$iwl_chans" ] && iwl_chans=$iwl_channel + + if [ -z "$iwl_ap_mac" ]; then - iwl_ssh $iwl_apset_cmd --reset +# iwl_ssh $iwl_apset_cmd --reset ifconfig wlan0 up || { iwl_load_module; ifconfig wlan0 up; } for i in 1 2 3 4 5 do - iw dev wlan0 scan |grep -i $iwl_essid -7 > /tmp/aplist && break + iw dev wlan0 scan |grep -i $iwl_essid -B8 > /tmp/aplist && break done iwl_ap_mac=`cat /tmp/aplist |grep BSS |awk '{print $2}'` - iwl_channel=`cat /tmp/aplist |grep channel |awk '{print $5}'` + iwl_freq=`cat /tmp/aplist |grep freq |awk '{print $2}'` + iwl_channel=`iw list | grep "$iwl_freq" |awk '{print $4}' | sed 's/\[//g' |sed 's/\]//g'` # TODO: Need find a way to get iwl_apchans, here is just a workaround if [ ! -z "$iwl_channel" ]; then echo " 1 2 3 4 5 6 7 8 9 10 11 " | grep " $iwl_channel " && \ |
From: Zheng, J. <jef...@in...> - 2010-03-08 02:21:25
|
Hi, I leaves iwlwifi project and Jiajia Zheng takes over all my tasks in this project, including testing, bugzilla maintanance and test script maintanance. Bests Jeff |
From: Zheng, J. <jia...@in...> - 2010-02-10 02:18:28
|
From: Jiajia Zheng <jia...@in...> This patch is to fix the PSP test cases bug. Signed-off-by: Jiajia Zheng <jia...@in...> --- diff --git a/TestSuites/iwl/ts/power.sh b/TestSuites/iwl/ts/power.sh index ae87f34..3708543 100755 --- a/TestSuites/iwl/ts/power.sh +++ b/TestSuites/iwl/ts/power.sh @@ -240,7 +240,7 @@ PMPSP1() tet_infoline "Associate to BSS success" mount -t debugfs debugfs /sys/kernel/debug - cd /sys/kernel/debug/ieee80211/phy0/iwlagn/data + cd /sys/kernel/debug/ieee80211/phy*/iwlagn/data if [ $? -ne 0 ]; then tet_infoline "no debugfs inferface for PSP" return 1 @@ -255,7 +255,7 @@ PMPSP1() tet_infoline "cant set power_level" return 1 fi - iwl_check ${iwl_peer[1]} || { iwl_fail; break; } + iwl_check ${iwl_srv[1]} || { iwl_fail; break; } tet_infoline "Set power_level to $i success" i=$((i+1)) done @@ -270,7 +270,7 @@ PMPSP2() tet_infoline "Associate to IBSS success" mount -t debugfs debugfs /sys/kernel/debug - cd /sys/kernel/debug/ieee80211/phy0/iwlagn/data + cd /sys/kernel/debug/ieee80211/phy*/iwlagn/data if [ $? -ne 0 ]; then tet_infoline "no debugfs inferface for PSP" return 1 |
From: Zheng, J. <jef...@in...> - 2010-02-09 08:59:13
|
From: Jeff Zheng <Jef...@in...> For unknown reason, channel information is removed from ibss cases. Add it back Signed-off-by: Jeff Zheng <Jef...@in...> --- TestSuites/iwl/ts/iwl_common.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/TestSuites/iwl/ts/iwl_common.sh b/TestSuites/iwl/ts/iwl_common.sh index 345d77c..d243cdd 100755 --- a/TestSuites/iwl/ts/iwl_common.sh +++ b/TestSuites/iwl/ts/iwl_common.sh @@ -409,6 +409,8 @@ iwl_connect() fi ifconfig wlan0 up sleep 3 + iwconfig wlan0 channel $channel + sleep 1 iwconfig wlan0 essid $essid tet_infoline "Associating to IBSS cell $essid" fi -- 1.6.4 Bests Jeff |
From: Zheng, J. <jef...@in...> - 2010-02-05 05:56:41
|
This will need an extra global variable... how about this patch? From: Jiajia Zheng <jia...@in...> Date: Fri, 5 Feb 2010 13:58:20 +0800 Subject: [PATCH] Fix the bug of test case IBSS3 This patch is to fix the issue that different IBSS essid were using in test case IBSS3. Signed-off-by: Jiajia Zheng <jia...@in...> Signed-off-by: Jeff Zheng <Jef...@in...> --- TestSuites/iwl/ts/ibss.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TestSuites/iwl/ts/ibss.sh b/TestSuites/iwl/ts/ibss.sh index 07e28b3..fe7d316 100755 --- a/TestSuites/iwl/ts/ibss.sh +++ b/TestSuites/iwl/ts/ibss.sh @@ -48,8 +48,8 @@ IBSS3() { tpstart "IBSS reconnet after reload" iwl_load_module - iwl_test_ibss || iwl_fail - essid=${iwl_host[0]}-ibss # Refer to iwl_test_ibss + essid=${iwl_host[0]}-ibss-`date +%H%M%S` # Refer to iwl_test_ibss + iwl_test_ibss -s $essid || iwl_fail tet_infoline "Reload driver and reassociate" iwl_load_module iwl_connect -s $essid -i && iwl_check ${iwl_peer[1]} -- 1.6.4 Bests Jeff >-----Original Message----- >From: Zheng, Jiajia [mailto:jia...@in...] >Sent: 2010年2月3日 11:33 >To: Wif...@li... >Subject: [Wifi-test-devel] [PATCH-2] Fix the bug of test case IBSS3 > >From: Jiajia Zheng <jia...@in...> > >This patch is to fix the issue that different IBSS essid were >using in test case IBSS3. > >Signed-off-by: Jiajia Zheng <jia...@in...> >--- >diff --git a/TestSuites/iwl/ts/ibss.sh b/TestSuites/iwl/ts/ibss.sh >index 07e28b3..a06c6d1 100755 >--- a/TestSuites/iwl/ts/ibss.sh >+++ b/TestSuites/iwl/ts/ibss.sh >@@ -49,7 +49,7 @@ IBSS3() > tpstart "IBSS reconnet after reload" > iwl_load_module > iwl_test_ibss || iwl_fail >- essid=${iwl_host[0]}-ibss # Refer to iwl_test_ibss >+ essid=$iwl_pre_essid > tet_infoline "Reload driver and reassociate" > iwl_load_module > iwl_connect -s $essid -i && iwl_check ${iwl_peer[1]} >diff --git a/TestSuites/iwl/ts/iwl_common.sh >b/TestSuites/iwl/ts/iwl_common.sh >index 345d77c..67255bb 100755 >--- a/TestSuites/iwl/ts/iwl_common.sh >+++ b/TestSuites/iwl/ts/iwl_common.sh >@@ -42,7 +42,7 @@ lspci -n | grep 8086:4227 && iwl_card=3 > lspci -n | grep 8086:4229 && iwl_card=4 > lspci -n | grep 8086:4230 && iwl_card=4 > >-export iwl_essid iwl_ap_mac iwl_wap iwl_apset_cmd iwl_card >+export iwl_essid iwl_ap_mac iwl_wap iwl_apset_cmd iwl_card >iwl_pre_essid > > # tet_title <test case title>. Put it here so that we can use > # original tet >@@ -179,6 +179,7 @@ iwl_test_ibss() > { > # Peer machine might have the essid, so need an uniq essid > essid=${iwl_host[0]}-ibss-`date +%H%M%S` >+ iwl_pre_essid=$essid > #iwl_ibss_ap -s $essid $@ -i && iwl_connect -s $essid $@ >-i && iwl_check ${iwl_peer[1]} > iwl_ibss_ap -s $essid $@ -i || iwl_fail "Set ad-hoc cell >at peer failed" > iwl_connect -s $essid $@ -i || iwl_fail "Associate failed" > > >--------------------------------------------------------------- >--------------- >The Planet: dedicated and managed hosting, cloud storage, colocation >Stay online with enterprise data centers and the best network >in the business >Choose flexible plans and management services without >long-term contracts >Personal 24x7 support from experience hosting pros just a >phone call away. >http://p.sf.net/sfu/theplanet-com >_______________________________________________ >Wifi-test-devel mailing list >Wif...@li... >https://lists.sourceforge.net/lists/listinfo/wifi-test-devel > |
From: Zheng, J. <jia...@in...> - 2010-02-03 03:34:44
|
From: Jiajia Zheng <jia...@in...> This patch is to fix the issue that different IBSS essid were using in test case IBSS3. Signed-off-by: Jiajia Zheng <jia...@in...> --- diff --git a/TestSuites/iwl/ts/ibss.sh b/TestSuites/iwl/ts/ibss.sh index 07e28b3..a06c6d1 100755 --- a/TestSuites/iwl/ts/ibss.sh +++ b/TestSuites/iwl/ts/ibss.sh @@ -49,7 +49,7 @@ IBSS3() tpstart "IBSS reconnet after reload" iwl_load_module iwl_test_ibss || iwl_fail - essid=${iwl_host[0]}-ibss # Refer to iwl_test_ibss + essid=$iwl_pre_essid tet_infoline "Reload driver and reassociate" iwl_load_module iwl_connect -s $essid -i && iwl_check ${iwl_peer[1]} diff --git a/TestSuites/iwl/ts/iwl_common.sh b/TestSuites/iwl/ts/iwl_common.sh index 345d77c..67255bb 100755 --- a/TestSuites/iwl/ts/iwl_common.sh +++ b/TestSuites/iwl/ts/iwl_common.sh @@ -42,7 +42,7 @@ lspci -n | grep 8086:4227 && iwl_card=3 lspci -n | grep 8086:4229 && iwl_card=4 lspci -n | grep 8086:4230 && iwl_card=4 -export iwl_essid iwl_ap_mac iwl_wap iwl_apset_cmd iwl_card +export iwl_essid iwl_ap_mac iwl_wap iwl_apset_cmd iwl_card iwl_pre_essid # tet_title <test case title>. Put it here so that we can use # original tet @@ -179,6 +179,7 @@ iwl_test_ibss() { # Peer machine might have the essid, so need an uniq essid essid=${iwl_host[0]}-ibss-`date +%H%M%S` + iwl_pre_essid=$essid #iwl_ibss_ap -s $essid $@ -i && iwl_connect -s $essid $@ -i && iwl_check ${iwl_peer[1]} iwl_ibss_ap -s $essid $@ -i || iwl_fail "Set ad-hoc cell at peer failed" iwl_connect -s $essid $@ -i || iwl_fail "Associate failed" |