Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Changes between Version 11 and Version 12 of UserDocs/SimpleAccessPoint

Author:
mrenzmann (IP: 0.0.0.0)
Timestamp:
11/03/08 16:23:42 (8 years ago)
Comment:

Adjustments in response to new domain; remove references to madwifi-old.

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/SimpleAccessPoint

    v11 v12  
    11= How can I use my card as an access point? = 
    22 
    3 NOTE: because a station VAP is created by default, wlanconfig will fail to create an AP VAP (for MadWifi releases >1407) unless the parameter 'autocreate=none' is passed when loading the ath_pci module. See http://madwifi.org/wiki/UserDocs/autocreate for details. 
     3NOTE: because a station VAP is created by default, wlanconfig will fail to create an AP VAP (for MadWifi releases >1407) unless the parameter 'autocreate=none' is passed when loading the ath_pci module. See [wiki:UserDocs/autocreate] for details. 
    44 
    55To create an interface (called ''ath0'') as an access point, issue the command: 
    88wlanconfig ath0 create wlandev wifi0 wlanmode ap 
    99}}} 
    10  
    11   If you're using MadWifi-Old, use this instruction instead: 
    12   {{{ 
    13   iwconfig ath0 mode Master 
    14   }}} 
    1510 
    1611This will allow clients to see your network and associate with it.  To do anything useful beyond having network access to just the machine with the wireless NIC, you will need to set up some sort of routing, most likely install a DHCP server on the router, etc. 
    8075}}} 
    8176 
    82 ---- 
    83  
    84 In Madwifi-Old: 
    85  
    86 Matt Jarvis sent the following info on how to use madwifi as an access point. This should please quite a lot of people: 
    87  
    88 {{{ 
    89 #!blockquote 
    90 Hi Matt 
    91  
    92 I was reading your faq and noticed you don’t have a section on how to use madwifi as an access point. Here are the necessary steps, I use this currently and it works although I am struggling with ath_hal_wait timeouts which causes throughput in 802.11g to be poor. Hopefully someone will fix something in the driver soon to improve performance. For 802.11b access points, the hostap driver is a much more mature solution, and has a massive feature set for this kind of application, just find a card with a Prism2 chipset and away you go. However, if you need 802.11g then madwifi is your only option. 
    93  
    94 Make sure you have bridging turned on in the kernel, either as a module or built in, install bridge-utils (packages are available for many distros, or just roll your own from the sources). 
    95 {{{ 
    96 #Set the card in master mode 
    97 iwconfig ath0 mode master 
    98 #Create the bridge 
    99 brctl addbr br0 
    100 brctl addif br0 ath0 
    101 brctl addif br0 eth0 
    102 ifconfig ath0 0.0.0.0 
    103 ifconfig eth0 0.0.0.0 
    104 ifconfig br0 192.168.0.1 
    105 }}} 
    106 The bridge should now be up, test by pinging another machine on either side. Pings may take a few seconds to work, as the bridge has to work out which side each ip address is on. 
    107  
    108 If you can ping both the wired and wireless subnets then the bridge is working, and you are now functioning as an access point. This is an extremely insecure configuration, anyone who can connect to your access point is fully integrated into your network, so use additional security, encryption and authentication of some kind. MAC addresses can be spoofed, but MAC based authentication is at least a protection against casual scanners. 
    109 }}} 
    110  
    111 Also, Matt (Jarvis) has discovered that the e100 driver (for ethernet cards) does not interact well with the bridging code. A single packet crossing the bridge is enough to cause a kernel panic (he has only tested this with 2.4.22 kernels, but suspects that it may be the case for the whole 2.4 series). To get around this, use the eepro100 driver, which normally manages to work fine. 
    112  
    11377 
    11478----