LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-26-2015, 02:59 PM   #1
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Rep: Reputation: Disabled
No wireless on fresh 12.04-5-nonPAE install


I have downloaded and installed ndiswrapper v.1.58 and the appropriate driver neti2220 for my InProComm wireless card.

Code:
rafael@RafasTravelMate:~$ sudo ndiswrapper -l
neti2220 : driver installed
	device (17FE:2220) present
and from sudo lshw -C network the following partial output:

Code:
*-network:1
       description: Wireless interface
       product: IPN 2220 802.11g
       vendor: InProComm Inc.
       physical id: 4
       bus info: pci@0000:02:04.0
       logical name: wlan0
       version: 00
       serial: 00:0e:9b:83:f2:32
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ndiswrapper+neti2220 driverversion=1.58rc1+LanExpress,03/29/2004,2. latency=64 link=no maxlatency=32 mingnt=32 multicast=yes wireless=IEEE 802.11g
       resources: irq:10 ioport:3800(size=32) memory:e0203800-e020381f memory:e0203000-e02037ff
Then:
Code:
rafael@RafasTravelMate:~$ nmcli -e no con
NAME                      UUID                                   TYPE              TIMESTAMP-REAL                    
Wired connection 1        86506665-1eda-400f-8353-c868bd6d844d   802-3-ethernet    Fri 26 Jun 2015 02:47:37 PM ECT   
rafaswifi                 0cbab0a9-d7f6-43b2-bdc4-a2fe89e51440   802-11-wireless   never
Followed by:

Code:
rafael@RafasTravelMate:~$ iwlist wlan0 s
wlan0     No scan results
I felt discouraged by this result but I pressed ahead and attempted to create a connection using network-manager from terminal, and then using wpa_supplicant from terminal, in both cases without success. I have many details of these attempts if needed.

Perhaps the zero scan result is pointing to the problem.
Is there a way to cause the machine to see the modem?
 
Old 06-26-2015, 05:22 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by seabag View Post
Is there a way to cause the machine to see the modem?
I'm not sure if I can help you with this but, judging from this thread and perhaps others, you're not the only one who has experienced problems with this adapter using ndiswrapper.

As mentioned in that thread, check your kernel logs to see what ndiswrapper is reporting. Using the "dmesg" in a terminal command might give you the same information. I also found some other pages that might be of help....

Please see the post by frederik1975 (at the bottom) here.

I also found this blog.

Finally, make sure the EULA for the Windows driver permits its use in Linux.

Thanks!

Last edited by ardvark71; 06-26-2015 at 09:17 PM. Reason: Added information.
 
Old 06-26-2015, 07:22 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What is the precise chipset in the card? The command lspci should reveal that information.
 
Old 06-27-2015, 09:55 AM   #4
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
What is the precise chipset in the card? The command lspci should reveal that information.
lspci shows the following:
02:02.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
02:04.0 Ethernet controller: InProComm Inc. IPN 2220 802.11g
 
Old 06-27-2015, 01:43 PM   #5
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
I'm not sure if I can help you with this but, judging from this thread and perhaps others, you're not the only one who has experienced problems with this adapter using ndiswrapper.

As mentioned in that thread, check your kernel logs to see what ndiswrapper is reporting. Using the "dmesg" in a terminal command might give you the same information. I also found some other pages that might be of help....

Please see the post by frederik1975 (at the bottom) here.

I also found this blog.

Finally, make sure the EULA for the Windows driver permits its use in Linux.

Thanks!
Thanks aardvark71. The first link confirms that others have had a similar problem with the InProComm device.
The link to frederick1975 was instrumental a few days ago in pointing out my then current version of ndiswrapper v.1.57 wasn't compatible with 12.04. I deleted 1.57 and installed 1.58. The previous problems with 1.57 disappeared and I was able to install the recommended drivers, neti2220. See this:
Code:
rafael@RafasTravelMate:/var/log$ sudo ndiswrapper -l
[sudo] password for rafael: 
neti2220 : driver installed
	device (17FE:2220) present
The blog link describes a process of activating the device and driver that has not been successful on my machine.
Code:
rafael@RafasTravelMate:/var/log$ iwlist scan
lo        Interface doesn't support scanning.

wlan0     No scan results

eth0      Interface doesn't support scanning.
It looks like my wireless card is not seeing the modem.
 
Old 06-27-2015, 03:19 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by seabag View Post
It looks like my wireless card is not seeing the modem.
Just as an idea, have you tried different versions of the driver? The OP on this thread mentioned the drivers on the bottom of this thread worked for him.

If you are unable to get it to work at all, how about getting a USB adapter like this one? Just make sure you contact them first to see how much shipping would be to your country before you order, if you get this model from them.

Regards...
 
Old 06-27-2015, 05:17 PM   #7
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
I'm not sure if I can help you with this but, judging from this thread and perhaps others, you're not the only one who has experienced problems with this adapter using ndiswrapper.

As mentioned in that thread, check your kernel logs to see what ndiswrapper is reporting. Using the "dmesg" in a terminal command might give you the same information. I also found some other pages that might be of help....

Please see the post by frederik1975 (at the bottom) here.

I also found this blog.

Finally, make sure the EULA for the Windows driver permits its use in Linux.

Thanks!
Thanks aardvark71. The first link confirms that others have had a similar problem with the InProComm device.
The link to frederick1975 was instrumental a few days ago in pointing out my then current version of ndiswrapper v.1.57 wasn't compatible with 12.04. I deleted 1.57 and installed 1.58. The previous problems with 1.57 disappeared and I was able to install the recommended drivers, neti2220. See this:
Code:
rafael@RafasTravelMate:/var/log$ sudo ndiswrapper -l
[sudo] password for rafael: 
neti2220 : driver installed
	device (17FE:2220) present
The blog link describes a process of activating the device and driver that has not been successful on my machine.
Code:
rafael@RafasTravelMate:/var/log$ iwlist scan
lo        Interface doesn't support scanning.

wlan0     No scan results

eth0      Interface doesn't support scanning.
It looks like my wireless card is not seeing the modem.
 
Old 06-27-2015, 07:39 PM   #8
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Just as an idea, have you tried different versions of the driver? The OP on this thread mentioned the drivers on the bottom of this thread worked for him.

If you are unable to get it to work at all, how about getting a USB adapter like this one? Just make sure you contact them first to see how much shipping would be to your country before you order, if you get this model from them.

Regards...
Thanks aardvark71 for your research and effort. I continue to be impressed with help available at one's finger tips!

The drivers suggested on your pages are the same InProComm driver that I am using. The process of configuration using <iwconfig> is compatible only with wep security type modems. My modem is wpa security type. This obliges me to use either checkbox with gnome to configure network-manager (ref: askubuntu.com/questions/16584/...), or alternatively, to use wpa_supplicant (ref: askubuntu.com/questions/138472/...) to do the job. I tried both.

The checkbox genome method uses this command: sudo user/share/checkbox/scripts/create_connection -S [SECURITY_TYPE] -K [password] [SSID]. Plugging in the values for my system produces the following result:
Connection rafaswifi registered
Error: Connection activation failed
Failed to activate rafaswifi
I searched the error, "connection activation failed," and found many posts all dealing with virtual machines and problems stemming from password related issues. I did not see anything applicable to my simple problem.

Some people had reported problems using the checkbox-gnome method. I moved to the wpa_supplicant method hoping for a better result.

The wpa_supplicant method uses this command: sudo wpa_passphrase rafaswifi idontenter > /etc/network/wpa.conf. This command had to be run as root at the terminal. The output from the pass_phrase command was silent, indicating a successful action. I entered the following:
Code:
rafael@RafasTravelMate:/var/log$ cat /etc/network/wpa.conf
network={
	ssid="rafaswifi"
	#psk="idontenter"
	psk=d719dca00a9f4c47cc0b88925de418247f9b9ab8df1b0ddb9b642c64960efe12
}
To see if the device was communicating with the modem, I entered:
rafael@RafasTravelMate:/var/log$ sudo iwlist wlan0 s
password for rafael:
wlan0 No scan results

Out of desperation I pressed ahead despite this negative result to the next step in the wpa_supplicant process:
Code:
root@RafasTravelMate:~# wpa_supplicant -Dwext -iwlan0 -c/etc/network/wpa.conf
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument
So that's where I'm at.
Why can't I pick up the router on a scan?
Thanks for any help.
 
Old 06-27-2015, 08:11 PM   #9
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
I have to get on another learning curve here. I cannot kill the wpa_supplicant process. I issue the following commands: kill [PID], or kill -1 [PID], or kill -15 [PID], or killall [PID], and every time the process wpa_supplicant only changes its PID, it does not stop (according to ps -A output.)??

If I can't kill this process, then I cannot initiate a new attempt using different parameters. I found a site that says the drivers choice in wpa_supplicant, "wext", has been deleted and in its place one must use nl80211. I want to try this parameter but cannot until I kill the currently running process. Re-boot did not end the process.

Last edited by seabag; 06-27-2015 at 08:13 PM. Reason: re-boot info
 
Old 06-27-2015, 09:34 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
The culprit is likely the Broadcom chipset. You shouldn't need ndiswrapper for that. See this post:

http://www.linuxquestions.org/questi...ux-4175434970/
 
Old 06-28-2015, 08:19 AM   #11
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
The culprit is likely the Broadcom chipset. You shouldn't need ndiswrapper for that. See this post:

http://www.linuxquestions.org/questi...ux-4175434970/
The wireless chipset is not broadcom, it is InProComm. Output from lshw -C network:
Code:
  *-network:1
       description: Wireless interface
       product: IPN 2220 802.11g
       vendor: InProComm Inc.
       physical id: 4
       bus info: pci@0000:02:04.0
       logical name: wlan0
       version: 00
       serial: 00:0e:9b:83:f2:32
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ndiswrapper+neti2220 driverversion=1.58rc1+LanExpress,03/29/2004,2. latency=64 maxlatency=32 mingnt=32 multicast=yes wireless=IEEE 802.11g
       resources: irq:10 ioport:3800(size=32) memory:e0203800-e020381f memory:e0203000-e02037ff
The driver appears to be successfully installed.
 
Old 07-01-2015, 02:50 PM   #12
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
Here is more information for someone who understands the language of scripts. To connect to a wpa router with network-manager from terminal (askubuntu.com/questions/16584/...) use the following command:
<sudo usr/share/checkbox/scripts/create_connection -S [SECURITY_TYPE] -K [PASSWORD] [SSID_NAME]>. For my computer security type = wpa; password = idontenter; ssid name = rafaswifi. Therefore:

Therefore:
<sudo usr/share/checkbox/scripts/create_connection -S wpa -K idontenter rafaswifi>
gives a print-out:
"Connection rafaswifi registered
Error: Connection activation failed
Failed activate rafaswifi

The new file "create_connection" may contain the information needed to bring this to a conclusion (I hope!) :-)
Enter the command:
<cd /usr/share/checkbox/scripts>

Followed by:
rafael@RafasTravelMate:/usr/share/checkbox/scripts$ cat create_connection
#!/usr/bin/env python

import sys
import os
import time

from subprocess import Popen, PIPE
from uuid import uuid4
from optparse import OptionParser

CONNECTIONS_PATH='/etc/NetworkManager/system-connections/'

def connection_section(ssid, uuid):

if not uuid: uuid = uuid4()

connection = """
[connection]
id=s
uuid=%s
type=802-11-wireless
""" % (ssid, uuid)

wireless = """
[802-11-wireless]
ssid=%s
mode=infrastructure""" % (ssid)

return connection + wireless

def security_section(security, key):
# Add security field to 802-11-wireless section
wireless_security = """
security=802-11-wireless-security

[802-11-wireless-security]
"""

if security.lower() == 'wpa':
wireless_security += """
key-mgmt=wpa-psk
auth-alg=open
psk=%s
""" % key

elif security.lower() == 'wep':
wireless_security += """
key-mgmt=none
wep-key=%s
""" % key

return wireless_security

def ip_sections():
ip = """
[ipv4]
method=auto

[ipv6]
method=auto
"""

return ip

def block_until_created(connection, retries, interval):

while retries > 0:
nmcli_con_list = Popen(['nmcli','con','list'], stdout=PIPE)
(stdout, stderr) = nmcli_con_list.communicate()

if connection in stdout:
print("Connection %s registered" % connection)
break

time.sleep(interval)
retries = retries - 1

if retries <= 0:
print("Failed to register %s." % connection)
sys.exit(1)
else:
nmcli_con_up = Popen(['nmcli','con','up','id', connection], stdout=PIPE)
(stdout, stderr) = nmcli_con_up.communicate()

if 'state: activated' in stdout:
print("Connection %s activated." % connection)
else:
print("Failed to activate %s." % connection)
sys.exit(1)


def main():
parser = OptionParser()

parser.add_option('-S', '--security',
help="""The type of security to be used by the connection.
One of wpa and wep. No security will be used if
nothing is specified.""")
parser.add_option('-K', '--key',
help="The encryption key required by the router.")
parser.add_option('-U', '--uuid',
help="""The uuid to assign to the connection for use by
NetworkManager. One will be generated if not
specified here.""")
parser.add_option('-R', '--retries',
help="""The number of times to attempt bringing up the
connection until it is confirmed as active.""",
default=5)
parser.add_option('-I', '--interval',
help="""The time to wait between attempts to detect the
registration of the connection.""",
default=2)

(options, args) = parser.parse_args()

if len(args) < 1:
print("Must specify an SSID to connect to.")
sys.exit(1)

connection_info = connection_section(args[0], options.uuid)

if options.security:
# Set security options
if not options.key:
print "You need to specify a key using --key if using wireless security."
sys.exit(1)

connection_info += security_section(options.security, options.key)
elif options.key:
print "You specified an encryption key but did not give a security type using --security."
sys.exit(1)

connection_info += ip_sections()

try:
connection_file = open(CONNECTIONS_PATH + args[0], 'w')
connection_file.write(connection_info)
os.fchmod(connection_file.fileno(), 0600)
connection_file.close()
except IOError:
print "Can't write to " + CONNECTIONS_PATH + args[0] + ". Is this command being run as root?"
sys.exit(1)

block_until_created(args[0], options.retries, options.interval)

if __name__ == "__main__":
main()

With this information, can anyone see what may be going wrong?
 
Old 07-02-2015, 04:49 PM   #13
seabag
Member
 
Registered: Oct 2014
Location: Loja, Ecuador
Distribution: 12.04-nonPAE(beta)
Posts: 93

Original Poster
Rep: Reputation: Disabled
This thread is leading nowhere and my frustration with the process has reached a limit. I will take aarvark71's advice and purchase an external device. I am disappointed that ubuntu has such an arcane process for simply connecting to a wireless network. My computer has no PAE capacity, so I am limited to 12.04-nonPAE-beta. I cannot test newer versions of ubuntu. I do hope that this issue has been resolved if only for the sake of world-wide users of ubuntu linux. I will mark the thread as solved not because it has been solved, but because I will purchase an external device.
 
Old 07-02-2015, 05:22 PM   #14
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by seabag View Post
This thread is leading nowhere and my frustration with the process has reached a limit. I will take aarvark71's advice and purchase an external device. I am disappointed that ubuntu has such an arcane process for simply connecting to a wireless network. My computer has no PAE capacity, so I am limited to 12.04-nonPAE-beta. I cannot test newer versions of ubuntu. I do hope that this issue has been resolved if only for the sake of world-wide users of ubuntu linux. I will mark the thread as solved not because it has been solved, but because I will purchase an external device.
Hi...

I'm sorry you couldn't get it to work. Wireless on Linux can still be difficult because of the continuing issue with drivers.

Let us know how the external adapter works...

Regards...

Last edited by ardvark71; 07-02-2015 at 05:23 PM. Reason: Correction.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wireless ralink on fresh install Quicken2k Slackware 5 06-07-2014 12:56 PM
Slackware 13.37 fresh install - wireless troubles. lkz Linux - Newbie 1 08-25-2012 10:04 AM
[SOLVED] wireless: from a fresh install? pottzie Slackware - Installation 18 10-04-2010 10:35 AM
Slack 13 fresh install, WMP300N wireless not working Twister512 Slackware 9 04-03-2010 07:57 AM
USB and Wireless problem in Kubuntu fresh install jiml8 Ubuntu 1 11-25-2007 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration