oliverh said:Without any further details it's just wild guessing.
wpa_supplicant_enable="YES"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
#
network={
ssid="my ssid"
scan_ssid=1
priority=1
psk="hidden password"
}
kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP
eyebone said:observations i made:
1. changing the mac address of wlan0 ends up in a flapping connection with a former working wpa_supplicant configuration.
Code:kernel: wlan0: link state changed to DOWN kernel: wlan0: link state changed to UP kernel: wlan0: link state changed to DOWN kernel: wlan0: link state changed to UP
2. changing both, wlan0 and iwn0 to the same (fake) mac address results in no connection to the AP at all, even no flapping stuff.
eyebone said:3. i tried the also the aircrack-ng suite, now listening for other networks seems so far not to work i guess this would be also the same for injecting, but i didnt test that so far
LesJen said:If I have ifconfig_wlan0="WPA DHCP" in rc.conf. It will connect and work.
If I have ifconfig_wlan0="inet 172.17.0.159 netmask 255.255.255.0" it won't connect!
Any ideas on what's the problem?
LesJen said:Do you mean the SSID that I have in wpa_supplicant.conf? Where should I put it?
ifconfig_wlan0="ssid YOURSSID 172.17.0.159 netmask 255.255.255.0"
robbak said:In the first line you were trying to connect with WPA (ifconfig_xxx0 WPA DHCP). Now you are trying to connect without it (ifconfig_xxx0 ssid YOURID youraddress netmask yournetmask)
Have you turned off encryption on the network, or have you just forgotten WPA?
dduong said:Is there a way I can check the rev that I'm using? I want to know if I applied the svn patch correctly.
Thanks!
iwn revsion XY loaded
Dec 27 10:38:58 dduong-freebsd kernel: Fatal trap 12: page fault while in kernel mode
Dec 27 10:38:58 dduong-freebsd kernel: cpuid = 0; apic id = 00
Dec 27 10:38:58 dduong-freebsd kernel: fault virtual address = 0x1c
Dec 27 10:38:58 dduong-freebsd kernel: fault code = supervisor read data, page not present
Dec 27 10:38:58 dduong-freebsd kernel: instruction pointer = 0x20:0xffffffff80550a20
Dec 27 10:38:58 dduong-freebsd kernel: stack pointer = 0x28:0xffffff8072b508f0
Dec 27 10:38:58 dduong-freebsd kernel: frame pointer = 0x28:0xffffff8072b50900
Dec 27 10:38:58 dduong-freebsd kernel: code segment = base 0x0, limit 0xfffff, type 0x1b
Dec 27 10:38:58 dduong-freebsd kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec 27 10:38:58 dduong-freebsd kernel: processor eflags = interrupt enabled, resume, IOPL = 0
Dec 27 10:38:58 dduong-freebsd kernel: current process = 0 (iwn0 taskq)
Dec 27 10:38:58 dduong-freebsd kernel: trap number = 12
Dec 27 10:38:58 dduong-freebsd kernel: panic: page fault
Dec 27 10:38:58 dduong-freebsd kernel: cpuid = 0
Dec 27 10:38:58 dduong-freebsd kernel: Uptime: 1m32s
Dec 27 10:38:58 dduong-freebsd kernel: Cannot dump. Device not defined or unavailable.
Dec 27 10:38:58 dduong-freebsd kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Dec 27 10:38:58 dduong-freebsd kernel: Rebooting...
Dec 27 10:38:58 dduong-freebsd kernel: cpu_reset: Stopping other CPUs
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: MIMO 3T3R, MoW, address 00:21:6a:85:55:e0
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: [ITHREAD]
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
freebsd kernel: wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
Dec 27 12:13:41 dduong-freebsd last message repeated 3 times
Dec 27 12:13:41 dduong-freebsd kernel: wlan0: start running, 0 vaps running
Dec 27 12:13:41 dduong-freebsd kernel: wlan0: ieee80211_start_locked: up parent iwn0
Dec 27 12:14:42 dduong-freebsd syslogd: kernel boot file is /boot/kernel/kernel
Dec 27 12:14:42 dduong-freebsd kernel:
Dec 27 12:14:42 dduong-freebsd kernel:
Dec 27 12:14:42 dduong-freebsd kernel: Fatal trap 12: page fault while in kernel mode
Dec 27 12:14:42 dduong-freebsd kernel: cpuid = 0; apic id = 00
Dec 27 12:14:42 dduong-freebsd kernel: fault virtual address = 0x1c
Dec 27 12:14:42 dduong-freebsd kernel: fault code = supervisor read data, page not present
Dec 27 12:14:42 dduong-freebsd kernel: instruction pointer = 0x20:0xffffffff80550a20
Dec 27 12:14:42 dduong-freebsd kernel: stack pointer = 0x28:0xffffff8072b508f0
Dec 27 12:14:42 dduong-freebsd kernel: frame pointer = 0x28:0xffffff8072b50900
Dec 27 12:14:42 dduong-freebsd kernel: code segment = base 0x0, limit 0xfffff, type 0x1b
Dec 27 12:14:42 dduong-freebsd kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec 27 12:14:42 dduong-freebsd kernel: processor eflags = interrupt enabled, resume, IOPL = 0
Dec 27 12:14:42 dduong-freebsd kernel: current process = 0 (iwn0 taskq)
Dec 27 12:14:42 dduong-freebsd kernel: trap number = 12
Dec 27 12:14:42 dduong-freebsd kernel: panic: page fault
Dec 27 12:14:42 dduong-freebsd kernel: cpuid = 0
Dec 27 12:14:42 dduong-freebsd kernel: Uptime: 2m10s
Dec 27 12:14:42 dduong-freebsd kernel: Cannot dump. Device not defined or unavailable.
Dec 27 12:14:42 dduong-freebsd kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Dec 27 12:14:42 dduong-freebsd kernel: Rebooting...
Dec 27 12:14:42 dduong-freebsd kernel: cpu_reset: Stopping other CPUs
ant, it crashes again:
dduong said:Code:Dec 27 12:14:42 dduong-freebsd kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3 Dec 27 12:14:42 dduong-freebsd kernel: iwn0: MIMO 3T3R, MoW, address 00:21:6a:85:550 Dec 27 12:14:42 dduong-freebsd kernel: iwn0: [ITHREAD] Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
# ls -l /boot/kernel/if_iwn*
# svn co http://svn.techwires.net/svn/projects/freebsd
# cd freebsd/sys/modules/iwnfw
# make
# make install
# cd ../iwn
# env CFLAGS=-I$PWD/../../ make
# make install
# ls -l /boot/kernel/if_iwn*
[root@dduong-freebsd /var/log]# ls -l /boot/kernel/if_iwn*
-r-xr-xr-x 1 root wheel 136160 Dec 27 12:09 /boot/kernel/if_iwn.ko
-r-xr-xr-x 1 root wheel 430616 Dec 27 12:07 /boot/kernel/if_iwn.ko.symbols
[root@dduong-freebsd /usr/src/syssvn]# svn co [url]http://svn.techwires.net/svn/projects/freebsd[/url]
A freebsd/sys
A freebsd/sys/contrib
A freebsd/sys/contrib/dev
A freebsd/sys/contrib/dev/iwn
A freebsd/sys/contrib/dev/iwn/LICENSE
A freebsd/sys/contrib/dev/iwn/iwlwifi-6000-9.176.4.1.fw.uu
A freebsd/sys/contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu
A freebsd/sys/contrib/dev/iwn/iwlwifi-1000-128.50.3.1.fw.uu
A freebsd/sys/contrib/dev/iwn/iwlwifi-5000-8.24.2.12.fw.uu
A freebsd/sys/contrib/dev/iwn/iwlwifi-5150-8.24.2.2.fw.uu
A freebsd/sys/conf
A freebsd/sys/conf/files
A freebsd/sys/modules
A freebsd/sys/modules/iwnfw
A freebsd/sys/modules/iwnfw/iwn5000
A freebsd/sys/modules/iwnfw/iwn5000/Makefile
A freebsd/sys/modules/iwnfw/iwn6000
A freebsd/sys/modules/iwnfw/iwn6000/Makefile
A freebsd/sys/modules/iwnfw/Makefile.inc
A freebsd/sys/modules/iwnfw/iwn4965
A freebsd/sys/modules/iwnfw/iwn4965/Makefile
A freebsd/sys/modules/iwnfw/iwn5150
A freebsd/sys/modules/iwnfw/iwn5150/Makefile
A freebsd/sys/modules/iwnfw/Makefile
A freebsd/sys/modules/iwnfw/iwn1000
A freebsd/sys/modules/iwnfw/iwn1000/Makefile
A freebsd/sys/modules/iwn
A freebsd/sys/modules/iwn/Makefile
A freebsd/sys/dev
A freebsd/sys/dev/iwn
A freebsd/sys/dev/iwn/if_iwnreg.h
A freebsd/sys/dev/iwn/if_iwnvar.h
A freebsd/sys/dev/iwn/if_iwn.c
Checked out revision 27.
[root@dduong-freebsd /usr/src/syssvn]# cd freebsd/sys/modules/iwnfw
[root@dduong-freebsd /usr/src/syssvn/freebsd/sys/modules/iwnfw]# make
===> iwn1000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn1000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn1000/../../../contrib/dev/iwn/iwlwifi-1000-128.50.3.1.fw.uu > iwlwifi-1000-128.50.3.1.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-1000-128.50.3.1.fw iwlwifi-1000-128.50.3.1.fw
awk -f @/tools/fw_stub.awk iwlwifi-1000-128.50.3.1.fw:iwn1000fw -miwn1000fw -ciwn1000fw.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn1000fw.c
ld -d -warn-common -r -d -o iwn1000fw.ko iwlwifi-1000-128.50.3.1.fw.fwo iwn1000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn1000fw.ko export_syms | xargs -J% objcopy % iwn1000fw.ko
objcopy --strip-debug iwn1000fw.ko
===> iwn4965 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn4965
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn4965/../../../contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu > iwlwifi-
4965-228.61.2.24.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-4965-228.61.2.24.fw iwlwifi-4965-228.61.2.24.fw
awk -f @/tools/fw_stub.awk iwlwifi-4965-228.61.2.24.fw:iwn4965fw -miwn4965fw -ciwn4965fw.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn4965fw.c
ld -d -warn-common -r -d -o iwn4965fw.ko iwlwifi-4965-228.61.2.24.fw.fwo iwn4965fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn4965fw.ko export_syms | xargs -J% objcopy % iwn4965fw.ko
objcopy --strip-debug iwn4965fw.ko
===> iwn5000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5000/../../../contrib/dev/iwn/iwlwifi-5000-8.24.2.12.fw.uu > iwlwifi-5000-8.24.2.12.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-5000-8.24.2.12.fw iwlwifi-5000-8.24.2.12.fw
awk -f @/tools/fw_stub.awk iwlwifi-5000-8.24.2.12.fw:iwn5000fw -miwn5000fw -ciwn5000fw.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn5000fw.c
ld -d -warn-common -r -d -o iwn5000fw.ko iwlwifi-5000-8.24.2.12.fw.fwo iwn5000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn5000fw.ko export_syms | xargs -J% objcopy % iwn5000fw.ko
objcopy --strip-debug iwn5000fw.ko
===> iwn5150 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5150
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5150/../../../contrib/dev/iwn/iwlwifi-5150-8.24.2.2.fw.uu > iwlwifi-5150-8.24.2.2.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-5150-8.24.2.2.fw iwlwifi-5150-8.24.2.2.fw
awk -f @/tools/fw_stub.awk iwlwifi-5150-8.24.2.2.fw:iwn5150fw -miwn5150fw -ciwn5150fw.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn5150fw.c
ld -d -warn-common -r -d -o iwn5150fw.ko iwlwifi-5150-8.24.2.2.fw.fwo iwn5150fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn5150fw.ko export_syms | xargs -J% objcopy % iwn5150fw.ko
objcopy --strip-debug iwn5150fw.ko
===> iwn6000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn6000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn6000/../../../contrib/dev/iwn/iwlwifi-6000-9.176.4.1.fw.uu > iwlwifi-6000-9.176.4.1.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-6000-9.176.4.1.fw iwlwifi-6000-9.176.4.1.fw
awk -f @/tools/fw_stub.awk iwlwifi-6000-9.176.4.1.fw:iwn6000fw -miwn6000fw -ciwn6000fw.c
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn6000fw.c
ld -d -warn-common -r -d -o iwn6000fw.ko iwlwifi-6000-9.176.4.1.fw.fwo iwn6000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn6000fw.ko export_syms | xargs -J% objcopy % iwn6000fw.ko
objcopy --strip-debug iwn6000fw.ko