Hostap: Difference between revisions

From SaruWiki
Jump to navigation Jump to search
mNo edit summary
m (kernel support atheros)
Line 12: Line 12:


The atheros chip uses the madwifi driver http://sourceforge.net
The atheros chip uses the madwifi driver http://sourceforge.net
Download the driver and compile the module.
Download the driver and compile the module. Or use the 2.6.27.2 kernel where the atheros chip is supported as a module. Use modprobe ath9k
  make install
  make install
  modprobe ath_pci
  modprobe ath_pci

Revision as of 00:27, 20 October 2008

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. Or use the 2.6.27.2 kernel where the atheros chip is supported as a module. Use modprobe ath9k

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

Now create a new text file named /etc/hostapd/wpa_psk and paste your pass phrase as:

00:00:00:00:00:00 PASSPHRASE