home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 January / PCpro_2005_01.ISO / isolinux / all.rdz / initrd / etc / pcmcia / wireless.opts < prev    next >
Encoding:
Text File  |  2004-03-24  |  5.5 KB  |  172 lines

  1. # Wireless LAN adapter configuration
  2. #
  3. # Theory of operation : 
  4. #
  5. # The script attempts to match a block of settings to the specific wireless
  6. # card inserted, the *first* block matching the card is used.
  7.  # The address format is "scheme,socket,instance,hwaddr", with * as a wildcard.
  8. # 'scheme' is the pcmcia scheme (set via 'cardctl scheme XXX').
  9. # 'hwaddr' is the unique MAC address identifier of the wireless card.
  10. # The MAC address is usually printed on the card, or can be found via ifconfig.
  11. # Some examples here use only half of the MAC address with a wildcard to
  12. # match a whole family of cards...
  13. #
  14. # All the Wireless specific configuration is done through the Wireless
  15. # Extensions, so we will just call 'iwconfig' with the right parameters
  16. # defined below.
  17. # Of course, you need to have iwconfig installled on your system.
  18. # To download iwconfig, or for more info on Wireless Extensions :
  19. #    http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
  20. #
  21. # Note : you don't need to fill all parameters, leave them blank, in most
  22. # cases the driver will initialise itself with sane defaults values or
  23. # automatically figure out the value... And no drivers do support all
  24. # possible settings...
  25. #
  26. # If you make any mistakes, you'll get a cryptic message in the system
  27. # log.  You'll need to figure out on your own which parameter was wrong:
  28. #     cardmgr[310]: executing: './network start wvlan0'
  29. #     cardmgr[310]: + SIOCSIWMODE: Invalid argument
  30. # I've tried to give more troubleshooting help at :
  31. #    http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html#debug
  32. # In case of doubts, just check "/etc/pcmcia/wireless" for the gory details...
  33. #
  34. # Note also that this script will work only with the original Pcmcia scripts,
  35. # and not with the default Red Hat scripts. Send a bug report to Red Hat ;-)
  36. #
  37. # Finally, send comments and flames to me, Jean Tourrilhes <jt@hpl.hp.com>
  38. #
  39.  
  40. case "$ADDRESS" in
  41.  
  42. # Here is an example of scheme matching
  43. # Activate with "cardctl scheme essidany"
  44.  
  45. # Pick up any Access Point, should work on most 802.11 cards
  46. essidany,*,*,*)
  47.     INFO="Any ESSID"
  48.     ESSID="any"
  49.     ;;
  50.  
  51. # Here are a few examples with a few Wireless LANs supported...
  52. # The matching is done on the first 3 bytes of the MAC address
  53.  
  54. # Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
  55. # Melco/Buffalo Networks WLI-PCM-L11
  56. # Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
  57. *,*,*,00:60:1D:*|*,*,*,00:02:2D:*)
  58.     INFO="Wavelan IEEE example (Lucent default settings)"
  59.     ESSID="Wavelan Network"
  60.     MODE="Ad-Hoc"
  61. #    RATE="auto"
  62.     KEY="s:secu1"
  63. # To set all four keys, use :
  64. #   KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
  65. # For the RG 1000 Residential Gateway: The ESSID is the identifier on
  66. # the unit, and the default key is the last 5 digits of the same.
  67. #   ESSID="084d70"
  68. #   KEY="s:84d70"
  69.     ;;
  70.  
  71. # Cisco/Aironet 4800/340
  72. # Note : MPL driver only (airo/airo_cs), version 1.3 or later
  73. *,*,*,00:40:96:*)
  74.     INFO="Cisco/Aironet example (Cisco default settings)"
  75.     ESSID="any"
  76. # To set all four ESSID, use iwconfig v21 and the same trick as above
  77.     MODE="Managed"
  78. #    RATE="11M auto"
  79. #    KEY="off"
  80.     ;;
  81.  
  82. # Samsung MagicLan (+ some other PrismII cards)
  83. # Note : Samsung binary library driver, version 1.20 or later
  84. *,*,*,00:00:F0:*|*,*,*,00:02:78:*)
  85.     INFO="Samsung MagicLan example (Samsung default settings)"
  86.     ESSID="any"
  87.     MODE="Managed"
  88.     CHANNEL="4"
  89.     RATE="auto"
  90. #    KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
  91. #    IWCONFIG="power on"
  92.     ;;
  93.  
  94. # Raytheon Raylink/WebGear Aviator2.4
  95. # Note : doesn't work yet, please use for debugging only :-(
  96. *,*,*,00:00:8F:*|*,*,*,00:00:F1:*)
  97.     INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
  98.     ESSID="ADHOC_ESSID"
  99.     MODE="Ad-Hoc"
  100.     RATE="auto"
  101.     IWPRIV="set_framing 1"
  102.     ;;
  103.  
  104. # Old Lucent Wavelan
  105. *,*,*,08:00:0E:*)
  106.     INFO="Wavelan example (Lucent default settings)"
  107.     NWID="0100"
  108.     MODE="Ad-Hoc"
  109.     FREQ="2.425G"
  110.     KEY="off"
  111.     ;;
  112.  
  113. # Netwave (Xircom Netwave/Netwave Airsurfer)
  114. *,*,*,00:80:C7:*)
  115.     INFO="Netwave example (Netwave default settings)"
  116.     NWID="100"
  117.     KEY="00"
  118.     ;;
  119.  
  120. # Proxim RangeLan2/Symphony (what is the MAC address ???)
  121. *,*,*,XX:XX:XX:*)
  122.     INFO="Proxim RangeLan2/Symphony example"
  123.     NWID="0"
  124.     MODE="Master"
  125.     CHANNEL="15"
  126.     IWPRIV="setsubchan 1"
  127.     ;;
  128.  
  129. # No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
  130. *,*,*,XX:XX:XX:*)
  131.     INFO="NWN Swallow example"
  132.     ESSID="session"
  133.     KEY="0000-0000-00 open"
  134.     ;;
  135.  
  136. # Symbol Spectrum24 setting (what is the MAC address ???)
  137. *,*,*,XX:XX:XX:*)
  138.     INFO="Symbol Spectrum24 example"
  139.     ESSID="Essid string"
  140.     ;;
  141.  
  142. # Generic example (decribe all possible settings)
  143. *,*,*,*)
  144.     INFO="Fill with your own settings..."
  145.     # ESSID (extended network name) : My Network, any
  146.     ESSID=""
  147.     # NWID/Domain (cell identifier) : 89AB, 100, off
  148.     NWID=""
  149.     # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
  150.     MODE=""
  151.     # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
  152.     FREQ=""
  153.     CHANNEL=""
  154.     # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
  155.     SENS=""
  156.     # Bit rate : auto, 1M, 11M
  157.     RATE=""
  158.     # Encryption key : 4567-89AB-CD, s:password
  159.     KEY=""
  160.     # RTS threshold : off, 500
  161.     RTS=""
  162.     # Fragmentation threshold : off, 1000
  163.     FRAG=""
  164.     # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
  165.     IWCONFIG=""
  166.     # iwspy parameters : + 01:23:45:67:89:AB
  167.     IWSPY=""
  168.     # iwpriv parameters : set_port 2, set_histo 50 60
  169.     IWPRIV=""
  170.     ;;
  171. esac
  172.