Re: RPI2 AP
Mon, 10 Oct 2016 01:22:00 +0300 було написано Adrian Chadd: Have you tried to use the driver from https://github.com/s3erios/rtwn ? hiya, ok. We'll need some more debugging from the driver and net80211. Andriy? Any ideas? -a On 8 October 2016 at 08:11, Peter Garshtja wrote: Good Morning Adrian, I added and rebooted RPI2, but the result is the same wlan_amrr_load="YES" to /boot/loader.conf ifconfig wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 50:55:27:ff:dc:0415 54M 20.50 2482 38240 EPS AQE RSN WME 00:13:ef:66:18:4925 1M 14.00 7130 27104 EPS AQE RSN WME After ~ 5 minutes all the stations were disconnected 10:43 # ifconfig wlan0 list sta 10:43 # ifconfig wlan0 list sta 10:43 # WLAN interface details -- ifconfig wlan0 list caps drivercaps=591c541 cryptocaps=b htcaps=6000c<> -- Kernel modules loaded Id Refs AddressSize Name 1 31 0xc010 9bfaec kernel 21 0xc0ac a168 wlan_amrr.ko 37 0xc0acb000 59a18wlan.ko 41 0xc46d2000 11000if_bridge.ko 51 0xc46e3000 e000 bridgestp.ko 61 0xc4731000 d000 if_vlan.ko 71 0xc484c000 27000if_urtwn.ko 81 0xc4774000 b000 firmware.ko 91 0xc46bf000 a000 pflog.ko 101 0xc4b2c000 3a000pf.ko 111 0xc4e25000 9000 wlan_xauth.ko 121 0xc4888000 a000 wlan_wep.ko 131 0xc4ef9000 b000 wlan_tkip.ko 141 0xc4f0c000 e000 wlan_ccmp.ko I have 2 different wifi dongles with the same chipset and the behavior is the same. Also here is the dmesg after reboot Copyright (c) 1992-2016 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-RELEASE-p1 #0 r306544M: Fri Sep 30 18:26:52 EDT 2016 ptg@rpi2:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI2 arm FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT: init without driver. sema_sysinit CPU: Cortex A7 rev 5 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB enabled LABT branch prediction disabled LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory = 989851648 (943 MB) avail memory = 955379712 (911 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: mem 0x3f00-0x3fff on ofwbus0 local_intc0: mem 0x4000-0x40ff on simplebus0 generic_timer0: on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 1920 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 1920 Hz quality 1000 intc0: mem 0xb200-0xb3ff on simplebus0 bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x20-0x2000af on simplebus0 gpio0: read-only pins: 46,48-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin 35 on gpiobus0 gpioled1: at pin 47 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f on simplebus0 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f on simplebus0 iicbus1: on iichb1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f on simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff on simplebus0 mbox0: mem 0xb880-0xb8bf on simplebus0 sdhci_bcm0: mem 0x30-0x3000ff on simplebus0 mmc0: on sdhci_bcm0 uart0: mem 0x201000-0x201fff on simplebus0 uart0: console (115200,n,8,1) vchiq0: mem 0xb800-0xb84f on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 bcm283x_dwcotg0: mem 0x98-0x99 on simplebus0 usbus0 on bcm283x_dwcotg0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 fb0: on ofwbus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 1680x1050(1680x1050@0,0) 24bpp fb0: fbswap: 1, pitch 5040, base 0x3d384000, screen_size 5322240 cryptosoft0: Timecounters tick every 10.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 8GB at mmc0 41.6MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF Release APs Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... warning: no time-of-day clock registered, system time will not be set accurately uhub0: 1 port with 1 removable, self powered ugen0.2: at usbus0 uhub1: on usbus0 uhub1: MTT enabled random: unblocking device. uhub1: 5 ports with 4 removable, self powered ugen0.3: at usbus0
Re: RPI2 AP
hiya, ok. We'll need some more debugging from the driver and net80211. Andriy? Any ideas? -a On 8 October 2016 at 08:11, Peter Garshtjawrote: > Good Morning Adrian, > > I added and rebooted RPI2, but the result is the same > > wlan_amrr_load="YES" to /boot/loader.conf > > ifconfig wlan0 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 50:55:27:ff:dc:0415 54M 20.50 2482 38240 EPS AQE RSN > WME > 00:13:ef:66:18:4925 1M 14.00 7130 27104 EPS AQE RSN > WME > > After ~ 5 minutes all the stations were disconnected > > 10:43 # ifconfig wlan0 list sta > 10:43 # ifconfig wlan0 list sta > 10:43 # > > WLAN interface details > -- > ifconfig wlan0 list caps > drivercaps=591c541 > cryptocaps=b > htcaps=6000c<> > -- > > Kernel modules loaded > > Id Refs AddressSize Name > 1 31 0xc010 9bfaec kernel > 21 0xc0ac a168 wlan_amrr.ko > 37 0xc0acb000 59a18wlan.ko > 41 0xc46d2000 11000if_bridge.ko > 51 0xc46e3000 e000 bridgestp.ko > 61 0xc4731000 d000 if_vlan.ko > 71 0xc484c000 27000if_urtwn.ko > 81 0xc4774000 b000 firmware.ko > 91 0xc46bf000 a000 pflog.ko > 101 0xc4b2c000 3a000pf.ko > 111 0xc4e25000 9000 wlan_xauth.ko > 121 0xc4888000 a000 wlan_wep.ko > 131 0xc4ef9000 b000 wlan_tkip.ko > 141 0xc4f0c000 e000 wlan_ccmp.ko > > I have 2 different wifi dongles with the same chipset and the behavior is > the same. > > Also here is the dmesg after reboot > > Copyright (c) 1992-2016 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-RELEASE-p1 #0 r306544M: Fri Sep 30 18:26:52 EDT 2016 > ptg@rpi2:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI2 arm > FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM > 3.8.0) > VT: init without driver. > sema_sysinit > CPU: Cortex A7 rev 5 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB enabled LABT branch prediction disabled > LoUU:2 LoC:3 LoUIS:2 > Cache level 1: > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 2-way instruction cache Read-Alloc > Cache level 2: > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory = 989851648 (943 MB) > avail memory = 955379712 (911 MB) > > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: mem 0x3f00-0x3fff on > ofwbus0 > local_intc0: mem 0x4000-0x40ff on > simplebus0 > generic_timer0: on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 1920 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 1920 Hz quality 1000 > intc0: mem 0xb200-0xb3ff on simplebus0 > bcmwd0: mem 0x10001c-0x100027 on simplebus0 > gpio0: mem 0x20-0x2000af on simplebus0 > gpio0: read-only pins: 46,48-53. > gpio0: reserved pins: 48-53. > gpiobus0: on gpio0 > gpioled0: at pin 35 on gpiobus0 > gpioled1: at pin 47 on gpiobus0 > gpioc0: on gpio0 > iichb0: mem 0x205000-0x20501f on simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f on simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > spi0: mem 0x204000-0x20401f on simplebus0 > spibus0: on spi0 > bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff on > simplebus0 > mbox0: mem 0xb880-0xb8bf on simplebus0 > sdhci_bcm0: mem 0x30-0x3000ff on > simplebus0 > mmc0: on sdhci_bcm0 > uart0: mem 0x201000-0x201fff on simplebus0 > uart0: console (115200,n,8,1) > vchiq0: mem 0xb800-0xb84f on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: on vchiq0 > bcm283x_dwcotg0: mem > 0x98-0x99 on simplebus0 > usbus0 on bcm283x_dwcotg0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > fb0: on ofwbus0 > fbd0 on fb0 > VT: initialize with new VT driver "fb". > fb0: 1680x1050(1680x1050@0,0) 24bpp > fb0: fbswap: 1, pitch 5040, base 0x3d384000, screen_size 5322240 > cryptosoft0: > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > mmcsd0: 8GB at mmc0 > 41.6MHz/4bit/65535-block > bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF > Release APs > Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... > warning: no time-of-day clock registered, system time will not be set > accurately > uhub0: 1 port with 1 removable, self powered > ugen0.2: at usbus0 > uhub1: on > usbus0 > uhub1: MTT enabled > random: unblocking
Re: RPI2 AP
+ freebsd-wireless can you post a 'dmesg' output? That way we can see which urtwn NIC it is and whether it logged anything. -a On 3 October 2016 at 11:38, peter garshtjawrote: > Greetings, > > im running freebsd 11 on rpi2 where i configured urtwn(wifi dongle) and > ether interfaces to work in bridge mode. > I built an AP and im experiencing weird issue - all stations that are > connected to AP after a while start loosing the connection and are not able > to reconnect anymore and only rebooting the rpi2 solves the issue. > > here is my hostapd.conf > > interface=wlan0 > ctrl_interface=/var/run/hostapd > ctrl_interface_group=wheel > ssid=testap > wpa=2 > wpa_psk_file=/etc/hostapd.wpa_psk > wpa_key_mgmt=WPA-PSK > wpa_pairwise=CCMP > > also here is hostapd logs running in debug mode > > Configuration file: /etc/hostapd.conf > ctrl_interface_group=0 (from group name 'wheel') > BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) > Completing interface initialization > hostapd_setup_bss(hapd=0x20863000 (wlan0), first=1) > wlan0: Flushing old station entries > wlan0: Deauthenticate all stations > bsd_set_privacy: enabled=0 > bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=0 > bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=1 > bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=2 > bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=3 > Using interface wlan0 with hwaddr 00:c6:d2:21:c9:34 and ssid "testap" > bsd_set_ieee8021x: enabled=1 > bsd_configure_wpa: enable WPA= 0x2 > Get randomness: len=32 entropy=0 > GMK - hexdump(len=32): [REMOVED] > Get randomness: len=32 entropy=0 > Key Counter - hexdump(len=32): [REMOVED] > WPA: Delay group state machine start until Beacon frames have been > configured > bsd_set_privacy: enabled=1 > bsd_set_opt_ie: set WPA+RSN ie (len 22) > WPA: Start group state machine to set initial keys > WPA: group state machine entering state GTK_INIT (VLAN-ID 0) > Get randomness: len=16 entropy=0 > GTK - hexdump(len=16): [REMOVED] > WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0) > bsd_set_key: alg=3 addr=0x80be3 key_idx=1 set_tx=1 seq_len=0 key_len=16 > wlan0: interface state UNINITIALIZED->ENABLED > wlan0: AP-ENABLED > wlan0: Setup of interface done. > ctrl_iface not configured! > wlan0: Event ASSOC (0) received > wlan0: STA 00:13:ef:66:18:49 IEEE 802.11: associated > STA included RSN IE in (Re)AssocReq > New STA > ap_sta_add: register ap_handle_timer timeout for 00:13:ef:66:18:49 (300 > seconds - ap_max_inactivity) > wlan0: STA 00:13:ef:66:18:49 WPA: event 1 notification > bsd_set_key: alg=0 addr=0x20847008 key_idx=0 set_tx=1 seq_len=0 key_len=0 > bsd_del_key: addr=00:13:ef:66:18:49 > IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS > wlan0: STA 00:13:ef:66:18:49 WPA: start authentication > WPA: 00:13:ef:66:18:49 WPA_PTK entering state INITIALIZE > bsd_set_key: alg=0 addr=0x20847008 key_idx=0 set_tx=1 seq_len=0 key_len=0 > bsd_del_key: addr=00:13:ef:66:18:49 > wlan0: STA 00:13:ef:66:18:49 IEEE 802.1X: unauthorizing port > WPA: 00:13:ef:66:18:49 WPA_PTK_GROUP entering state IDLE > WPA: 00:13:ef:66:18:49 WPA_PTK entering state AUTHENTICATION > WPA: 00:13:ef:66:18:49 WPA_PTK entering state AUTHENTICATION2 > WPA: Re-initialize GMK/Counter on first station > Get randomness: len=32 entropy=1 > GMK - hexdump(len=32): [REMOVED] > Get randomness: len=32 entropy=0 > Key Counter - hexdump(len=32): [REMOVED] > Get randomness: len=16 entropy=0 > GTK - hexdump(len=16): [REMOVED] > bsd_set_key: alg=3 addr=0x80be3 key_idx=1 set_tx=1 seq_len=0 key_len=16 > Get randomness: len=32 entropy=0 > WPA: Assign ANonce - hexdump(len=32): 8a 5f 94 56 ac e3 d8 80 30 ae e6 fd > ab ea 2f b8 fb ac 1e ce 89 b4 8f 7f d0 74 9a a2 32 d2 3a 9f > WPA: 00:13:ef:66:18:49 WPA_PTK entering state INITPSK > Searching a PSK for 00:13:ef:66:18:49 prev_psk=0x0 > Searching a PSK for 00:13:ef:66:18:49 prev_psk=0x0 > WPA: 00:13:ef:66:18:49 WPA_PTK entering state PTKSTART > wlan0: STA 00:13:ef:66:18:49 WPA: sending 1/4 msg of 4-Way Handshake > WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 > kde_len=0 keyidx=0 encr=0) > WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01 > TX EAPOL - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 > 01 8a 5f 94 56 ac e3 d8 80 30 ae e6 fd ab ea 2f b8 fb ac 1e ce 89 b4 8f 7f > d0 74 9a a2 32 d2 3a 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 > WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1) > hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for > 00:13:ef:66:18:49 (300 seconds - ap_max_inactivity) > wlan0: Event EAPOL_RX (24) received > IEEE 802.1X: 121 bytes from 00:13:ef:66:18:49 >IEEE 802.1X: version=1