modprobe ath_pci autocreate=ap
iwconfig ath0 mode master
ifconfig ath0 xxx.xxx.xxx.xxx/xx
ifconfig ath0 up
vi /etc/hostapd/hostapd.conf
/etc/init.d/hostapd start
ES MUSS MADWIFI GENUTZT WERDEN. ATH5K IST NICHT IM AP MODUS SUPPORTED.
Beispielconfig:
Code:
# HostAPD
# Interface
interface=ath0
#bridge=br0
driver=madwifi
# Logs
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
# Dump
dump_file=/tmp/hostapd.dump
# Rechte
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
# Allgemein WLAN Konfiguration
ssid=Bl4ckB0x.WLAN
country_code=DE
ieee80211d=1
ieee80211h=0
hw_mode=g
channel=11
beacon_int=100
dtim_period=1
max_num_sta=10
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
auth_algs=2
ignore_broadcast_ssid=1
# WME
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
ap_max_inactivity=3600
bridge_packets=1
# WPA 2
wpa=2
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP