Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@blackrouter:/etc/hostapd# uname -a
- Linux blackrouter 3.0.0-16-server #28-Ubuntu SMP Fri Jan 27 18:03:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
- root@blackrouter:/etc/hostapd# aptitude show hostapd libnl1
- Package: hostapd
- New: yes
- State: installed
- Automatically installed: no
- Version: 1:0.7.3-2build1
- Priority: optional
- Section: universe/net
- Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
- Uncompressed Size: 975 k
- Depends: libc6 (>= 2.4), libnl1 (>= 1.1), libssl1.0.0 (>= 1.0.0), lsb-base (>= 3.2-13)
- Conflicts: hostapd
- Description: user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
- Originally, hostapd was an optional user space component for Host AP driver. It adds more features to the basic IEEE 802.11
- management included in the kernel driver: using external RADIUS authentication server for MAC address based access control, IEEE
- 802.1X Authenticator and dynamic WEP keying, RADIUS accounting, WPA/WPA2 (IEEE 802.11i/RSN) Authenticator and dynamic TKIP/CCMP
- keying.
- The current version includes support for other drivers, an integrated EAP authenticator (i.e., allow full authentication without
- requiring an external RADIUS authentication server), and RADIUS authentication server for EAP authentication.
- hostapd works with the following drivers:
- * mac80211 based drivers with support for master mode
- * Host AP driver for Prism2/2.5/3,
- * madwifi driver for cards based on Atheros chip set (ar521x),
- * Any wired Ethernet driver for wired IEEE 802.1X authentication.
- Homepage: http://w1.fi/
- Package: libnl1
- New: yes
- State: installed
- Automatically installed: yes
- Version: 1.1-6ubuntu1
- Priority: optional
- Section: universe/libs
- Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
- Uncompressed Size: 426 k
- Depends: libc6 (>= 2.8)
- Conflicts: libnl1
- Description: library for dealing with netlink sockets
- This is a library for applications dealing with netlink sockets. The library provides an interface for raw netlink messaging and
- various netlink family specific interfaces.
- Homepage: http://www.infradead.org/~tgr/libnl/
- root@blackrouter:/etc/hostapd# lspci | grep AR9285
- 04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
- root@blackrouter:/etc/hostapd# modprobe ath9k
- root@blackrouter:/etc/hostapd# dmesg |grep ath9k
- [223431.160924] ath9k: Driver unloaded
- [223569.662559] ath9k 0000:04:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
- [223569.662585] ath9k 0000:04:00.0: setting latency timer to 64
- [223569.714423] ieee80211 phy4: Selected rate control algorithm 'ath9k_rate_control'
- [223569.716754] Registered led device: ath9k-phy4
- root@blackrouter:/etc/hostapd# iw phy phy4 interface add wlan1 type ap
- See http://wireless.kernel.org/RTFM-AP.
- root@blackrouter:/etc/hostapd# iwconfig wlan1
- wlan1 IEEE 802.11bgn ESSID:off/any
- Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
- Retry long limit:7 RTS thr:off Fragment thr:off
- Encryption key:off
- Power Management:on
- root@blackrouter:/etc/hostapd# cat atheros_ar9285_wlan1.conf
- # ar9285
- interface=wlan1
- driver=nl80211
- country_code=EU
- logger_syslog=-1
- logger_syslog_level=0
- logger_stdout=-1
- logger_stdout_level=0
- dump_file=/tmp/ar9285.dump
- ctrl_interface=/var/run/hostapd
- ctrl_interface_group=0
- ssid=civ
- eap_message=loud and clear
- hw_mode=g
- ieee80211n=1
- ht_capab=[RX-STBC1][SHORT-GI-40][DSSS_CCK-40][HT40-][HT40+][HT20]
- channel=9
- beacon_int=100
- dtim_period=2
- max_num_sta=255
- rts_threshold=2347
- fragm_threshold=2346
- preamble=1
- auth_algs=3
- ignore_broadcast_ssid=0
- wmm_enabled=1
- wmm_ac_bk_cwmin=4
- wmm_ac_bk_cwmax=10
- wmm_ac_bk_aifs=7
- wmm_ac_bk_txop_limit=0
- wmm_ac_bk_acm=0
- wmm_ac_be_aifs=3
- wmm_ac_be_cwmin=4
- wmm_ac_be_cwmax=10
- wmm_ac_be_txop_limit=0
- wmm_ac_be_acm=0
- wmm_ac_vi_aifs=2
- wmm_ac_vi_cwmin=3
- wmm_ac_vi_cwmax=4
- wmm_ac_vi_txop_limit=94
- wmm_ac_vi_acm=0
- wmm_ac_vo_aifs=2
- wmm_ac_vo_cwmin=2
- wmm_ac_vo_cwmax=3
- wmm_ac_vo_txop_limit=47
- wmm_ac_vo_acm=0
- own_ip_addr=192.168.1.1
- wpa=3
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=CCMP
- auth_algs=2
- eapol_version=2
- eapol_key_index_workaround=0
- use_pae_group_addr=1
- eap_server=0
- wpa_group_rekey=600
- wpa_gmk_rekey=86400
- wpa_passphrase=testtest
- root@blackrouter:/etc/hostapd# hostapd -d atheros_ar9285_wlan1.conf
- Configuration file: atheros_ar9285_wlan1.conf
- ctrl_interface_group=0
- eapol_version=2
- nl80211: Add own interface ifindex 288
- nl80211: New interface mon.wlan1 created: ifindex=290
- nl80211: Add own interface ifindex 290
- BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
- nl80211: Added 802.11b mode based on 802.11g information
- RATE[0] rate=10 flags=0x1
- RATE[1] rate=20 flags=0x1
- RATE[2] rate=55 flags=0x1
- RATE[3] rate=110 flags=0x1
- RATE[4] rate=60 flags=0x0
- RATE[5] rate=90 flags=0x0
- RATE[6] rate=120 flags=0x0
- RATE[7] rate=180 flags=0x0
- RATE[8] rate=240 flags=0x0
- RATE[9] rate=360 flags=0x0
- RATE[10] rate=480 flags=0x0
- RATE[11] rate=540 flags=0x0
- Scan for neighboring BSSes prior to enabling 40 MHz channel
- Scan requested (ret=0) - scan timeout 10 seconds
- Interface initialization will be completed in a callback
- nl80211: Event message available
- nl80211: Scan trigger
- RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
- RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan1' added
- Unknown event 5
- RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
- RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan1' added
- Unknown event 5
- RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
- RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
- Unknown event 5
- nl80211: Event message available
- nl80211: New scan results available
- Received scan results (0 BSSes)
- 40 MHz affected channel range: [2437,2487] MHz
- Completing interface initialization
- Mode: IEEE 802.11g Channel: 9 Frequency: 2452 MHz
- nl80211: Failed to set channel (freq=2452): -22 (Invalid argument)
- Could not set channel for kernel driver
- RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
- RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
- Unknown event 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement