You are not logged in.

#1 2011-09-17 15:27:53

loblik
Member
Registered: 2011-09-12
Posts: 2

[solved] hostapd and ath5k

Hi,

I'm trying to set up AP using hostapd. I have TL-WN553AG card with atheros ar5413 chipset.
This card should be able to operate in master mode according to some notes i found on the net.

lspci:

00:09.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01)

uname -a:

Linux lada 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 07:32:23 UTC 2011 i686 AMD Duron(tm) processor AuthenticAMD GNU/Linux

dmesg:

[ 4366.710144] ath5k 0000:00:09.0: PCI INT A disabled
[ 4374.424746] ath5k 0000:00:09.0: PCI INT A -> Link[LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 4374.424975] ath5k 0000:00:09.0: registered as 'phy1'
[ 4375.065714] ath: EEPROM regdomain: 0x0
[ 4375.065725] ath: EEPROM indicates default country code should be used
[ 4375.065730] ath: doing EEPROM country->regdmn map search
[ 4375.065740] ath: country maps to regdmn code: 0x3a
[ 4375.065748] ath: Country alpha2 being used: US
[ 4375.065752] ath: Regpair used: 0x3a
[ 4375.071789] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 4375.076594] ath5k phy1: Atheros AR5413 chip found (MAC: 0xa4, PHY: 0x61)

hostapd:

Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Add own interface ifindex 5
nl80211: New interface mon.wlan0 created: ifindex=7
nl80211: Add own interface ifindex 7
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=0x0
RATE[3] rate=110 flags=0x0
Completing interface initialization
Mode: IEEE 802.11b  Channel: 1  Frequency: 2412 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 94:0c:6d:f9:f3:b9 and ssid 'test'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5

hostapd.conf:

interface=wlan0
ssid=test
channel=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
auth_algs=1

The problem is hostapd is likely not sending any beacons. I don't see the network in scan on my laptop.
And if I run iwconfig it gives this. It looks like the device is not configured properly.

wlan0     IEEE 802.11abg  Mode:Master  Frequency:2.412 GHz  Tx-Power=27 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
mon.wlan0  IEEE 802.11abg  Mode:Monitor  Tx-Power=27 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

I dont't know how to move on. Maybe i should try to compile madwifi and use it instead of ath5k. And is it still possible to use it with linux 3.0 ?

Thanks for any help.

pl

Edit: I finally get it to work somehow. I don't know exactly what i did but it works really well now.

Last edited by loblik (2011-09-19 06:29:58)

Offline

Board footer

Powered by FluxBB