Advertisement
twebster

RTL8187L v1037

May 17th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.33 KB | None | 0 0
  1. Release Date: 2008-12-05, ver 1037
  2. RTL8187L Linux driver version 1037
  3.  
  4. --This driver supports RealTek RTL8187L Wireless LAN NIC for
  5. 2.6 kernel:
  6. Fedora Core 2/3/4/5/6/7, Debian 3.1, Mandrake 10.2/Mandriva 2006,
  7. SUSE 9.3/10.1/10.2, Gentoo 3.1, etc, Ubuntu8.04/8.10.
  8. 2.4 kernel:
  9. Redhat 9.2, etc
  10. - Support Client mode for either infrastructure or adhoc mode
  11. - Support WEP, WPAPSK and WPA2PSK connection
  12.  
  13. ======================================================================================
  14. Component
  15. ======================================================================================
  16. The driver is composed of several parts:
  17. 1. Module source code
  18. ieee80211
  19. rtl8187
  20.  
  21. 2. Script ot build the modules
  22. Makefile
  23.  
  24. 3. Script to load/unload modules
  25. wlan0up
  26. wlan0down
  27.  
  28. 4. Script and configuration for DHCP
  29. wlan0dhcp
  30. ifcfg-wlan0
  31.  
  32. 5. Supplicant source code:
  33. wpa_supplicant-0.5.5.tar.gz
  34.  
  35. 6. Example of supplicant configuration file:
  36. wpa1.conf
  37.  
  38. ======================================================================================
  39. Installation
  40. ======================================================================================
  41. <<Method 1>>
  42. Runing the scripts can finish all operations of building up modules
  43. from the source code, installing driver to the kernel and starting up the nic.
  44. 1. Build up the drivers from the source code
  45. make
  46.  
  47. 2. Install the driver to the kernel
  48. make install
  49. reboot
  50.  
  51. 3. bring up wlan if nic is not brought up by GUI, such as NetworkManager
  52. ifconfig wlan0 up
  53. Note: use ifconfig to check whether wlan0 is brought up and use iwconfig to
  54. check your wlan interface name,since it may change wlan0 to wlan1,etc.
  55.  
  56. <<Method 2>>
  57. Or only load the driver module to kernel and start up nic.
  58. 1. Build up the drivers from the source code
  59. make
  60.  
  61. 2. Load driver module to kernel and start up nic.
  62. ./wlan0up
  63.  
  64. Note: when "insmod: error inserting 'xxxx.ko': -1 File exists" comes out
  65. after run ./wlan0up, please run ./wlan0down first, then it should
  66. be ok..
  67. Note: If you see the message of "unkown symbol" during ./wlan0up, it
  68. is suggested to build driver by <<Method 1>>.
  69.  
  70. ======================================================================================
  71. Set wireless lan MIBs
  72. ======================================================================================
  73. This driver uses Wireless Extension as an interface allowing you to set
  74. Wireless LAN specific parameters.
  75.  
  76. Current driver supports "iwlist" to show the device status of nic
  77. iwlist wlan0 [parameters]
  78. where
  79. parameter explaination [parameters]
  80. ----------------------- -------------
  81. Show available chan and freq freq / channel
  82. Show and Scan BSS and IBSS scan[ning]
  83. Show supported bit-rate rate / bit[rate]
  84. Show Power Management mode power
  85.  
  86. For example:
  87. iwlist wlan0 channel
  88. iwlist wlan0 scan
  89. iwlist wlan0 rate
  90. iwlist wlan0 power
  91.  
  92. Driver also supports "iwconfig", manipulate driver private ioctls, to set
  93. MIBs.
  94.  
  95. iwconfig wlan0 [parameters] [val]
  96. where
  97. parameter explaination [parameters] [val] constraints
  98. ----------------------- ------------- ------------------
  99. Connect to AP by address ap [mac_addr]
  100. Set the essid, join (I)BSS essid [essid]
  101. Set operation mode mode {Managed|Ad-hoc}
  102. Set keys and security mode key/enc[ryption] {N|open|restricted|off}
  103.  
  104. For example:
  105. iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
  106. iwconfig wlan0 essid "ap_name"
  107. iwconfig wlan0 mode Ad-hoc
  108. iwconfig wlan0 mode essid "name" mode Ad-hoc
  109. iwconfig wlan0 key 0123456789 [2] open
  110. iwconfig wlan0 key off
  111. iwconfig wlan0 key restricted [3] 0123456789
  112.  
  113. ======================================================================================
  114. Getting IP address
  115. ======================================================================================
  116. After start up the nic, the network needs to obtain an IP address before
  117. transmit/receive data.
  118. This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS"
  119. command, or using DHCP.
  120.  
  121. If using DHCP, setting steps is as below:
  122. (1)connect to an AP via "iwconfig" settings
  123. iwconfig wlan0 essid [name] or
  124. iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
  125.  
  126. (2)run the script which run the dhclient
  127. ./wlan0dhcp
  128. or
  129. dhcpcd wlan0
  130. (Some network admins require that you use the
  131. hostname and domainname provided by the DHCP server.
  132. In that case, use
  133. dhcpcd -HD wlan0)
  134.  
  135. ======================================================================================
  136. WPAPSK/WPA2PSK
  137. ======================================================================================
  138. Wpa_supplicant helps to secure wireless connection with the protection of
  139. WPAPSK/WPA2PSK mechanism.
  140.  
  141. If the version of Wireless Extension in your system is equal or larger than 18,
  142. WEXT driver interface is recommended. Otherwise, IPW driver interface is advised.
  143.  
  144. Note: Wireless Extension is defined us "#define WIRELESS_EXT" in Kernel
  145. Note: To check the version of wireless extension, please type "iwconfig -v"
  146.  
  147. If IPW driver interface is used, We suggested to follow the steps from 1 to 6.
  148. If wpa_supplicant has been installed in your system, only steps 5 and 6 are required
  149. to be executed for WEXT driver interface.
  150.  
  151. To see detailed description for driver interface and wpa_supplicant, please type
  152. "man wpa_supplicant".
  153.  
  154. (1)Download latetest source code for wpa supplicant or use wpa_supplicant-0.5.5
  155. attached in this package. (It is suggested to use default package contained
  156. in the distribution because there should less compilation issue.)
  157.  
  158. Unpack source code of WPA supplicant:
  159.  
  160. tar -zxvf wpa_supplicant-0.5.5.tar.gz (e.g.)
  161. cd wpa_supplicant-0.5.5
  162.  
  163. (2)Create .config file:
  164.  
  165. cp defconfig .config
  166.  
  167. (3)Edit .config file, uncomment the following line if ipw driver interface
  168. will be applied:
  169.  
  170. #CONFIG_DRIVER_IPW=y.
  171.  
  172. (4)Build and install WPA supplicant:
  173.  
  174. make
  175. cp wpa_cli wpa_supplicant /usr/local/bin
  176.  
  177. If make error for lack of <include/md5.h>, install the openssl lib(two ways):
  178. 1. Install the openssl lib from corresponding installation disc:
  179. Fedora Core 2/3/4/5(openssl-0.9.71x-xx),
  180. Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
  181. Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl),
  182. Gentoo(dev-libs/openssl), etc.
  183. 2. Download the openssl open source package from www.openssl.org, build and
  184. install it.
  185.  
  186. (5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
  187. For example, the following setting in "wpa1.conf" means SSID
  188. to join is "BufAG54_Ch6" and its passphrase is "87654321".
  189.  
  190. Example 1: Configuration for WPA-PWK
  191. network={
  192. ssid="BufAG54_Ch6"
  193. proto=WPA
  194. key_mgmt=WPA-PSK
  195. pairwise=CCMP TKIP
  196. group=CCMP TKIP WEP104 WEP40
  197. psk="87654321"
  198. priority=2
  199. }
  200.  
  201. Example 2: Configuration for LEAP
  202. network={
  203. ssid="BufAG54_Ch6"
  204. key_mgmt=IEEE8021X
  205. group=WEP40 WEP104
  206. eap=LEAP
  207. identity="user1"
  208. password="1111"
  209. }
  210.  
  211. Note: 1. proto=WPA for WPA, proto=RSN for WPA2.
  212. 2. If user needs to connect an AP with WPA or WPA2 mixed mode, it is suggested
  213. to set the cipher of pairwise and group to both CCMP and TKIP unless you
  214. know exactly which cipher type AP is configured.
  215. 3. Low kernel version which is lower than 2.6.18.rc2 may have trouble with
  216. TKIP heavy traffic while SMP is configured. Please change your security
  217. cipher or update your kernel.
  218. 4. According to documentaion "wpa_supplicant.conf" provided by the package of
  219. wpa_supplicant, ap_scan is set to 2 for IBSS connection. If user is trying to
  220. associate to AP in Infrastructure mode, please unmark this line us as belowing
  221. "#ap_scan=2"
  222.  
  223. (6)Execute WPA supplicant (Assume related modules had been loaded):
  224. wpa_supplicant -D wext -c wpa1.conf -i wlan0 & (recommended)
  225. wpa_supplicant -D ipw -c wpa1.conf -i wlan0
  226.  
  227. Note: At first, user sholud check Wireless Extension by typing "iwconfig -v"
  228. on the comment line. If the version of Wireless Extension is equal or
  229. larger than 18, the option of "-D wext" is suggested. If the version
  230. of Wireless extension is less than 18, the option of "-D ipw" is
  231. suggested.
  232.  
  233. But before you use "wext" or "ipw" command, you sholud check which drivers
  234. wpa_supplicant can support by typing command "wpa_supplicant". after typing the
  235. comment line, you can see some infomations about wpa_supplicant are listed,
  236. example:
  237. ---------------------------------------------------------------------------
  238. usage:
  239. XXXXXXXXX
  240. drivers:
  241. wext = Linux wireless extensions (generic)
  242. atmel = ATMEL AT76C5XXx (USB, PCMCIA)
  243. wired = wpa_supplicant wired Ethernet driver
  244. options:
  245. XXXXXXXXX
  246. example:
  247. XXXXXXXXX
  248. ---------------------------------------------------------------------------
  249. The driver interface wpa_supplicant can support are listed in "drivers",
  250. if "ipw" or "wext" is not listed in it, you can only use the the other interface.
  251. If the interface you want to use is not supported by wpa_supplicant. you can
  252. follow steps (1)-(6), And in step (3) you must let:
  253.  
  254. CONFIG_DRIVER_IPW=y.
  255. or
  256. CONFIG_DRIVER_WEXT=y.
  257. or both
  258. CONFIG_DRIVER_IPW=y.
  259. CONFIG_DRIVER_WEXT=y.
  260.  
  261. ======================================================================================
  262. GPIO methord for Radio On/Off
  263. ======================================================================================
  264. 1. The Change For Deliverring Power State:
  265.  
  266. Now we add the RadioPower.sh script in the driver root path.
  267. When you run ./wlan0up or make install, this script will be copied
  268. to /etc/acpi/events. And the driver can deliver the power
  269. state "RFON" or "RFOFF" into /etc/acpi/events/RadioPower.sh from driver.
  270. So you can change this script based on the power state RFON or RFOFF.
  271.  
  272. 2. For Example:
  273.  
  274. Now the RadioPower.sh's content is:
  275. if[ "$1" = ""RFON ]; then
  276. echo "===================>Now Polling Method Turn RF ON!" > /etc/acpi/events/RadioPowerTest
  277. else
  278. echo "===================>Now Polling Method Turn RF OFF!" > /etc/acpi/events/RadioPowerTest
  279. fi
  280.  
  281. So when you turn on RF using Polling Method, you can see "===================>>Now Polling Method Turn RF ON!"
  282. using command: cat /etc/acpi/events/RadioPowerTest.
  283.  
  284. And when you turn off RF using Polling Method, you can see "===================>>Now Polling Method Turn RF OFF!"
  285. using command: cat /etc/acpi/events/RadioPowerTest.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement