карточка:
Код: Выделить всё
ath0: <Atheros 2413> mem 0xed200000-0xed20ffff irq 17 at device 9.0 on pci0
ath0: [ITHREAD]
ath0: WARNING: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:11:95:fa:c0:cf
ath0: mac 7.8 phy 4.5 radio 5.6
Код: Выделить всё
####################### WI-FI ##############################
#ifconfig_ath0="inet 192.168.25.1 netmask 255.255.255.0 mediaopt hostap"
#ifconfig_ath0="inet 192.168.25.1 netmask 255.255.255.0 ssid mywifi mode 11g wepmode off mediaopt hostap"
ifconfig_ath0="inet 192.168.25.1 netmask 255.255.255.0 mode 11g channel 11 mediaopt hostap"
#hostapd_enable="YES"
#wlans_ath0="wlan0"
#create_args_wlan0="wlanmode ap"
#ifconfig_wlan0="WPA DHCP"
Код: Выделить всё
interface=ath0
#driver=bsd
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=mywifi
#macaddr_acl=0
#auth_algs=3
#eapol_key_index_workaround=0
#own_ip_addr=127.0.0.1
wpa=3
wpa_passphrase=56789123
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
Код: Выделить всё
freebsd# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:11:95:fa:c0:cf
inet 192.168.25.1 netmask 0xffffff00 broadcast 192.168.25.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: associated
ssid "" channel 11 (2462 Mhz 11g) bssid 00:11:95:fa:c0:cf
authmode OPEN privacy OFF txpower 31.5 scanvalid 60 bgscan
bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
protmode CTS burst dtimperiod 1
freebsd#
Код: Выделить всё
freebsd# hostapd -dd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0 (from group name 'wheel')
pcap_open_live: BIOCSETIF: ath0 : Device not configured
ifname='ath0 '
bsd driver initialization failed.
ath0 : Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
freebsd#