Hostap

From SaruWiki
Revision as of 19:31, 19 October 2008 by Insomnia (talk | contribs) (Hostap)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hardware

Requirements

wireless-tools (for iwconfig)
Bridge-utils
Hostapd
Hostap-utils ??

I used an old netgear wireless pci card. To see wich chipset it has type

lspci
00:0e.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)

The atheros chip uses the madwifi driver http://sourceforge.net Download the driver and compile the module.

make install
modprobe ath_pci

Now you should see the card

thinner:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions. 

eth1      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:""  Nickname:""
         Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated
         Bit Rate:0 kb/s   Tx-Power:14 dBm   Sensitivity=1/1
         Retry:off   RTS thr:off   Fragment thr:off
         Encryption key:off
         Power Management:off
         Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
         Rx invalid nwid:4378  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

To bring the card up

#ifconfig ath0 up

And to scan for networks

#wlanconfig ath0 list scan

And for more info

#iwlist ath0 scan
#wlanconfig ath0 destroy
#wlanconfig ath0 create wlandev wifi0 wlanmode ap
ath0      IEEE 802.11g  ESSID:""  Nickname:""
         Mode:Master  Frequency:2.412 GHz  Access Point: 00:09:5B:C3:97:3E