wireless.opts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. case "$ADDRESS" in
  40. # NOTE : Remove the following four lines to activate the samples below ...
  41. # --------- START SECTION TO REMOVE -----------
  42. *,*,*,*)
  43. ;;
  44. # ---------- END SECTION TO REMOVE ------------
  45. # Here is an example of scheme matching
  46. # Activate with "cardctl scheme essidany"
  47. # Pick up any Access Point, should work on most 802.11 cards
  48. essidany,*,*,*)
  49. INFO="Any ESSID"
  50. ESSID="any"
  51. ;;
  52. # Here are a few examples with a few Wireless LANs supported...
  53. # The matching is done on the first 3 bytes of the MAC address
  54. # Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
  55. # Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
  56. *,*,*,00:60:1D:*|*,*,*,00:02:2D:*)
  57. INFO="Wavelan IEEE example (Lucent default settings)"
  58. ESSID="Wavelan Network"
  59. MODE="Managed"
  60. # RATE="auto"
  61. KEY="s:secu1"
  62. # To set all four keys, use :
  63. # KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
  64. # For the RG 1000 Residential Gateway: The ESSID is the identifier on
  65. # the unit, and the default key is the last 5 digits of the same.
  66. # ESSID="084d70"
  67. # KEY="s:84d70"
  68. ;;
  69. # Cisco/Aironet 4800/340
  70. # Note : MPL driver only (airo/airo_cs), version 1.3 or later
  71. *,*,*,00:40:96:*)
  72. INFO="Cisco/Aironet example (Cisco default settings)"
  73. ESSID="any"
  74. # To set all four ESSID, use iwconfig v21 and the same trick as above
  75. MODE="Managed"
  76. # RATE="11M auto"
  77. # KEY="off"
  78. ;;
  79. # Samsung MagicLan (+ some other PrismII cards)
  80. # Note : Samsung binary library driver, version 1.20 or later
  81. *,*,*,00:00:F0:*|*,*,*,00:02:78:*)
  82. INFO="Samsung MagicLan example (Samsung default settings)"
  83. ESSID="any"
  84. MODE="Managed"
  85. CHANNEL="4"
  86. RATE="auto"
  87. # KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
  88. # IWCONFIG="power on"
  89. ;;
  90. # Raytheon Raylink/WebGear Aviator2.4
  91. # Note : doesn't work yet, please use for debugging only :-(
  92. *,*,*,00:00:8F:*|*,*,*,00:00:F1:*)
  93. INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
  94. ESSID="ADHOC_ESSID"
  95. MODE="Ad-Hoc"
  96. RATE="auto"
  97. IWPRIV="set_framing 1"
  98. ;;
  99. # Old Lucent Wavelan
  100. *,*,*,08:00:0E:*)
  101. INFO="Wavelan example (Lucent default settings)"
  102. NWID="0100"
  103. MODE="Ad-Hoc"
  104. FREQ="2.425G"
  105. KEY="off"
  106. ;;
  107. # Netwave (Xircom Netwave/Netwave Airsurfer)
  108. *,*,*,00:80:C7:*)
  109. INFO="Netwave example (Netwave default settings)"
  110. NWID="100"
  111. KEY="00"
  112. ;;
  113. # Proxim RangeLan2/Symphony
  114. *,*,*,00:20:a6:*)
  115. INFO="Proxim RangeLan2/Symphony example"
  116. NWID="0"
  117. MODE="Master"
  118. CHANNEL="15"
  119. IWPRIV="setsubchan 1"
  120. ;;
  121. # No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
  122. *,*,*,XX:XX:XX:*)
  123. INFO="NWN Swallow example"
  124. ESSID="session"
  125. KEY="0000-0000-00 open"
  126. ;;
  127. # Symbol Spectrum24 setting (what is the MAC address ???)
  128. *,*,*,XX:XX:XX:*)
  129. INFO="Symbol Spectrum24 example"
  130. ESSID="Essid string"
  131. ;;
  132. # Generic example (decribe all possible settings)
  133. *,*,*,*)
  134. INFO="Fill with your own settings..."
  135. # ESSID (extended network name) : My Network, any
  136. ESSID=""
  137. # NWID/Domain (cell identifier) : 89AB, 100, off
  138. NWID=""
  139. # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
  140. MODE=""
  141. # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
  142. FREQ=""
  143. CHANNEL=""
  144. # Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
  145. SENS=""
  146. # Bit rate : auto, 1M, 11M
  147. RATE=""
  148. # Encryption key : 4567-89AB-CD, s:password
  149. KEY=""
  150. # RTS threshold : off, 500
  151. RTS=""
  152. # Fragmentation threshold : off, 1000
  153. FRAG=""
  154. # Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
  155. IWCONFIG=""
  156. # iwspy parameters : + 01:23:45:67:89:AB
  157. IWSPY=""
  158. # iwpriv parameters : set_port 2, set_histo 50 60
  159. IWPRIV=""
  160. ;;
  161. esac