LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   how-to: Get Broadcom Wireless working on your lappy ;) (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/how-to-get-broadcom-wireless-working-on-your-lappy-%3B-408435/)

ollywompus 01-26-2006 09:47 PM

how-to: Get Broadcom Wireless working on your lappy ;)
 
Ok, so I'm relatively new to the forums, but it seems like every other thread here in the laptop section is about wireless, and 8/10 of those seem to be people having trouble with Broadcom specifically. So here's a how-to, hope this helps some people:

First off, you need to have ndiswrapper installed on your system. How you do this is different on differnt distros, depending upon your package management system. I use Ubuntu, which is Debian based, so it's a simple apt-get ndiswrapper-utils. Someone else can post how to do it with RPM's on different distros.

Once you have it installed (test by typing ndiswrapper -l in terminal), you need the Broadcom drivers for your card. This may take some googling, but some can be found at http://ndiswrapper.sourceforge.net in the Installation Wiki.

Make sure you have both driver.inf and driver.sys (for me this is bcmwl5.inf and bcmwl5.sys) in the same folder. Do the following:

ndiswrapper -i bcmwl5.inf

(you may need to add the path in front of it, i.e. ndiswrapper -i /home/olly/drivers/bcmwl5.inf is mine).
if you don't get any errors, you should see this when typing

ndiswrapper -l

driver present, hardware present.

Then type:

ndiswrapper modprobe
ndiswrapper -m

Now you should be installed. next let's get it up and running:

iwconfig DEVICE essid ESSID key XXXXXXXXXXXXXXX

Where 'DEVICE' is replaced by your card, most often seems to be wlan0, and ESSID is replaced by your SSID (the name of your wireless network) and XXXXXXXXXXXXX is replaced by your wep key. If you don't use a wep key, skip the 'key XXXXXXXXxxXXXXXX' portion of the command.

At this poinnt, if you type

iwconfig wlan0

You should see some output that includes the name of your network in quotes. Next, type

dhclient wlan0

or

ifconfig wlan0 up

or whatever other DHCP config your distro uses (ask someone in the forums with your same distro).

It should give you some output that ends in: renewal in x seconds.

You are now up and running.

To make this happen automagically, you need to edit your interfaces file. Do this by:

vim /etc/network/interfaces (where 'vim' can be rpelaced by your favorite editor, nano or whatever)

Under primary network interface, add the following lines:

iface wlan0 inet dhcp
wireless_keymode [here either add restricted or open]
wireless_mode [here have auto or managed etc]
wireless_key XXXXXXXXXXXXXXXXXXXXXXXXXX
wireless_essid ESSID
auto wlan0

So, for a real world example, mine is as follows:

iface wlan0 inet dhcp
wireless_keymode restricted
wireless_mode managed
wireless_key XXXXXXXXXXXXXXXXXXXX
wireless_essid ESSID
auto wlan0

Save this file, welcome to wireless ;)

-olly

Adrian Baker 01-27-2006 12:51 PM

Very helpful advice.

:)


All times are GMT -5. The time now is 04:38 AM.