apps/wpa2 software -- Main documentation file
Original Author: Ted Merrill 2007-2008
===========================================================================
Overview
===========================================================================
The apps/wpa2 source directory provides a solution for
authentication software support for
Atheros access point hardware in both access point and station modes,
including WPS support.
However, the software is quite general and can be used on any linux-based
device with Atheros WLAN hardware.
The "hostap" free software written by Jouni (hostapd, wpa_supplicant)
is quite good and complete but (as of this writing) does not include WPS
support.
This is thus a clone which includes WPS support; the clone including WPS
support was developed by Sony, and then further modified by Atheros,
particularly to make UPnP support more economical.
Additionally, Atheros has made changes to the configuration file format
in the hope that this will make it easier to use.
Note that this software relies intimately upon Atheros "madwifi" drivers
that have the proper WPS extensions.
Features:
-- Complete(?) WiFi authentication support as provided by hostapd
and wpa_supplicant
-- Complete(?) WiFi-based WPS support
-- UPnP WPS support (currently for hostapd only, see notes below)
-- Atheros WPS extensions support
Latent Features:
-- UPnP support from wpa_supplicant requires either bringing back
libupnp (ugh!) or writing a "tiny upnp" code for it
(as was done for hostapd).
-- Sony code provides near field control (NFC) but we have never disabled
this and it won't work without some effort at fixing bit rot.
The following document attempts to give a definitive list of supported
and unsupported features, plus configuration methods:
Atheros_WPS_Extensions_Specification.doc
============================================================================
Running the software
============================================================================
The configuration file system for hostapd has been greatly changed by
Atheros. Please read configuration.txt in detail.
The central configuration file is a "topology file",
see examples/topology.conf .
Normally, both wpa_supplicant and hostapd will be run
with a single topology file as an argument
and will read the configuration files listed therein.
The program "apstart" also sets up the network devices according to
the content of the topology file.
The topology file refers to other files.
A common problem is that the path to the other files is incorrect.
There are examples of all files in the examples directory; these
examples can be used as-is for simple cases.
The examples are self-documenting (contain lots of comments);
these comments should be removed (to save space) from a product.
Prior to running the authentication programs, the network devices
and bridge devices must be set up.
(The drivers need to be loaded first, but that is outside of the scope
of this document).
One way to do that is to run:
apstart /etc/wpa2/topology.conf
hostapd is invoked as:
hostapd [-d] [-B] /etc/wpa2/topology.conf &
where:
-d turns on debug messages (-dd for even more) ... omit if not needed
-B daemonizes
wpa_supplicant is invoked in the same way.
Communication with the wpa_supplicant and hostapd programs is via
socket files that are normally resident in the /var/run/wpa_supplicant
and /var/run/hostapd directories (respectively).
The wpatalk program serves an example of how to talk via these
socket files.
The protocol involves sending a command line and receiving an acknowledgement;
for more complicated operations, it may be necessary to wait for
asyncronous acknowledgement.
Once running, you can use wpatalk to send commands to the running
programs, or more exactly to the context within the program that handles
a particular network device (e.g. ath0, ath1 etc.).
wpatalk is invoked as:
wpatalk ath<n> 'command arg arg'
(you can give multiple commands, BUT
don't forget to quote any command that has arguments, even if
you have only one command!)
or just
wpatalk ath<n>
for interactive, in which case you enter no more than one command
per input line.
Commands whose names are capitalized ("raw commands")
are passed through to the appropriate program unmodified.
Commands whose names are lower case receive handling within wpatalk
before being (possibly) passed through (wpatalk detects if
it is talking to a wpa_supplicant or hostapd).
See hcmd.txt for a list of raw commands for hostapd.
See wcmd.txt for a list of raw commands for wpa_supplicant.
============================================================================
Configuring hostapd
============================================================================
Refer to the comments in the example configuration files for details.
The topology file defines (in a "radio" section) how the underlying
network interface (e.g. "wifi0") is configured with "virtual APs"
which become the active wireless network interface, e.g. "ath0".
The topology file must define a bridge section that connects an active
wireless interface such as "ath0" (defined in a radio section)
with a wired interface such as "eth0".
Any (?) number of interfaces can be bridged together.
The general parameters for an AP radio are defined in a config file
referenced from the radio/ap subsection, e.g.
config install/etc/wpa2/ap_example_80211g.conf
This file is rarely if ever changed once set up for a particular access
point.
The per-BSS (per active network interface, such as "ath0") parameters
are more frequently changed.
Note that the fields "interface" and "bridge" are present for historical
reasons but actually ignored.
The field "ctrl_interface" must be "/var/run/hostapd" in order to work
with the default setting for wpatalk.
In order for WPS to work, regardless of the authentication mode,
the following fields must always be set:
eap_server=1
To configure the AP to be totally open and unencrypted you need the
following values:
ieee8021x=0
auth_algs=1
wpa=0
wpa_key_mgmt=
(or equivalently, the field "wpa_key_mgmt" may be commented out).
(and you need to comment out wep key info?).
To configure the AP to use WEP-PSK ("WEP-open"):
ieee8021x=0
wpa=0
wpa_key_mgmt=
auth_algs=1
wep_default_key=0
(wep_default_key can be 0, 1, 2 or 3 but 0 is most common)
wep_key0="abcde"
(Use appropropriate wep key! Use wep_key<n> for wep_default_key=<n>).
(Wep keys must be quoted strings of 5 or 13 chars, or hex numerals
of 10 or 26 characters; other wep key sizes are NOT supported).
To configure the AP to use WPA-TKIP-PSK:
ieee8021x=1
auth_algs=1
wpa=1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
and also set wpa_psk or wpa_passphrase (may need to remove wep key info?).
To configure the AP to use WPA2-CCMP-PSK:
ieee8021x=1
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
and also set wpa_psk or wpa_passphrase (may need to remove wep key info?).
There are many other combinations supported by hostapd...
============================================================================
Using Wifi Protected Setup (WPS)
============================================================================
See above for configuration requirements for hostapd.
Note that wps_disabled=0 is required (and wps_upnp_disabled=0 to
allow UPnP sessions).
The magical and very confusing AP (hostapd) parameter "wps_configured"
---------------------------------------------------------------------------
The "wps_configured" hostapd parameter is mandated by the WPS specification.
It's factory default may be 0 or 1 (false or true) but as a practical
matter it is expected (by WPS test suites) that it will be 0.
It is normally set to zero only on a "set factor
没有合适的资源?快使用搜索试试~ 我知道了~
LSDK-WLAN-9.2.0.31_b.gz
5星 · 超过95%的资源 需积分: 44 530 下载量 29 浏览量
2011-10-26
18:42:06
上传
评论 5
收藏 11.28MB GZ 举报
温馨提示
共2000个文件
c:1147个
h:943个
makefile:64个
LSDK-WLAN-9.2.0.31_b.gz LSDK-WLAN-9.2.0.31_b.gz LSDK-WLAN-9.2.0.31_b.gz
资源推荐
资源详情
资源评论
收起资源包目录
LSDK-WLAN-9.2.0.31_b.gz (2000个子文件)
fwu_1_1.c 350KB
fwu.c 350KB
fwu_magpie_pci.c 344KB
ieee80211_wireless.c 301KB
fwu_k2.c 253KB
ath_main.c 240KB
if_ath.c 218KB
fwu_magpie_gmac.c 200KB
eap_wps.c 194KB
tiny_upnp_wps_device.c 190KB
ieee80211_scan.c 165KB
ar5416_reset.c 162KB
wpa.c 158KB
ar9300_reset.c 146KB
wlancfg.c 144KB
eap_wps.c 143KB
driver_nl80211.c 138KB
ath_htc_wmi.c 128KB
driver_nl80211.c 122KB
ieee80211_aow.c 122KB
ar5416_eeprom_def.c 122KB
ath_xmit.c 119KB
ieee80211_resmgr_sm.c 118KB
ieee80211_resmgr_oc_scheduler.c 118KB
ath_xmit_ht.c 111KB
ar9300_eeprom.c 107KB
wpa.c 102KB
osif_umac.c 102KB
ieee80211_p2p_go_power.c 99KB
ar9300_attach.c 97KB
ieee80211_mgmt.c 97KB
ar5212_reset.c 95KB
ar5416_misc.c 92KB
ath_bt.c 91KB
wpa_supplicant.c 88KB
iwlib.c 87KB
mlme.c 86KB
mlme.c 85KB
driver_ndis.c 85KB
driver_ndis.c 85KB
ath_led.c 83KB
config.c 82KB
dbus_new_handlers.c 80KB
ar9300_paprd.c 79KB
dbus_new_handlers.c 79KB
ieee80211_sta_power.c 78KB
ar5416_eeprom_ar9287.c 77KB
ar9300_misc.c 77KB
ieee80211_scanentry.c 76KB
ar5416_attach.c 76KB
libtommath.c 76KB
libtommath.c 76KB
driver_ndis.c 75KB
mlme.c 75KB
wps_registrar.c 74KB
wps_registrar.c 74KB
ath_recv.c 72KB
wps_config.c 72KB
ath_beacon.c 71KB
tls_openssl.c 71KB
wpa_supplicant.c 71KB
wpa_supplicant.c 70KB
driver_test.c 70KB
driver_test.c 70KB
wpa.c 69KB
ifrename.c 69KB
wpa_auth.c 68KB
tlsv1_client.c 67KB
iwlist.c 67KB
ieee80211_ie.c 65KB
wpa.c 65KB
tls_openssl.c 65KB
ieee80211_tdls.c 64KB
driver_wext.c 64KB
wpa_auth.c 64KB
ar5416_eeprom_4k.c 63KB
ieee80211_aplist.c 63KB
ieee80211_connection_sm.c 62KB
ratectrl_11nViVo.c 61KB
ar5212Phy.c 61KB
ctrl_iface.c 61KB
usbdrv.c 61KB
ieee80211_input.c 61KB
ar5212_attach.c 60KB
ieee80211_p2p_device.c 59KB
pktlogdump.c 59KB
eap.c 59KB
ieee80211_crypto_rijndael.c 59KB
eap.c 59KB
ieee80211_node.c 58KB
ratectrl_11n.c 58KB
driver_madwifi.c 58KB
ah.c 58KB
eap.c 57KB
config.c 57KB
driver_wext.c 57KB
driver_wext.c 57KB
hostapd.c 57KB
ieee802_1x.c 56KB
driver_atheros.c 56KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
nolycjyf
- 粉丝: 6
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页