uname -a
Код: Выделить всё
FreeBSD radist04ka.local.doiman 9.1-STABLE FreeBSD 9.1-STABLE #0: Sun Jul 28 15:55:49 FET 2013 radist@radist04ka.localdoiman:/sys/i386/compile/RADIST.28.07.2013 i386
Код: Выделить всё
ath0@pci0:0:10:0: class=0x020000 card=0x3a131186 chip=0x0013168c rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'Atheros AR5001X+ Wireless Network Adapter'
class = network
subclass = ethernet
Код: Выделить всё
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:1b:11:13:b4:3e
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
Код: Выделить всё
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:1b:11:13:b4:3e
inet6 fe80::21b:11ff:fe13:b43e%wlan0 prefixlen 64 tentative scopeid 0xa
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid WiFi channel 1 (2412 MHz 11g) bssid 00:1b:11:13:b4:3e
regdomain ETSI indoor ecm authmode OPEN privacy OFF txpower 20
scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
Код: Выделить всё
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap"
hostapd_enable="YES"
....
cloned_interfaces="bridge0"
ifconfig_bridge0="ether 4c:00:10:61:33:63 addm vr0 addm vr1 addm rl0 up addm wla
ifconfig_bridge0_alias0=" inet 192.168.7.1 netmask 255.255.255.0"
ifconfig_rl0="up"
ifconfig_vr0="up"
ifconfig_vr1="up"
ifconfig_wlan0="up"
Код: Выделить всё
interface=wlan0
driver=bsd
country_code=RU
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=WiFi
ignore_broadcast_ssid=2
hw_mode=g
channel=6
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
Код: Выделить всё
00:16:CF:3F:2A:55
00:30:05:92:9D:DB
Код: Выделить всё
Id Refs Address Size Name
1 11 0xc0400000 105a5ac kernel
2 1 0xc145b000 186c accf_data.ko
3 1 0xc145d000 22d0 accf_http.ko
4 1 0xca0db000 2000 wlan_xauth.ko
5 1 0xca338000 3000 daemon_saver.ko
Код: Выделить всё
root@radist04ka:/usr/src/sys/i386/conf # cat RADIST.28.07.2013 | grep ath
device ath # Atheros NICs
device ath_pci # Atheros pci/cardbus glue
device ath_hal # pci/cardbus chip support
device ath_rate_sample # SampleRate tx rate control for ath
nodevice uath # Atheros AR5523 wireless NICs
root@radist04ka:/usr/src/sys/i386/conf # cat RADIST.28.07.2013 | grep wlan
device wlan # 802.11 support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support
device wlan_tkip # 802.11 TKIP support
device wlan_amrr # AMRR transmit rate control algorithm
Код: Выделить всё
accf_http_load="YES"
accf_data_load="YES"
autoboot_delay="4"
loader_logo="beastie"
cat /usr/local/etc/rc.d/wifi_acl
Код: Выделить всё
#!/bin/sh
# PROVIDE: wifi_acl
# REQUIRE: DAEMON hostapd
ifconfig wlan0 mac:allow
ifconfig wlan0 mac:flush
ifconfig wlan0 mac:add 00:16:cf:3f:2a:55
#ifconfig wlan0 mac:add 00:30:05:93:5f:cf
#ifconfig wlan0 mac:add 00:21:19:64:54:e3
вот такие настройки конфиги железо...
имеем:
при загрузке все есть, wifi работает, инет есть.... на некоторое время. через неопределенное время сеть на wi-fi пропадает и через пару минут
появляется снова. и так пару раз пока сервак не уходит в перезагрузку. в логах только это:
all.log
Код: Выделить всё
Jan 4 10:35:00 radist04ka /usr/sbin/cron[2821]: (root) CMD (/usr/libexec/atrun)
Jan 4 10:35:00 radist04ka sendmail[2822]: u047Z0iE002822: from=root, size=346, class=0, nrcpts=1, msgid=<201601040735.u047Z0iE002822@radist04ka.local.doiman>
Jan 4 10:35:00 radist04ka sendmail[2823]: u047Z0eN002823: from=root, size=356, class=0, nrcpts=1, msgid=<201601040735.u047Z0eN002823@radist04ka.local.doiman>
Jan 4 10:36:15 radist04ka sendmail[2822]: u047Z0iE002822: to=root, ctladdr=root (0/0), delay=00:01:15, xdelay=00:01:15, mailer=relay, pri=30346, relay=[127.0
Jan 4 12:46:29 radist04ka syslogd: restart
Jan 4 12:46:29 radist04ka syslogd: kernel boot file is /boot/kernel/kernel
Jan 4 12:46:29 radist04ka kernel: Copyright (c) 1992-2013 The FreeBSD Project.
Jan 4 12:46:29 radist04ka kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Jan 4 12:46:29 radist04ka kernel: The Regents of the University of California. All rights reserved.
Jan 4 12:46:29 radist04ka kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
Jan 4 12:46:29 radist04ka kernel: FreeBSD 9.1-STABLE #0: Sun Jul 28 15:55:49 FET 2013
Jan 4 12:46:29 radist04ka kernel: radist@radist04ka.localdoiman:/sys/i386/compile/RADIST.28.07.2013 i386
Jan 4 12:46:29 radist04ka kernel: gcc version 4.2.1 20070831 patched [FreeBSD]
Jan 4 12:46:29 radist04ka kernel: CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3221.67-MHz 686-class CPU)
dmesg
Код: Выделить всё
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
ath0: stuck beacon; resetting (bmiss count 8)
Код: Выделить всё
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
ath0: device timeout
начал в инете читать внес в конфиги:ath0: stuck beacon; resetting (bmiss count 4)
/etc/sysctl.conf
Код: Выделить всё
dev.ath.0.txantenna=0
dev.ath.0.rxantenna=1
hw.ath.bstuck=8
vmstat -i
Код: Выделить всё
interrupt total rate
irq1: atkbd0 4 0
irq14: ata0 7077 1
irq16: rl0 1296 0
irq17: rl1 1144134 260
irq18: ath0 68699 15
irq19: vr0 23642 5
irq20: atapci0 1181 0
irq23: vr1 1118434 254
cpu0:timer 4943807 1125
cpu1:timer 17027 3
Total 7325301 1668
Код: Выделить всё
ath0: device timeout
p.s. до того как упер в армию и работал на гражданке - все работало, вроде бы(таких проблем не было как минимум(хотя я тогда сидел на проводах, а не wi-fi)). изменилось только место жительства)))