Advertisement
Guest User

Untitled

a guest
Jan 6th, 2013
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.75 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 DPB_RT2870_Linux_STA_x.x.x.x.tgz
  60. go to "./DPB_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. EthConvertMode=
  170. EthCloneMac=
  171. IEEE80211H=0
  172. TGnWifiTest=0
  173. WirelessEvent=0
  174. MeshId=MESH
  175. MeshAutoLink=1
  176. MeshAuthMode=OPEN
  177. MeshEncrypType=NONE
  178. MeshWPAKEY=
  179. MeshDefaultkey=1
  180. MeshWEPKEY=
  181. CarrierDetect=0
  182.  
  183. -----------------------------------------------
  184. *NOTE:
  185. WMM parameters
  186. WmmCapable Set it as 1 to turn on WMM Qos support
  187. AckPolicy1~4 Ack policy which support normal Ack or no Ack
  188. (AC_BK, AC_BE, AC_VI, AC_VO)
  189.  
  190. All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡Š¡Š,
  191. please store all parameter to RT2870STA.dat, and restart driver.
  192.  
  193. -----------------------------------------------
  194. syntax is 'Param'='Value' and describes below.
  195.  
  196. @> CountryRegion=value
  197. value
  198. 0: use 1 ~ 11 Channel
  199. 1: use 1 ~ 13 Channel
  200. 2: use 10 ~ 11 Channel
  201. 3: use 10 ~ 13 Channel
  202. 4: use 14 Channel
  203. 5: use 1 ~ 14 Channel
  204. 6: use 3 ~ 9 Channel
  205. 7: use 5 ~ 13 Channel
  206. 31: use 1 ~ 14 Channel (ch1-11:active scan, ch12-14 passive scan)
  207.  
  208. @> CountryRegionABand=value
  209. value
  210. 0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
  211. 1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
  212. 2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
  213. 3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
  214. 4: use 149, 153, 157, 161, 165 Channel
  215. 5: use 149, 153, 157, 161 Channel
  216. 6: use 36, 40, 44, 48 Channel
  217. 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
  218. 8: use 52, 56, 60, 64 Channel
  219. 9: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 Channel
  220. 10: use 36, 40, 44, 48, 149, 153, 157, 161, 165 Channel
  221. 11: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 Channel
  222.  
  223. @> CountryCode=value
  224. value
  225. 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,
  226. 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,
  227. PE, PT, PL, RO, RU, SA, CS, SG, SK, SI, ZA, KR, ES, SE, CH, TW, TR, GB, UA, AE, US, VE
  228. "" => using default setting: 2.4 G - ch 1~11; 5G - ch 52~64, 100~140, 149~165
  229.  
  230. @> SSID=value
  231. value
  232. 0~z, 1~32 ascii characters.
  233.  
  234. @> WirelessMode=value
  235. value
  236. 0: legacy 11b/g mixed
  237. 1: legacy 11B only
  238. 2: legacy 11A only //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
  239. 3: legacy 11a/b/g mixed //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
  240. 4: legacy 11G only
  241. 5: 11ABGN mixed
  242. 6: 11N only
  243. 7: 11GN mixed
  244. 8: 11AN mixed
  245. 9: 11BGN mixed
  246. 10: 11AGN mixed
  247.  
  248. @> Channel=value
  249. value
  250. depends on CountryRegion or CountryRegionABand
  251.  
  252. @> BGProtection=value
  253. value
  254. 0: Auto
  255. 1: Always on
  256. 2: Always off
  257.  
  258. @> TxPreamble=value
  259. value
  260. 0:Preamble Long
  261. 1:Preamble Short
  262. 2:Auto
  263.  
  264. @> RTSThreshold=value
  265. value
  266. 1~2347
  267.  
  268. @> FragThreshold=value
  269. value
  270. 256~2346
  271.  
  272. @> TxBurst=value
  273. value
  274. 0: Disable
  275. 1: Enable
  276.  
  277. @> NetworkType=value
  278. value
  279. Infra: infrastructure mode
  280. Adhoc: adhoc mode
  281.  
  282. @> AuthMode=value
  283. value
  284. OPEN For open system
  285. SHARED For shared key system
  286. WEPAUTO Auto switch between OPEN and SHARED
  287. WPAPSK For WPA pre-shared key (Infra)
  288. WPA2PSK For WPA2 pre-shared key (Infra)
  289. WPANONE For WPA pre-shared key (Adhoc)
  290. WPA Use WPA-Supplicant
  291. WPA2 Use WPA-Supplicant
  292.  
  293. @> EncrypType=value
  294. value
  295. NONE For AuthMode=OPEN
  296. WEP For AuthMode=OPEN or AuthMode=SHARED
  297. TKIP For AuthMode=WPAPSK or WPA2PSK
  298. AES For AuthMode=WPAPSK or WPA2PSK
  299.  
  300. @> DefaultKeyID=value
  301. value
  302. 1~4
  303.  
  304. @> Key1=value
  305. Key2=value
  306. Key3=value
  307. Key4=value
  308. value
  309. 10 or 26 hexadecimal characters eg: 012345678
  310. 5 or 13 ascii characters eg: passd
  311. (usage : "iwpriv" only)
  312.  
  313. @> Key1Type=vaule
  314. Key2Type=value
  315. Key3Type=vaule
  316. Key4Type=vaule
  317. value
  318. 0 hexadecimal type
  319. 1 assic type
  320. (usage : reading profile only)
  321.  
  322. @> Key1Str=value
  323. Key2Str=value
  324. Key3Str=vaule
  325. Key4Str=vaule
  326. value
  327. 10 or 26 characters (key type=0)
  328. 5 or 13 characters (key type=1)
  329. (usage : reading profile only)
  330.  
  331. @> WPAPSK=value
  332. value
  333. 8~63 ASCII or
  334. 64 HEX characters
  335.  
  336. @> WmmCapable=value
  337. value
  338. 0: Disable WMM
  339. 1: Enable WMM
  340.  
  341. @> PSMode=value
  342. value
  343. CAM Constantly Awake Mode
  344. Max_PSP Max Power Savings
  345. Fast_PSP Power Save Mode
  346.  
  347. @> FastRoaming=value
  348. value
  349. 0 Disabled
  350. 1 Enabled
  351.  
  352. @> RoamThreshold=value
  353. value
  354. Positive Interger(dBm)
  355.  
  356. @> HT_RDG=value
  357. value
  358. 0 Disabled
  359. 1 Enabled
  360.  
  361. @> HT_EXTCHA=value (Extended Channel Switch Announcement)
  362. value
  363. 0 Below
  364. 1 Above
  365.  
  366. @> HT_OpMode=value
  367. value
  368. 0 HT mixed format
  369. 1 HT greenfield format
  370.  
  371. @> HT_MpduDensity=value
  372. value (based on 802.11n D2.0)
  373. 0: no restriction
  374. 1: 1/4 £gs
  375. 2: 1/2 £gs
  376. 3: 1 £gs
  377. 4: 2 £gs
  378. 5: 4 £gs
  379. 6: 8 £gs
  380. 7: 16 £gs
  381.  
  382. @> HT_BW=value
  383. value
  384. 0 20MHz
  385. 1 40MHz
  386.  
  387. @> HT_AutoBA=value
  388. value
  389. 0 Disabled
  390. 1 Enabled
  391.  
  392. @> HT_BADecline
  393. value
  394. 0 Disabled
  395. 1 Enabled <Reject BA request from AP>
  396.  
  397. @> HT_AMSDU=value
  398. value
  399. 0 Disabled
  400. 1 Enabled
  401.  
  402. @> HT_BAWinSize=value
  403. value
  404. 1 ~ 64
  405.  
  406. @> HT_GI=value
  407. value
  408. 0 long GI
  409. 1 short GI
  410.  
  411. @> HT_MCS=value
  412. value
  413. 0 ~ 15
  414. 33: auto
  415.  
  416. @> HT_MIMOPSMode=value
  417. value (based on 802.11n D2.0)
  418. 0 Static SM Power Save Mode
  419. 1 Dynamic SM Power Save Mode
  420. 2 Reserved
  421. 3 SM enabled
  422. (not fully support yet)
  423.  
  424. @> EthConvertMode=value
  425. value
  426. dongle
  427. clone
  428. hybrid
  429.  
  430. @> EthCloneMac=value
  431. value
  432. xx:xx:xx:xx:xx:xx
  433.  
  434. @> IEEE80211H=value
  435. value
  436. 0 Disabled
  437. 1 Enabled
  438.  
  439. @> TGnWifiTest=value
  440. value
  441. 0 Disabled
  442. 1 Enabled
  443.  
  444. @> WirelessEvent=value
  445. value
  446. 0 Disabled
  447. 1 Enabled <send custom wireless event>
  448.  
  449. @> MeshId=value
  450. value
  451. Length 1~32 ascii characters
  452.  
  453. @> MeshAutoLink=value
  454. value
  455. 0 Disabled
  456. 1 Enabled
  457.  
  458. @> MeshAuthMode=value
  459. value
  460. OPEN For open system
  461. WPANONE For WPA pre-shared key (Adhoc)
  462.  
  463. @> MeshEncrypType=value
  464. value
  465. NONE For MeshAuthMode=OPEN
  466. WEP For MeshAuthMode=OPEN
  467. TKIP For MeshAuthMode=WPANONE
  468. AES For MeshAuthMode=WPANONE
  469.  
  470. @> MeshWPAKEY=value
  471. value
  472. 8~63 ASCII or
  473. 64 HEX characters
  474.  
  475. @> MeshDefaultkey=value
  476. value
  477. 1~4
  478.  
  479. @> MeshWEPKEY=value
  480. value
  481. 10 or 26 characters
  482. 5 or 13 characters
  483.  
  484. @> CarrierDetect=value
  485. value
  486. 0 Disabled
  487. 1 Enabled
  488.  
  489. MORE INFORMATION
  490. =================================================================================
  491. If you want for rt2870 driver to auto-load at boot time:
  492. A) choose ra0 for first RT2870 WLAN card, ra1 for second RT2870 WLAN card, etc.
  493.  
  494. B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,
  495. edit( or add the line) in /etc/modules.conf:
  496. alias ra0 rt2870sta
  497.  
  498. C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0
  499. DEVICE='ra0'
  500. ONBOOT='yes'
  501.  
  502.  
  503. NOTE:
  504. if you use dhcp, add this line too .
  505. BOOTPROTO='dhcp'
  506.  
  507. *D) To ease the Default Gateway setting,
  508. add the line
  509. GATEWAY=x.x.x.x
  510. in /etc/sysconfig/network
  511.  
  512. =======================================================================
  513. Dongle/Clone Features:
  514. ======================
  515. A) Dongle mode:
  516. Provides a 1-to-N MAC address mapping mechanism such that more than one PC behind the STA
  517. can transparently connect to the AP.
  518.  
  519. B) Clone mode:
  520. Provides a 1-to-1 MAC address mapping mechanism.
  521. STA can use own MAC as SA MAC or
  522. use user desired MAC as SA MAC or
  523. use source MAC of first packet coming from wired device as SA MAC.
  524. NOTE: In this mode, only the PC who own the specified MAC can connect to the AP.
  525.  
  526.  
  527. C) Hybrid mode(Dongle+Clone):
  528. Provides a 1-to-N MAC address mapping mechanism such that more than one PC behind the STA
  529. can transparently connect to the AP.
  530. STA can use own MAC as SA MAC or
  531. use user desired MAC as SA MAC or
  532. use source MAC of first packet coming from wired device as SA MAC.
  533.  
  534. D) Please refer to "Config STA to link as dongle mode..." in iwpriv_usage.txt for releated commands.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement