# Wireless LAN adapter configuration # # Theory of operation : # # The script attempts to match a block of settings to the specific wireless # card inserted, the *first* block matching the card is used. # The address format is "hwaddr", with * as a wildcard. # 'hwaddr' is the unique MAC address identifier of the wireless card. # The MAC address is usually printed on the card, or can be found via ifconfig. # Some examples here use only half of the MAC address with a wildcard to # match a whole family of cards... # # All the Wireless specific configuration is done through the Wireless # Extensions, so we will just call 'iwconfig' with the right parameters # defined below. # Of course, you need to have iwconfig installled on your system. # To download iwconfig, or for more info on Wireless Extensions : #http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html # # Note : you don't need to fill all parameters, leave them blank, in most # cases the driver will initialise itself with sane defaults values or # automatically figure out the value... And no drivers do support all # possible settings... # # -- This is a modified '/etc/pcmcia/wireless.opts' script -- # -- I added sections for Prism/GT and Atheros based cards -- # -- (supported by the prism54 and madwifi drivers) -- # -- 16/sep/2004 * Eric Hameleers -- # # $Id: rc.wireless.conf,v 1.1 2005/11/29 13:17:37 eha Exp eha $ VERBOSE=1 case "$HWADDR" in # Generic example (decribe all possible settings) *) INFO="Mitt nätverk" # ESSID (extended network name) : My Network, any ESSID="haze" # NWID/Domain (cell identifier) : 89AB, 100, off NWID="00:14:BF:A5:05:99" # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto MODE="auto" # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency) FREQ="" CHANNEL="11" # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm) SENS="" # Bit rate : auto, 1M, 11M RATE="" # Encryption key : 4567-89AB-CD, s:password KEY="hakannilsson" # RTS threshold : off, 500 RTS="" # Fragmentation threshold : off, 1000 FRAG="" # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB IWCONFIG="" # iwspy parameters : + 01:23:45:67:89:AB IWSPY="" # iwpriv parameters : set_port 2, set_histo 50 60 IWPRIV="" # If you use WPA, this is where you tell what external program you use # (currently wpa_supplicant or wpaxsupplicant). Also, set KEY="" above. WPA="wpa_supplicant" # The wpa_supplicant needs to knowwhich wireless driver you're using. # Find out the supported drivers by running "wpa_supplicant --help" WPADRIVER="wext" ;; esac