{"id":1939,"date":"2011-11-18T18:54:11","date_gmt":"2011-11-18T16:54:11","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=1939"},"modified":"2013-02-20T11:44:58","modified_gmt":"2013-02-20T09:44:58","slug":"wifi","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=1939","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c WIFI"},"content":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 <strong>Wi-Fi<\/strong> \u0432\u043e <strong>FreeBSD<\/strong> \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c 2-\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0447\u0435\u0440\u0435\u0437 <strong>hostap<\/strong> \u0438 <strong>wpa_supplicant<\/strong>. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>FreeBSD 8.2 Release i386, Wi-Fi\u00a0Atheros AR9285 Wireless LAN 802.11 a\/b\/g\/n Controller (AR928x)<\/strong><\/p>\n<p><!--more-->\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c 2 \u043c\u043e\u0434\u0443\u043b\u044f:\u00a0<strong>wlan<\/strong> \u0438\u00a0<strong>if_wpi<\/strong>:<\/p>\n<p><code>#kldload\u00a0if_wpi<br \/>\n#kldload wlan<\/code><\/p>\n<p>\u0410 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0444\u0430\u0439\u043b\u00a0<strong>\/boot\/loader.conf<\/strong>, \u0447\u0442\u043e \u0431\u044b \u043e\u043d\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435:<\/p>\n<p><code>if_wpi_load=\"YES\"<br \/>\nwlan_load=\"YES\"<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 <strong>\/etc\/rc.conf<\/strong>:<\/p>\n<p><code>wlans_ath0=\"wlan0\"<br \/>\ncreate_args_wlan0=\"wlanmode ap authmode wpa\"<br \/>\nifconfig_wlan0=\"inet 192.168.1.11 netmask 255.255.255.0 ssid RIP mode 11g\"<br \/>\nhostapd_enable=\"YES\"<\/code><\/p>\n<p>\u041e\u0431\u044a\u044f\u0441\u043d\u044e: \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (\u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>WiFi<\/strong> \u0432 \u0432 <strong>8.\u0425<\/strong>, \u0432 \u0440\u0430\u043d\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e), \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <strong>WiFi<\/strong> \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f), \u0442\u0440\u0435\u0442\u044c\u044f &#8211; \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442 <strong>IP, SSID<\/strong>, \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b (\u0435\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u043e <strong>DHCP<\/strong>, \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e <strong>inet<\/strong>&#8230; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>DHCP<\/strong>) \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c hostap \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b <strong>WiFi<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043d\u0435\u0441\u0451\u043c \u0442\u0430\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b <strong>\/etc\/hostapd.conf<\/strong><\/p>\n<p><code>interface=ath0<br \/>\n#driver=bsd<br \/>\n#logger_syslog=-1<br \/>\n#logger_syslog_level=0<br \/>\n#logger_stdout=-1<br \/>\n#logger_stdout_level=0<br \/>\ndebug=4<br \/>\ndump_file=\/tmp\/hostapd.dump<br \/>\nctrl_interface=\/var\/run\/hostapd<br \/>\nctrl_interface_group=wheel<br \/>\nssid=RIP<br \/>\n#macaddr_acl=0<br \/>\n#accept_mac_file=\/etc\/hostapd.accept<br \/>\nwpa=1<br \/>\nwpa_passphrase=MEGA-PASS<br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\nwpa_pairwise=TKIP<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c (\u0447\u0430\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 <strong>ifconfig<\/strong>)<\/p>\n<p><code>ath0: flags=8843 metric 0 mtu 2290 ether 00:19:7d:7b:72:82 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843 metric 0 mtu 1500 ether 00:19:7d:7b:72:82 inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet OFDM\/36Mbps mode 11g status: running ssid RIP channel 11 (2462 Mhz 11g) bssid 00:1e:8c:e6:36:1b regdomain 99 indoor ecm authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpower 16.5 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL<br \/>\n<\/code><br \/>\n\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u044b <strong>ath0<\/strong> \u0438 <strong>wlan0<\/strong>. \u041e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e <strong>associated \u0438 running<\/strong>. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a, \u0437\u043d\u0430\u0447\u0438\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <strong>log<\/strong>-\u0444\u0430\u0439\u043b\u044b<\/p>\n<p>\u0414\u043b\u044f <strong>FreeBSD 9.0<\/strong> \u0438 \u0432\u044b\u0448\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c: \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e <a rel=\"nofollow\" href=\"http:\/\/rtfm.co.ua\/freebsd-nastrojka-wi-fi\/\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Wi-Fi \u0432\u043e FreeBSD \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c 2-\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0447\u0435\u0440\u0435\u0437 hostap \u0438 wpa_supplicant. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: FreeBSD 8.2 Release i386, Wi-Fi\u00a0Atheros AR9285 Wireless LAN 802.11 a\/b\/g\/n Controller (AR928x)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1939","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1939"}],"version-history":[{"count":10,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1939\/revisions"}],"predecessor-version":[{"id":1941,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1939\/revisions\/1941"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}