[Prism54-devel] [Bug 133] New: hostapd WPA-PSK + prism54 module unloading issue

bugzilla-daemon at mcgrof.com bugzilla-daemon at mcgrof.com
Sun Sep 25 21:30:15 UTC 2005


http://prism54.org/cgi-bin/bugzilla/show_bug.cgi?id=133

           Summary: hostapd WPA-PSK + prism54 module unloading issue
           Product: prim54
           Version: 1.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Device Driver
        AssignedTo: prism54-devel at prism54.org
        ReportedBy: wilder at hq.alert.sk


Hi,
I try to run hostapd (WPA-PSK) together with prism54.
My kernel version is 2.6.13.1 and I have absolutely no problem with prism54
driver without hostapd support.

I have the following problem:

Configuration file: /etc/hostapd/hostapd.conf
Opening raw packet socket for ifindex 3
Opening raw packet socket for ifindex 4
Using interface eth1 with hwaddr 00:60:b3:1c:2e:94 and ssid 'trip'
Could not set PrivacyInvoked for interface eth1
WPA initialization failed.
rmdir[ctrl_interface]: No such file or directory
Could not disable PrivacyInvoked for interface eth1

My strace output:
.
.

write(1, "Opening raw packet socket for if"..., 40) = 40
bind(3, {sa_family=AF_PACKET, proto=0x888e, if3, pkttype=PACKET_HOST,
addr(0)={0, }, 20) = 0
ioctl(3, SIOCGIFHWADDR, {ifr_name="eth1", ifr_hwaddr=00:60:b3:1c:2e:94}) = 0
socket(PF_PACKET, SOCK_RAW, 768) = 4
ioctl(4, SIOCGIFINDEX, {ifr_name="eth1ap", ifr_index=4}) = 0
write(1, "Opening raw packet socket for if"..., 40) = 40
bind(4, {sa_family=AF_PACKET, proto=0x03, if4, pkttype=PACKET_HOST, addr(0)={0,
}, 20) = 0
send(4, "\0\0\0\1\22\0\0\2\1\0\0\0", 12, 0) = -1 ENETDOWN (Network is down)
gettimeofday({1127339051, 442689}, NULL) = 0
select(5, [4], NULL, NULL, {0, 10000}) = 0 (Timeout)
gettimeofday({1127339051, 453461}, NULL) = 0
send(4, "\0\0\0\1\31\0\0\1\2\0\0\0", 12, 0) = -1 ENETDOWN (Network is down)
gettimeofday({1127339051, 453540}, NULL) = 0
select(5, [4], NULL, NULL, {0, 10000}) = 0 (Timeout)
gettimeofday({1127339051, 465457}, NULL) = 0
send(4, "\0\0\0\1\25\0\7\340\1\0\0\0", 12, 0) = -1 ENETDOWN (Network is down)
gettimeofday({1127339051, 465536}, NULL) = 0
select(5, [4], NULL, NULL, {0, 10000}) = 0 (Timeout)
gettimeofday({1127339051, 478789}, NULL) = 0
send(4, "\0\0\0\1\22\0\0\0\1\0\0\0", 12, 0) = -1 ENETDOWN (Network is down)
gettimeofday({1127339051, 478903}, NULL) = 0
select(5, [4], NULL, NULL, {0, 10000}) = 0 (Timeout)
gettimeofday({1127339051, 489472}, NULL) = 0
send(134643690, "\0\0\0\1\31\0\0\3\200\0\377\377\0\0", 14, 0) = -1 EBADF (Bad
file descriptor)
send(134643690, "\0\0\0\1\31\0\0\3P\0\377\377\0\0", 14, 0) = -1 EBADF (Bad file
descriptor)
write(1, "Using interface eth1 with hwaddr"..., 67) = 67
gettimeofday({1127339051, 516158}, NULL) = 0
send(4, "\0\0\0\1\22\0\0\1\1\0\0\0", 12, 0) = -1 ENETDOWN (Network is down)
write(1, "Could not set PrivacyInvoked for"..., 4Cool = 48
write(1, "WPA initialization failed.\n", 27) = 27

I use the latest CVS version of PRISM54 driver (compiled with
-DCONFIG_PRISM54_HOSTAPD -DCONFIG_PRISM54_WDS options) and the latest stable
hostapd (0.3.9). I have also tried the development version of hostapd (0.4.4),
but it results the same error.
I have two correctly created devices (eth1 and eth1ap).

The second bug - the prism54.ko module can not be unloaded:

root at wild:~# lsmod|grep prism54
prism54 67080 0
firmware_class 10560 1 prism54

root at wild:~# rmmod -f prism54
Segmentation fault

>From my dmesg:

------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:284!
invalid operand: 0000 [#1]
Modules linked in: videodev vmnet vmmon ns558 snd_mpu401 snd_mpu401_uart pcspkr
emu10k1_gp gameport sata_nv shpchp pci_hotplug snd_intel8x0 rfcomm l2cap
ipt_REJECT ipt_state ipt_MASQUERADE iptable_nat ip_conntrack iptable_filter
ip_tables parport_pc lp parport bridge tun ipv6 af_packet ehci_hcd
snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_seq_dummy
snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq eth1394 snd_emu10k1
snd_rawmidi snd_seq_device snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm
snd_timer snd_page_alloc snd_util_mem snd_hwdep snd soundcore forcedeth ohci1394
ieee1394 rtc capability commoncap nvidia_agp agpgart usb_storage sd_mod sata_sil
libata scsi_mod prism54 firmware_class eeprom w83l785ts hci_usb bluetooth asb100
i2c_sensor i2c_nforce2 i2c_core dm_crypt usbhid tsdev dm_mod evdev ohci_hcd
mousedev usbmouse usbcore 3c59x mii siimage ide_core unix
CPU: 0
EIP: 0060:[<c029adee>] Tainted: P VLI
EFLAGS: 00010202 (2.6.13.1)
EIP is at __kfree_skb+0xfe/0x140
eax: 00000000 ebx: f6f98444 ecx: 00000015 edx: c1911b80
esi: c1911b80 edi: f6f98444 ebp: f6f98220 esp: e77fbe98
ds: 007b es: 007b ss: 0068
Process rmmod (pid: 8069, threadinfo=e77fa000 task=ec8e7560)
Stack: f6b20000 c1997800 f6f98220 c014ea62 f6f98444 00000000 f89052e6 c1911b80
00018400 f6b20000 36b20000 f6f98000 f6f98220 c1997800 c1997844 f8905b17
f6f98220 f6f98220 c1997800 c1997844 f890dccc f890dccc c01ff29e c1997800
Call Trace:
[<c014ea62>] __free_pages+0x32/0x50
[<f89052e6>] islpci_free_memory+0xb6/0x160 [prism54]
[<f8905b17>] prism54_remove+0xa7/0x120 [prism54]
[<c01ff29e>] pci_device_remove+0x1e/0x40
[<c0254911>] __device_release_driver+0x61/0xa0
[<c02549e1>] driver_detach+0x61/0x63
[<c0254301>] bus_remove_driver+0x51/0x80
[<c0254c90>] driver_unregister+0x10/0x20
[<c01ff533>] pci_unregister_driver+0x13/0x20
[<f8907cb9>] prism54_module_exit+0x19/0x3b [prism54]
[<c0135316>] sys_delete_module+0x136/0x180
[<c0103105>] syscall_call+0x7/0xb
Code: 00 00 c7 44 24 08 cf 3e 33 c0 c7 44 24 04 a4 e8 30 c0 c7 04 24 53 41 31 c0
e8 df 12 e8 ff e8 2a 92 e6 ff 8b 56 78 e9 56 ff ff ff <0f> 0b 1c 01 cf 3e 33 c0
e9 09 ff ff ff c7 44 24 0c 9a 00 00 00

Thanks for any advice or resolving these problems.

Pavol



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Prism54-devel mailing list