Hello, I just upgraded my access point (from 7.1 to 8.0) and can't make hostapd work (looks like wide-dhcp relay also has a problem with ath0): [mayumi]:/root# hostapd -P /var/run/hostapd.pid -dd /etc/hostapd.conf Configuration file: /etc/hostapd.conf Line 2: DEPRECATED: 'debug' configuration variable is not used anymore ctrl_interface_group=0 (from group name 'wheel') pcap_open_live: ifname='ath0' bsd driver initialization failed. ath0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory Exit 255 Output from dmesg: ath0: <Atheros 5212> mem 0xf4000000-0xf400ffff irq 3 at device 11.0 on pci0 ath0: [ITHREAD] ath0: AR2413 mac 7.9 RF2413 phy 4.5 The interface seems to exist, but seems it lost some of its functionality: [mayumi]:/root# ifconfig ath0 ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 ether 00:11:95:e5:70:df media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier [mayumi]:/root# ifconfig ath0 list cap ifconfig: Don't know how to list cap for ath0 What's going on? The card worked pretty well with 7.1. I tried to compile kernel just with "device ath_ar5212" but I'm only getting this: ah.o(.text+0x212): In function `ath_hal_rfprobe': /usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__start_set_ah_rfs' ah.o(.text+0x21f):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' ah.o(.text+0x235):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' -- Best regards, Derek mailto:takeda@takeda.tk Wear short sleeves! Support your right to bare arms!
Multi-BSS support in 8.0 means that you first need to create a wlan pseudo-device, and run hostapd with that. The rc.conf lines look like this: wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="ssid networkname media autoselect up" -Boris Derek Kulinski wrote:> Hello, > > I just upgraded my access point (from 7.1 to 8.0) and can't make > hostapd work (looks like wide-dhcp relay also has a problem with ath0): > > [mayumi]:/root# hostapd -P /var/run/hostapd.pid -dd /etc/hostapd.conf > Configuration file: /etc/hostapd.conf > Line 2: DEPRECATED: 'debug' configuration variable is not used anymore > ctrl_interface_group=0 (from group name 'wheel') > pcap_open_live: > ifname='ath0' > bsd driver initialization failed. > ath0: Unable to setup interface. > rmdir[ctrl_interface]: No such file or directory > Exit 255 > > Output from dmesg: > ath0: <Atheros 5212> mem 0xf4000000-0xf400ffff irq 3 at device 11.0 on pci0 > ath0: [ITHREAD] > ath0: AR2413 mac 7.9 RF2413 phy 4.5 > > The interface seems to exist, but seems it lost some of its > functionality: > [mayumi]:/root# ifconfig ath0 > ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 > ether 00:11:95:e5:70:df > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > [mayumi]:/root# ifconfig ath0 list cap > ifconfig: Don't know how to list cap for ath0 > > What's going on? The card worked pretty well with 7.1. > > I tried to compile kernel just with "device ath_ar5212" > but I'm only getting this: > > ah.o(.text+0x212): In function `ath_hal_rfprobe': > /usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__start_set_ah_rfs' > ah.o(.text+0x21f):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' > ah.o(.text+0x235):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' > >
Am 16.12.2009 um 12:19 schrieb Derek Kulinski:> Hello, > > I just upgraded my access point (from 7.1 to 8.0) and can't make > hostapd work (looks like wide-dhcp relay also has a problem with > ath0):Things got a bit more complicated (and more powerful) with 8.0: you now have to configure a virtual wireless interface, attached to the physical one. Unfortunatly, the handbook has not quite caught up with this change. Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811
On Wed, 2009-12-16 at 03:19 -0800, Derek Kulinski wrote:> Hello, > > I just upgraded my access point (from 7.1 to 8.0) and can't make > hostapd work (looks like wide-dhcp relay also has a problem with ath0): >The ifconfig usage changed in 8.0 The Handbook is not correct: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html see: http://forums.freebsd.org/showthread.php?t=8784 and a small tutorial from my hand: http://martenvijn.nl/trac/wiki/ap may show usefull command and config for you. Here: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html the Handbook is not correct... I hope this helps, cheers, Marten> [mayumi]:/root# hostapd -P /var/run/hostapd.pid -dd /etc/hostapd.conf > Configuration file: /etc/hostapd.conf > Line 2: DEPRECATED: 'debug' configuration variable is not used anymore > ctrl_interface_group=0 (from group name 'wheel') > pcap_open_live: > ifname='ath0' > bsd driver initialization failed. > ath0: Unable to setup interface. > rmdir[ctrl_interface]: No such file or directory > Exit 255 > > Output from dmesg: > ath0: <Atheros 5212> mem 0xf4000000-0xf400ffff irq 3 at device 11.0 on pci0 > ath0: [ITHREAD] > ath0: AR2413 mac 7.9 RF2413 phy 4.5 > > The interface seems to exist, but seems it lost some of its > functionality: > [mayumi]:/root# ifconfig ath0 > ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290 > ether 00:11:95:e5:70:df > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > [mayumi]:/root# ifconfig ath0 list cap > ifconfig: Don't know how to list cap for ath0 > > What's going on? The card worked pretty well with 7.1. > > I tried to compile kernel just with "device ath_ar5212" > but I'm only getting this: > > ah.o(.text+0x212): In function `ath_hal_rfprobe': > /usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__start_set_ah_rfs' > ah.o(.text+0x21f):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' > ah.o(.text+0x235):/usr/src/sys/dev/ath/ath_hal/ah.c:142: undefined reference to `__stop_set_ah_rfs' >-- Marten Vijn linux 2.0.18 OpenBSD 3.6 FreeBSD 4.6 http://martenvijn.nl http://opencommunitycamp.org http://wifisoft.org