Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Tuesday, May 29th, 2007 at 7:46:06am UTC 

  1. *****************************************************************
  2.  
  3.     RT73 a/b/g STA driver interface with WPA Supplicant
  4.  
  5.                       Ralink Tech Corp.
  6.  
  7. *****************************************************************
  8.  
  9.  
  10.  
  11. Q0. Contents:
  12.  
  13. -----------------------
  14.  
  15. defconfig
  16.  
  17. driver_ralink.c
  18.  
  19. driver_ralink.h
  20.  
  21. drivers.c
  22.  
  23. Makefile
  24.  
  25. README
  26.  
  27. wpa_supplicant_example.conf
  28.  
  29.  
  30.  
  31.  
  32.  
  33. Q1. How to compile
  34.  
  35. -----------------------
  36.  
  37. The driver interface was developed on wpa_supplicant v.0.4.7.
  38.  
  39. You can install the WPA Supplicant Free Edition development from website.
  40.  
  41.  
  42.  
  43.         http://hostap.epitest.fi/wpa_supplicant/
  44.  
  45.        
  46.  
  47. After download the package then go to wpa_supplicant directory
  48.  
  49. Follow the steps..
  50.  
  51.  
  52.  
  53. 1.) Copy file "driver_ralink.c" and "driver_ralink.h" we provide to wpa_supplicant directory.
  54.  
  55. 2.) Set driver_ralink configuration as y in the "defconfig" or update to the "defconfig" we provide::
  56.  
  57.  
  58.  
  59. # Driver interface for Ralink rt73 driver
  60.  
  61. CONFIG_DRIVER_RALINK=y
  62.  
  63.    
  64.  
  65. 3.) Add wpa_driver_ralink_ops() into wpa_supplicant_drivers() in file "drivers.c"
  66.  
  67.     or update to the file "drivers.c" we provide::
  68.  
  69.    
  70.  
  71. #ifdef CONFIG_DRIVER_RALINK
  72.  
  73. extern struct wpa_driver_ops wpa_driver_ralink_ops; /* driver_ralink.c */
  74.  
  75. #endif /* CONFIG_DRIVER_RALINK */
  76.  
  77.     :
  78.  
  79.     :
  80.  
  81. struct wpa_driver_ops *wpa_supplicant_drivers[] =
  82.  
  83. {
  84.  
  85. #ifdef CONFIG_DRIVER_RALINK
  86.  
  87.         &wpa_driver_ralink_ops,
  88.  
  89. #endif /* CONFIG_DRIVER_RALINK */ 
  90.  
  91. }
  92.  
  93.    
  94.  
  95. 4.) Edit the "Makefile" or update to the "Makefile" we provide::
  96.  
  97.  
  98.  
  99. ifdef CONFIG_DRIVER_RALINK
  100.  
  101. CFLAGS += -DCONFIG_DRIVER_RALINK
  102.  
  103. OBJS_d += driver_ralink.o
  104.  
  105. endif
  106.  
  107.  
  108.  
  109. 5.) type $cp defconfig .config
  110.  
  111. 6.) Compile the source code using 'make' command.
  112.  
  113.    
  114.  
  115.  
  116.  
  117. Q2. How to start wpa_supplicant
  118.  
  119. --------------------------------
  120.  
  121. 1.) First start rt73 driver.
  122.  
  123.  
  124.  
  125. 2.) Edit/Create a configuration file of wpa_supplicant.
  126.  
  127.    -a)  Set your work directory of wpa_supplicant for sockets
  128.  
  129.         ctrl_interface = YOUR_WORK_PATH
  130.  
  131.        
  132.  
  133.    -b)  Set YOUR_OPENSC_PATH if need be. (e.g. generate certificates)
  134.  
  135.         opensc_engine_path =/YOUR_OPENSC_PATH/engine_opensc.so
  136.  
  137.         pkcs11_engine_path =/YOUR_OPENSC_PATH/engine_pkcs11.so
  138.  
  139.         pkcs11_module_path =/YOUR_OPENSC_PATH/opensc-pkcs11.so
  140.  
  141.  
  142.  
  143.    -c)  Set network configuration. (e.g. WPA/EAP-TTLS)
  144.  
  145.    
  146.  
  147.     *** refer to wpa_supplicant.conf in details or related documents ***
  148.  
  149.    
  150.  
  151. 3.) Manually start wpa_supplicant,
  152.  
  153.     type $./wpa_supplicant -c your_config_file -i rausb0 -D ralink
  154.  
  155.  
  156.  
  157.     turn on debug mode,
  158.  
  159.     type $./wpa_supplicant -c your_config_file -i rausb0 -D ralink -d
  160.  
  161.  
  162.  
  163.    

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right