HOW TO NDISWRAPPER + WPA_SUPPLICANT on a WMP54G & WPCI810G both use Broadcom drivers
This how-to can be used for other drivers b/c the only change you'll have to make to my how-to is the *.inf and *.sys files. I'm not even very specific when i talk about them, so this should work for any card supported by ndiswrapper!
Information for this howto came from these sites and from other people that helped me...thx to those people. I recommend you read these first, and use my how-to, if you get stuck....
http://ndiswrapper.sourceforge.net/m.../index.php/WPA
http://ndiswrapper.sourceforge.net/m...p/Installation
CHECK THE LINK BELOW TO SEE IF YOUR CARD IS SUPPORTED! Also use this to find the appropriate *.inf and *.sys files needed for ndiswrapper to work...
http://ndiswrapper.sourceforge.net/m...index.php/List
I made this How-TO, b/c of the multiple headaches I had getting all of this to work..
BEFORE GOING ON NOTE! I recommend you update all critical items such as the Kernel, etc, if you're able to that is.
-----------Beginning------------------
TURN OFF your router Encryption while doing this.. makes this procedure easier
The majority of this howto is in the Root Shell, so if i say "make" type that in the Root console...duh
You need:
...ndiswrapper...
http://downloads.sourceforge.net/ndi...5&big_mirror=0 UPDATED
...wireless tools...
http://pcmcia-cs.sourceforge.net/ftp...ools.28.tar.gz UPDATED
...wpa_supplicant... for WPA security... http://hostap.epitest.fi/releases/wp...t-0.5.7.tar.gz UPDATED
Save these downloads in your home folder, b/c it's easy to access thats why..
Go to your home directory by "cd /home/...../"
1. tar -zxvf ndiswrapper-1.2.tar.gz
2. cd ndiswrapper
3. make distclean
4. make
5. make install
Go to your home directory again by "cd /home/...../"
6. tar -zxvf wireless_tools.27.tar.gz
7. cd wireless tools
8. make
9. make install
10. kedit /etc/ld.so.config ...kedit is like notepad for windon't XP or you can use gedit or nano,etc.
should look like this:
/usr/local/lib/
include ld.so.conf.d/*.conf
there might be other things there thats normal, but add "/usr/local/lib/" ABOVE include ld.so.......
11. ldconfig .......which will load ld.so.conf
ldconfig will only work if you've installed wireless tools
12. ndiswrapper -i bcwml5.inf
13. ndiswrapper -l
"hardware present.." it should say something like this or you've messed something up
14. modprobe ndiswrapper
15. dmesg ... it will show ur wlan0 with some mac address
if dmesg does not show your card and a mac address
try the steps above again
wireless tools enables you to use iwconfig, and iwlist, etc
16. iwconfig ... shows current config
17. iwlist wlan0 scan ....shows available wireless routers
18. iwconfig wlan0 essid "put your AP name here" example linksys ...iwconfig wlan0 essid linksys
MAKE SURE TO BROADCAST your SSID or you won't be able to change your essid
Add any other necessary items with iwconfig
such as "iwconfig wlan0 mode Managed", but this can be done in
system setting > Network
19. dhclient wlan0 ... you should be able to use your internet after this command, if you followed my advice and disabled your encryption it should work
If you can use the internet continue on, else go back and try again
if you can use the internet..
20. ndiswrapper -m ... doing this puts "alias wlan0 ndiswrapper"
in /etc/modprobe.config
21. Goto system settings then network..
click new > wireless > ndiswrapper > configure it so it starts up at
boot and whatever else floats your boat...
22. kedit
paste this in:
################################################## #####
# NDIS Wrapper Configuration: WIRELESS WLAN0
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=dhcp #either static or dhcp
TYPE=Wireless
MODE=Managed
SSID="your AP" #Change
CHANNEL=11 #Change to your channel
USERCTL=yes
PEERDNS=no
KEY=xxxxxxxxx #Change if using Wep or delete if using WPA
RATE=Auto #Change to example: 54Mb/s or keep as auto your choice
NICK=wlan0
################################################## ##########
save in /etc/sysconfig/network-scripts/ with the filename: ifcfg-wlan0
.......Thats it for ndiswrapper, so if thats all you need stop here......
BEFORE GOING ON NOTE! I recommend you update all critical items such as the Kernel, etc, b/c what you just did will not work on a different kernel. So update! This mainly applies to people that just installed
If you're all updated, then continue down, else update and repeat..lol. Sucks for you!
23. In the directory where you saved WPA_SUPPLICANT right click and
and "Extract Here"
24. kedit
paste this in kedit
CONFIG_DRIVER_NDISWRAPPER=y
CONFIG_CTRL_IFACE=y
save as .config in wpa_supplicant folder
25. "make" .... not make, use the quotes
26. make ... again without quotes
27. In root type: Konqueror ...then goto wpa_supplicant folder using the Konqueror window that came up. You do this b/c unless you have root access. You won't be able to copy and paste the necessary files into their appropriate folder. Which is /usr/local/bin.
28. Copy wpa_supplicant, wpa_passphrase and wpa_cli to /usr/local/bin.
29. kedit
paste this in
#ctrl_interface=/var/run/wpa_supplicant
network={
ssid="blah" #change
psk="mysecret" #change
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
}
save in /etc as wpa_supplicant.conf
30. echo /usr/local/bin/wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -wB >> /etc/sysconfig/network-scripts/ifup-wireless
...one whole line not two
31. echo killall wpa_supplicant > /etc/sysconfig/network-scripts/ifdown-wireless
...one whole line not two
32. chmod +x /etc/sysconfig/network-scripts/ifdown-wireless
changes access rights so no one but you can see your psk
33. In root: change directory to wpa_supplicant folder
34. make install
33. "Run system-config-network and click on the DNS tab. There you can set the hostname (aka computer name). Double-click the wlan device or edit wlan0 and enable the option to "activate this device when the computer starts." Also enable "auto obtain ip address with dhcp" and "auto obtain DNS info from provider." As for eth0, just uncheck "activate this device when computer starts."" -Heon2574
Turn the router's encryption back on using wpa-psk with TKIP or AES. CCMP is a.k.a AES, restart computer, it should work after reboot use forum for problems... hope it helps.
Forgive any grammar errors, etc... and correct me if you find any errors in this Howto


Reply With Quote
