Advertisement
Guest User

Untitled

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