2010-09-23 00:17:19

by Luis R. Rodriguez

[permalink] [raw]
Subject: [PATCH] wifi-test: add simple roam test script

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 <[email protected]>
Signed-off-by: Luis R. Rodriguez <[email protected]>
---

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 <[email protected]>
+#
+# 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



2010-09-23 00:22:41

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

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 <[email protected]>
> Signed-off-by: Luis R. Rodriguez <[email protected]>
> ---
>
> 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

2010-09-23 18:07:10

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

On Thu, Sep 23, 2010 at 8:03 AM, Johannes Berg
<[email protected]> 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/[email protected]
>> >
>> > 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

2010-09-23 15:02:42

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

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/[email protected]
>
> 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 :-)

johannes


2010-09-23 08:52:42

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

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/[email protected]

johannes


2010-09-23 14:53:55

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

On Thu, Sep 23, 2010 at 1:52 AM, Johannes Berg
<[email protected]> 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/[email protected]

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

2010-09-23 15:03:48

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

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/[email protected]
> >
> > 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.

johannes


2010-09-27 10:39:56

by Holger Schurig

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

> It says IP is 0x3, so technically it's not even NULL.

Sounds like someone is using an index into a table of addresses as the address
instead.

--
Homepage: http://www.holgerschurig.de

2010-09-23 18:10:29

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] wifi-test: add simple roam test script

On Thu, 2010-09-23 at 11:06 -0700, Luis R. Rodriguez wrote:

> >> > >> [ 3276.730081] BUG: unable to handle kernel NULL pointer dereference at 0000000000000003
> >> > >> [ 3276.730148] IP: [<0000000000000003>] 0x3

> > 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 ?

It says IP is 0x3, so technically it's not even NULL.

johannes


2010-10-13 02:42:26

by Zheng, Jiajia

[permalink] [raw]
Subject: RE: [PATCH] wifi-test: add simple roam test script

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 <[email protected]>
> Signed-off-by: Luis R. Rodriguez <[email protected]>
> ---

The patch has been applied to wifi-test. Thank you for adding this roam test.

bests,
jiajia