WNA3100 Ubuntu Linux


Update - 31st January 2012

I recently discovered that this guide I put together was mentioned on several Linux Forums & was still being used by people. I haven't updated any of the information on this page since around December 2010 so some of it may no-longer be relevant. I'd originally created it because my previous NETGEAR WGR614 Router stopped broadcasting a reliable signal after about 4 years so I went out & purchased a N300 Wireless Router model WNR2000v2 with a WNA3100 Wireless Adaptor. I then discovered it wouldn't work with the new version of Ubuntu that I'd installed but a quick browse on Google directed me to this page on the Ubuntu Forums. The instructions I found there were extremely useful.. At the beginning of 2011 I brought an Acer Aspire One Netbook Computer which has built in Wi-Fi & have never had any problems connecting to the Internet using Ubuntu. :-)



Before you continue I highly recommend visiting this Forum Thread on the Ubuntu Forums as it's probably more up-to-date than the following guide.



Recently I had to buy a new Netgear Router & USB stick after my previous Netgear router stopped broadcasting a signal after 4 years.

After I installed the new version of Ubuntu I discovered that no Wireless networks were being picked up whatsoever.

I switched back to my Windows partition & searched for WNA3100 Linux on Google & discovered this thread on the Ubuntu forum.

In order to get your WNA3100 router & USB stick working with Ubuntu you'll need to follow these simple steps.

  • Download ndiswrapper from here
  • Locate ntoskernal_io.c in the ndiswrapper & add the following lines at the end of the file

wstdcall NTSTATUS WIN_FUNC(IoUnregisterPlugPlayNotification,1)
    (void *tag) /* Don't ever use this pointer */
{
    TRACE2("%p", tag);
    TODO(); /* Probably Not, legacy function abandoned in Windows 7 */
    IOEXIT(return STATUS_SUCCESS); /* Linux doesn't use it either */
}

  • cd to the ndiswrapper folder
  • sudo make
  • sudo make install
  • Download bcmwlhigh5.inf & bcmwlhigh5.sys from here
  • After extracting the above files, cd to the folder.
  • Then type in a terminal sudo ndiswrapper -i bcmwlhigh5.inf
  • Now turn off your computer & remove the WNA3100 USB stick from it's cradle
  • Turn your computer back on & log in
  • Wait until you're at the Ubuntu Desktop & insert the WNA3100 USB stick in it's cradle
  • Enter your details, SSID, Passphrase, Password etc
  • Wireless networking should now work

Useful Commands & their Possible Output

  • ndiswrapper -v
utils version: '1.9', utils version needed by module: '1.9'
module details:
filename:       /lib/modules/2.6.32-27-generic/misc/ndiswrapper.ko
version:        1.56
vermagic:       2.6.32-27-generic SMP mod_unload modversions 586
  • sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:ec:00:6a:58
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0xd800
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10362 (10.3 KB)  TX bytes:10362 (10.3 KB)
 
wlan0     Link encap:Ethernet  HWaddr 30:46:9a:22:c3:4a
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3246:9aff:fe22:c34a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:184089 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120933 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:251340867 (251.3 MB)  TX bytes:12752092 (12.7 MB)
  • iwconfig
lo        no wireless extensions.
 
eth0      no wireless extensions.
 
wlan0     IEEE 802.11g  ESSID:"NTGR_h"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 30:46:9A:83:9D:CE
          Bit Rate=117 Mb/s   Tx-Power:32 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Power Management:off
          Link Quality:81/100  Signal level:-44 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0