Advertisement
Guest User

Untitled

a guest
Dec 15th, 2011
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.91 KB | None | 0 0
  1. * README
  2. *
  3. * Ralink Tech Inc.
  4. *
  5. * http://www.ralinktech.com
  6. *
  7.  
  8. =======================================================================
  9. ModelName:
  10. ===========
  11. RT2870 Wireless Lan Linux Driver
  12.  
  13.  
  14. =======================================================================
  15. Driver lName:
  16. ===========
  17. rt2870.o/rt2870.ko
  18.  
  19.  
  20. =======================================================================
  21. Supporting Kernel:
  22. ===================
  23. linux kernel 2.4 and 2.6 series.
  24. Tested in Redhat 7.3 or later.
  25.  
  26.  
  27. =======================================================================
  28. Ralink Hardware:
  29. ===================
  30. Ralink 802.11n Wireless LAN Card.
  31.  
  32.  
  33. =======================================================================
  34. Description:
  35. =============
  36. This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.
  37.  
  38.  
  39. =======================================================================
  40. Contents:
  41. =============
  42. Makefile : Makefile
  43. *.c : c files
  44. *.h : header files
  45.  
  46.  
  47. =======================================================================
  48. Features:
  49. ==========
  50. This driver implements basic IEEE802.11. Infrastructure and adhoc mode with
  51. open or shared or WPA-PSK or WPA2-PSK authentication method.
  52. NONE, WEP, TKIP and AES encryption.
  53.  
  54.  
  55. =======================================================================
  56. Build Instructions:
  57. ====================
  58.  
  59. 1> $tar -xvzf RT2870_Linux_STA_x.x.x.x.tgz
  60. go to "./RT2870_Linux_STA_x.x.x.x" directory.
  61.  
  62. 2> In Makefile
  63. set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
  64. define the linux kernel source include file path LINUX_SRC
  65. modify to meet your need.
  66.  
  67. 3> In os/linux/config.mk
  68. define the GCC and LD of the target machine
  69. define the compiler flags CFLAGS
  70. modify to meet your need.
  71. ** Build for being controlled by NetworkManager or wpa_supplicant wext functions
  72. Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
  73. => #>cd wpa_supplicant-x.x
  74. => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
  75. ** Build for being controlled by WpaSupplicant with Ralink Driver
  76. Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
  77. => #>cd wpa_supplicant-0.5.7
  78. => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
  79.  
  80. 4> $make
  81. # compile driver source code
  82. # To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
  83. => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
  84.  
  85. 5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
  86.  
  87. 6> load driver, go to "os/linux/" directory.
  88. #[kernel 2.4]
  89. # $/sbin/insmod rt2870sta.o
  90. # $/sbin/ifconfig ra0 inet YOUR_IP up
  91.  
  92. #[kernel 2.6]
  93. # $/sbin/insmod rt2870sta.ko
  94. # $/sbin/ifconfig ra0 inet YOUR_IP up
  95.  
  96. 7> unload driver
  97. $/sbin/ifconfig ra0 down
  98. $/sbin/rmmod rt2870sta
  99.  
  100. =======================================================================
  101. CONFIGURATION:
  102. ====================
  103. RT2870 driver can be configured via following interfaces,
  104. i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file
  105.  
  106. i) iwconfig comes with kernel.
  107. ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
  108. iii)modify configuration file "RT2870STA.dat" in /etc/Wireless/RT2870STA/RT2870STA.dat.
  109.  
  110. Configuration File : RT2870STA.dat
  111. ---------------------------------------
  112. # Copy this file to /etc/Wireless/RT2870STA/RT2870STA.dat
  113. # This file is a binary file and will be read on loading rt.o module.
  114. #
  115. # Use "vi RT2870STA.dat" to modify settings according to your need.
  116. #
  117. # 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
  118. # 2.) set Channel to "0" for auto-select on Infrastructure mode
  119. # 3.) set SSID for connecting to your Accss-point.
  120. # 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
  121. # 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
  122. # for more information refer to the Readme file.
  123. #
  124. #The word of "Default" must not be removed
  125. Default
  126. CountryRegion=5
  127. CountryRegionABand=7
  128. CountryCode=
  129. SSID=Dennis2860AP
  130. NetworkType=Infra
  131. WirelessMode=9
  132. Channel=0
  133. BeaconPeriod=100
  134. TxPower=100
  135. BGProtection=0
  136. TxPreamble=0
  137. RTSThreshold=2347
  138. FragThreshold=2346
  139. TxBurst=1
  140. WmmCapable=0
  141. AckPolicy=0;0;0;0
  142. AuthMode=OPEN
  143. EncrypType=NONE
  144. WPAPSK=
  145. DefaultKeyID=1
  146. Key1Type=0
  147. Key1Str=
  148. Key2Type=0
  149. Key2Str=
  150. Key3Type=0
  151. Key3Str=
  152. Key4Type=0
  153. Key4Str=
  154. PSMode=CAM
  155. FastRoaming=0
  156. RoamThreshold=70
  157. HT_RDG=1
  158. HT_EXTCHA=0
  159. HT_OpMode=1
  160. HT_MpduDensity=4
  161. HT_BW=1
  162. HT_AutoBA=1
  163. HT_BADecline=0
  164. HT_AMSDU=0
  165. HT_BAWinSize=64
  166. HT_GI=1
  167. HT_MCS=33
  168. HT_MIMOPSMode=3
  169. IEEE80211H=0
  170. TGnWifiTest=0
  171. WirelessEvent=0
  172. CarrierDetect=0
  173.  
  174. -----------------------------------------------
  175. *NOTE:
  176. WMM parameters
  177. WmmCapable Set it as 1 to turn on WMM Qos support
  178. AckPolicy1~4 Ack policy which support normal Ack or no Ack
  179. (AC_BK, AC_BE, AC_VI, AC_VO)
  180.  
  181. All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡Š¡Š,
  182. please store all parameter to RT2870STA.dat, and restart driver.
  183.  
  184. -----------------------------------------------
  185. syntax is 'Param'='Value' and describes below.
  186.  
  187. @> CountryRegion=value
  188. value
  189. 0: use 1 ~ 11 Channel
  190. 1: use 1 ~ 13 Channel
  191. 2: use 10 ~ 11 Channel
  192. 3: use 10 ~ 13 Channel
  193. 4: use 14 Channel
  194. 5: use 1 ~ 14 Channel
  195. 6: use 3 ~ 9 Channel
  196. 7: use 5 ~ 13 Channel
  197. 31: use 1 ~ 14 Channel (ch1-11:active scan, ch12-14 passive scan)
  198.  
  199. @> CountryRegionABand=value
  200. value
  201. 0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
  202. 1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
  203. 2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
  204. 3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
  205. 4: use 149, 153, 157, 161, 165 Channel
  206. 5: use 149, 153, 157, 161 Channel
  207. 6: use 36, 40, 44, 48 Channel
  208. 7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
  209. 8: use 52, 56, 60, 64 Channel
  210. 9: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 Channel
  211. 10: use 36, 40, 44, 48, 149, 153, 157, 161, 165 Channel
  212. 11: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 Channel
  213.  
  214. @> CountryCode=value
  215. value
  216. AG, AR, AW, AU, AT, BS, BB, BM, BR, BE, BG, CA, KY, CL, CN, CO, CR, CY, CZ, DK, DO, EC, SV, FI, FR, DE,
  217. GR, GU, GT, HT, HN, HK, HU, IS, IN, ID, IE, IL, IT, JP, JO, LV, LI, LT, LU, MY, MT, MA, MX, NL, NZ, NO,
  218. PE, PT, PL, RO, RU, SA, CS, SG, SK, SI, ZA, KR, ES, SE, CH, TW, TR, GB, UA, AE, US, VE
  219. "" => using default setting: 2.4 G - ch 1~11; 5G - ch 52~64, 100~140, 149~165
  220.  
  221. @> SSID=value
  222. value
  223. 0~z, 1~32 ascii characters.
  224.  
  225. @> WirelessMode=value
  226. value
  227. 0: legacy 11b/g mixed
  228. 1: legacy 11B only
  229. 2: legacy 11A only //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
  230. 3: legacy 11a/b/g mixed //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
  231. 4: legacy 11G only
  232. 5: 11ABGN mixed
  233. 6: 11N only
  234. 7: 11GN mixed
  235. 8: 11AN mixed
  236. 9: 11BGN mixed
  237. 10: 11AGN mixed
  238.  
  239. @> Channel=value
  240. value
  241. depends on CountryRegion or CountryRegionABand
  242.  
  243. @> BGProtection=value
  244. value
  245. 0: Auto
  246. 1: Always on
  247. 2: Always off
  248.  
  249. @> TxPreamble=value
  250. value
  251. 0:Preamble Long
  252. 1:Preamble Short
  253. 2:Auto
  254.  
  255. @> RTSThreshold=value
  256. value
  257. 1~2347
  258.  
  259. @> FragThreshold=value
  260. value
  261. 256~2346
  262.  
  263. @> TxBurst=value
  264. value
  265. 0: Disable
  266. 1: Enable
  267.  
  268. @> NetworkType=value
  269. value
  270. Infra: infrastructure mode
  271. Adhoc: adhoc mode
  272.  
  273. @> AuthMode=value
  274. value
  275. OPEN For open system
  276. SHARED For shared key system
  277. WEPAUTO Auto switch between OPEN and SHARED
  278. WPAPSK For WPA pre-shared key (Infra)
  279. WPA2PSK For WPA2 pre-shared key (Infra)
  280. WPANONE For WPA pre-shared key (Adhoc)
  281. WPA Use WPA-Supplicant
  282. WPA2 Use WPA-Supplicant
  283.  
  284. @> EncrypType=value
  285. value
  286. NONE For AuthMode=OPEN
  287. WEP For AuthMode=OPEN or AuthMode=SHARED
  288. TKIP For AuthMode=WPAPSK or WPA2PSK
  289. AES For AuthMode=WPAPSK or WPA2PSK
  290.  
  291. @> DefaultKeyID=value
  292. value
  293. 1~4
  294.  
  295. @> Key1=value
  296. Key2=value
  297. Key3=value
  298. Key4=value
  299. value
  300. 10 or 26 hexadecimal characters eg: 012345678
  301. 5 or 13 ascii characters eg: passd
  302. (usage : "iwpriv" only)
  303.  
  304. @> Key1Type=vaule
  305. Key2Type=value
  306. Key3Type=vaule
  307. Key4Type=vaule
  308. value
  309. 0 hexadecimal type
  310. 1 assic type
  311. (usage : reading profile only)
  312.  
  313. @> Key1Str=value
  314. Key2Str=value
  315. Key3Str=vaule
  316. Key4Str=vaule
  317. value
  318. 10 or 26 characters (key type=0)
  319. 5 or 13 characters (key type=1)
  320. (usage : reading profile only)
  321.  
  322. @> WPAPSK=value
  323. value
  324. 8~63 ASCII or
  325. 64 HEX characters
  326.  
  327. @> WmmCapable=value
  328. value
  329. 0: Disable WMM
  330. 1: Enable WMM
  331.  
  332. @> PSMode=value
  333. value
  334. CAM Constantly Awake Mode
  335. Max_PSP Max Power Savings
  336. Fast_PSP Power Save Mode
  337.  
  338. @> FastRoaming=value
  339. value
  340. 0 Disabled
  341. 1 Enabled
  342.  
  343. @> RoamThreshold=value
  344. value
  345. Positive Interger(dBm)
  346.  
  347. @> HT_RDG=value
  348. value
  349. 0 Disabled
  350. 1 Enabled
  351.  
  352. @> HT_EXTCHA=value (Extended Channel Switch Announcement)
  353. value
  354. 0 Below
  355. 1 Above
  356.  
  357. @> HT_OpMode=value
  358. value
  359. 0 HT mixed format
  360. 1 HT greenfield format
  361.  
  362. @> HT_MpduDensity=value
  363. value (based on 802.11n D2.0)
  364. 0: no restriction
  365. 1: 1/4 £gs
  366. 2: 1/2 £gs
  367. 3: 1 £gs
  368. 4: 2 £gs
  369. 5: 4 £gs
  370. 6: 8 £gs
  371. 7: 16 £gs
  372.  
  373. @> HT_BW=value
  374. value
  375. 0 20MHz
  376. 1 40MHz
  377.  
  378. @> HT_AutoBA=value
  379. value
  380. 0 Disabled
  381. 1 Enabled
  382.  
  383. @> HT_BADecline
  384. value
  385. 0 Disabled
  386. 1 Enabled <Reject BA request from AP>
  387.  
  388. @> HT_AMSDU=value
  389. value
  390. 0 Disabled
  391. 1 Enabled
  392.  
  393. @> HT_BAWinSize=value
  394. value
  395. 1 ~ 64
  396.  
  397. @> HT_GI=value
  398. value
  399. 0 long GI
  400. 1 short GI
  401.  
  402. @> HT_MCS=value
  403. value
  404. 0 ~ 15
  405. 33: auto
  406.  
  407. @> HT_MIMOPSMode=value
  408. value (based on 802.11n D2.0)
  409. 0 Static SM Power Save Mode
  410. 1 Dynamic SM Power Save Mode
  411. 2 Reserved
  412. 3 SM enabled
  413. (not fully support yet)
  414.  
  415. @> IEEE80211H=value
  416. value
  417. 0 Disabled
  418. 1 Enabled
  419.  
  420. @> TGnWifiTest=value
  421. value
  422. 0 Disabled
  423. 1 Enabled
  424.  
  425. @> WirelessEvent=value
  426. value
  427. 0 Disabled
  428. 1 Enabled <send custom wireless event>
  429.  
  430. @> CarrierDetect=value
  431. value
  432. 0 Disabled
  433. 1 Enabled
  434.  
  435. MORE INFORMATION
  436. =================================================================================
  437. If you want for rt2870 driver to auto-load at boot time:
  438. A) choose ra0 for first RT2870 WLAN card, ra1 for second RT2870 WLAN card, etc.
  439.  
  440. B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,
  441. edit( or add the line) in /etc/modules.conf:
  442. alias ra0 rt2870sta
  443.  
  444. C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0
  445. DEVICE='ra0'
  446. ONBOOT='yes'
  447.  
  448.  
  449. NOTE:
  450. if you use dhcp, add this line too .
  451. BOOTPROTO='dhcp'
  452.  
  453. *D) To ease the Default Gateway setting,
  454. add the line
  455. GATEWAY=x.x.x.x
  456. in /etc/sysconfig/network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement