5 kx # Wireless LAN adapter configuration
5 kx #
5 kx # Theory of operation :
5 kx #
5 kx # The script attempts to match a block of settings to the specific wireless
5 kx # card inserted, the *first* block matching the card is used.
5 kx # The address format is "hwaddr", with * as a wildcard.
5 kx # 'hwaddr' is the unique MAC address identifier of the wireless card.
5 kx # The MAC address is usually printed on the card, or can be found via
5 kx # "/sbin/ip link show dev $interface"
5 kx # Some examples here use only half of the MAC address with a wildcard to
5 kx # match a whole family of cards...
5 kx #
5 kx # All the Wireless specific configuration is done through the Wireless
5 kx # Extensions, so we will just call 'iwconfig' with the right parameters
5 kx # defined below.
5 kx # Of course, you need to have iwconfig installled on your system.
5 kx # To download iwconfig, or for more info on Wireless Extensions :
5 kx # http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
5 kx #
5 kx # Note : you don't need to fill all parameters, leave them blank, in most
5 kx # cases the driver will initialise itself with sane defaults values or
5 kx # automatically figure out the value... And no drivers do support all
5 kx # possible settings...
5 kx #
5 kx # -- This is a modified '/etc/pcmcia/wireless.opts' script --
5 kx # -- I added sections for Prism/GT and Atheros based cards --
5 kx # -- (supported by the prism54 and madwifi drivers) --
5 kx # -- 16/sep/2004 * Eric Hameleers --
5 kx #
5 kx
5 kx VERBOSE=1
5 kx
5 kx case "$HWADDR" in
5 kx
5 kx ## NOTE : Comment out the following five lines to activate the samples below ...
5 kx ## --------- START SECTION TO REMOVE -----------
5 kx ## Pick up any Access Point, should work on most 802.11 cards
5 kx *)
5 kx INFO="Any ESSID"
5 kx ESSID="any"
5 kx ;;
5 kx ## ---------- END SECTION TO REMOVE ------------
5 kx
5 kx
5 kx # Here are a few examples with a few Wireless LANs supported...
5 kx # The matching is done on the first 3 bytes of the MAC address
5 kx
5 kx # SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
5 kx 00:04:E2:*)
5 kx INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
5 kx # ESSID (extended network name) : My Network, any
5 kx ESSID="any"
5 kx # NWID/Domain (cell identifier) : 89AB, 100, off
5 kx NWID=""
5 kx # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
5 kx MODE="Managed"
5 kx # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
5 kx FREQ=""
5 kx CHANNEL="7"
5 kx # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
5 kx SENS=""
5 kx # Bit rate : auto, 1M, 11M,54M
5 kx RATE="auto"
5 kx # Encryption key : 4567-89AB-CD, s:password
5 kx # Example for 40-bit encryption:
5 kx #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
5 kx # Example for 104-bit encryption (aka 128-bit WEP):
5 kx #KEY="d5ad2f05abd048ecf10b1c80c7"
5 kx KEY=""
5 kx # RTS threshold : off, 500
5 kx RTS=""
5 kx # Fragmentation threshold : off, 1000
5 kx FRAG=""
5 kx # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
5 kx IWCONFIG=""
5 kx # iwspy parameters : + 01:23:45:67:89:AB
5 kx IWSPY=""
5 kx # iwpriv parameters : set_port 2, set_histo 50 60
5 kx IWPRIV=""
5 kx ;;
5 kx
5 kx # Multiband Atheros based 802.11a/b/g universal NIC cards
5 kx 00:05:4E:*)
5 kx INFO="Multiband Atheros based 802.11a/b/g universal NIC"
5 kx # ESSID (extended network name) : My Network, any
5 kx ESSID=""
5 kx # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
5 kx MODE="Managed"
5 kx # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
5 kx FREQ=""
5 kx CHANNEL="7"
5 kx # Bit rate : auto, 1M, 11M,54M
5 kx RATE="auto"
5 kx # Encryption key : 4567-89AB-CD, s:password
5 kx # Example for 40-bit encryption:
5 kx #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
5 kx # Example for 104-bit encryption (aka 128-bit WEP):
5 kx #KEY="d5ad2f05abd048ecf10b1c80c7"
5 kx KEY=""
5 kx # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
5 kx IWCONFIG=""
5 kx # iwspy parameters : + 01:23:45:67:89:AB
5 kx IWSPY=""
5 kx # iwpriv parameters : set_port 2, set_histo 50 60
5 kx IWPRIV=""
5 kx ;;
5 kx
5 kx # Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
5 kx # Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
5 kx 00:60:1D:*|00:02:2D:*)
5 kx INFO="Wavelan IEEE example (Lucent default settings)"
5 kx ESSID="Wavelan Network"
5 kx MODE="Managed"
5 kx #RATE="auto"
5 kx KEY="s:secu1"
5 kx # To set all four keys, use :
5 kx #KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
5 kx # For the RG 1000 Residential Gateway: The ESSID is the identifier on
5 kx # the unit, and the default key is the last 5 digits of the same.
5 kx #ESSID="084d70"
5 kx #KEY="s:84d70"
5 kx ;;
5 kx
5 kx # Cisco/Aironet 4800/3x0
5 kx # Note : MPL driver only (airo/airo_cs), version 1.3 or later
5 kx 00:40:96:*|00:02:8A:*)
5 kx INFO="Cisco/Aironet example (Cisco default settings)"
5 kx ESSID="any"
5 kx # To set all four ESSID, use iwconfig v21 and the same trick as above
5 kx MODE="Managed"
5 kx #RATE="11M auto"
5 kx #KEY="d5ad2f05abd048ecf10b1c80c7"
5 kx KEY="off"
5 kx ;;
5 kx
5 kx # Samsung MagicLan (+ some other PrismII cards)
5 kx # Note : Samsung binary library driver, version 1.20 or later
5 kx 00:00:F0:*|00:02:78:*)
5 kx INFO="Samsung MagicLan example (Samsung default settings)"
5 kx ESSID="any"
5 kx MODE="Managed"
5 kx CHANNEL="4"
5 kx RATE="auto"
5 kx #KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
5 kx #IWCONFIG="power on"
5 kx ;;
5 kx
5 kx # Raytheon Raylink/WebGear Aviator2.4
5 kx # Note : doesn't work yet, please use for debugging only :-(
5 kx 00:00:8F:*|00:00:F1:*)
5 kx INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
5 kx ESSID="ADHOC_ESSID"
5 kx MODE="Ad-Hoc"
5 kx RATE="auto"
5 kx IWPRIV="set_framing 1"
5 kx ;;
5 kx
5 kx # Old Lucent Wavelan
5 kx 08:00:0E:*)
5 kx INFO="Wavelan example (Lucent default settings)"
5 kx NWID="0100"
5 kx MODE="Ad-Hoc"
5 kx FREQ="2.425G"
5 kx KEY="off"
5 kx ;;
5 kx
5 kx # Netwave (Xircom Netwave/Netwave Airsurfer)
5 kx 00:80:C7:*)
5 kx INFO="Netwave example (Netwave default settings)"
5 kx NWID="100"
5 kx KEY="00"
5 kx ;;
5 kx
5 kx # Proxim RangeLan2/Symphony (what is the MAC address ???)
5 kx XX:XX:XX:*)
5 kx INFO="Proxim RangeLan2/Symphony example"
5 kx NWID="0"
5 kx MODE="Master"
5 kx CHANNEL="15"
5 kx IWPRIV="setsubchan 1"
5 kx ;;
5 kx
5 kx # No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
5 kx XX:XX:XX:*)
5 kx INFO="NWN Swallow example"
5 kx ESSID="session"
5 kx KEY="0000-0000-00 open"
5 kx ;;
5 kx
5 kx # Symbol Spectrum24 setting (what is the MAC address ???)
5 kx XX:XX:XX:*)
5 kx INFO="Symbol Spectrum24 example"
5 kx ESSID="Essid string"
5 kx ;;
5 kx
5 kx # Generic example (decribe all possible settings)
5 kx *)
5 kx INFO="Fill with your own settings..."
5 kx # ESSID (extended network name) : My Network, any
5 kx ESSID=""
5 kx # NWID/Domain (cell identifier) : 89AB, 100, off
5 kx NWID=""
5 kx # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
5 kx MODE=""
5 kx # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
5 kx FREQ=""
5 kx CHANNEL=""
5 kx # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
5 kx SENS=""
5 kx # Bit rate : auto, 1M, 11M
5 kx RATE=""
5 kx # Encryption key : 4567-89AB-CD, s:password
5 kx KEY=""
5 kx # RTS threshold : off, 500
5 kx RTS=""
5 kx # Fragmentation threshold : off, 1000
5 kx FRAG=""
5 kx # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
5 kx IWCONFIG=""
5 kx # iwspy parameters : + 01:23:45:67:89:AB
5 kx IWSPY=""
5 kx # iwpriv parameters : set_port 2, set_histo 50 60
5 kx IWPRIV=""
5 kx ;;
5 kx esac