wlan0 is gone, enable wireless option is missing from the network manager

Asked by Adam Cajander

 I just built a desktop PC with no internal wireless interface. I have been using a TP-link USB device for wireless internet, but the connection was very intermittent and I would have to unplug the device every several minutes in order to get it working again. I decided to install the compat-wireless drivers today, so I disabled networking and wireless in the nm-applet, and proceeded to install compat. Everything seemed successful until I rebooted and found that the "enable wireless option" had disappeared. So I tried doing a:

ifconfig wlan0 up

which returned:

ERROR while getting interface flags: No such device

I will add that the TPlink (TL-WN821N) is working correctly my other Ubuntu computers. I have no clue where to go from here. Any help is appreciated.

Thanks

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo lshw -C network; lsb_release -a; uname -a; sudo rfkill list

Thanks

Revision history for this message
Adam Cajander (cajander1111) said :
#2

I uninstalled compat-drivers and that solved the issue. What it did not solve though is the intermittent/slow wireless connection that occurs only when using the TL-WN831N. If you'd like you could help me with this, or should I open a new question? After using the wifi for a few minutes, my torrent downloads drop to 0.0 KiB/s and web pages do not load, despite the wifi still being connected. I am then forced to reset the connection or unplug the dongle, which will make it work for a few minutes until it happens again.

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

with it working, run:

sudo lshw -C network; sudo rfkill list

What is the output?

Thanks

Revision history for this message
Adam Cajander (cajander1111) said :
#4

 Thanks for the reply,

Just an FIY:

As a temporary fix I disabled wirelss N mode on my router, which is of course isn't optimal (I've seen an average download speed of 2 MiB/s cut in half, and signal strength has decreased significantly). This did stop the wifi from dropping though.

I have also assigned a static IP to save time adjusting settings. (I use android devices as remotes for Rhythmbox and XBMC)

Just thought I would share that in case those two things alter the way we are going to tackle this.

Output of sudo lshw -C network:

 *-network
       description: Ethernet interface
       product: RTL8111/8168B PCI Express Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: eth0
       version: 06
       serial: d4:3d:7e:4f:86:1b
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:42 ioport:e000(size=256) memory:fea04000-fea04fff memory:fea00000-fea03fff
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:3
       logical name: wlan0
       serial: 00:27:19:f1:46:bb
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=carl9170 driverversion=3.5.0-25-generic firmware=1.9.4 ip=192.168.0.2 link=yes multicast=yes wireless=IEEE 802.11bgn
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

Thanks again for your assistance

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

Try reenabling n speed and run:

echo "options carl9170 noht=1" | sudo tee /etc/modprobe.d/carl9170.conf > /dev/null

All one long command and reboot to test. If it still refuses to work try:

echo "options carl9170 nohwcrypt=1" | sudo tee /etc/modprobe.d/carl9170.conf > /dev/null

And reboot again. The tee command overwrites the file so you don't have to edit / delete anything before. Easier.

Some wifi adapters still dislike n speed bu for casual web browsing g speed is fine :-)

Revision history for this message
Adam Cajander (cajander1111) said :
#6

Yes, the first command worked like a charm. Thanks again for your help. I'm back up to full speed DL's now, and no intermittent connection using N speed. Have a good one, eh

Revision history for this message
Adam Cajander (cajander1111) said :
#7

Thanks actionparsnip, that solved my question.