LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   "wlan0" interface not recognized with NETGEAR WG111 USB Wireless Network Adapter (https://www.linuxquestions.org/questions/slackware-14/wlan0-interface-not-recognized-with-netgear-wg111-usb-wireless-network-adapter-366661/)

lasindi 09-24-2005 04:04 PM

"wlan0" interface not recognized with NETGEAR WG111 USB Wireless Network Adapter
 
Note: Sorry, I accidentally also posted this in the Slack Installation forum. I'm reposting it here, but I'm just letting you know that I'm not spamming the forum.

I've been trying to configure a NETGEAR WG111 USB wireless network adapter, but I cannot get it recognized as the "wlan0" interface. I downloaded, compiled and installelinux-wlan-ng-0.2.2, according to the instructions in the README, but I get stuck at this command:

wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable

It tells me that there is no such device. According to what I've been reading, I think hotplug is supposed to automagically create this interface. I know at least that when I plug the adapter in, nothing appears in dmesg. So I'm beginning to suspect that something's wrong with hotplug. I don't really mind if I have to do this manually, but what do I need to do to create this interface (or get hotplug to)?

mirto 09-24-2005 05:17 PM

hi, I'm not sure but I think the package you downloaded is just a support for wireless card.
I use a pci card not sure for usb ones but ndiswrapper works fine with then, if you don't know ndiswrapper uses the winXP driver to make your wifi card works on linux. like I said don't know if it works on usb ones.. And don't forget to check if your kernel has support to wireless extensions.
I hope it helps

shepper 09-24-2005 05:51 PM

I am using the netgear MA111 (prism2.5 chipset) with the linux-wlan-ng drivers successfully.
Initially it would just work on my home network but not at free hotspots. Does the WA111 use the prism2.5 chipset?

I added "wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable" then "dhcpcd -h <host name> wlan0". I set this up as a script in bin/.

What I am doing different is using different drivers (pre21). In the extra/ directory Pat V. has a Slackware package of the drivers (installs pci, usb pcmia, etc)
I updated my kernel (2.4.31) so I compiled my own driver from the linux-wlan-ng site. If you compile your own use version 25 as version 26 only supports the 2.6 kernel.

The driver source code that works for me

lasindi 09-24-2005 07:04 PM

Thanks for your replies!

mirto, using ndiswrapper locked up my keyboard, which the website said was a possibility, so unfortunately that's not going to be an option.

shepper, the problem I'm having is that I can't even access the card (i.e., no where, not just outside of my home). I need a way to create the wlan0 interface which I can configure.

shepper 09-24-2005 08:03 PM

I guess the first things to check are as follows:

Plug in the WA111 and run "dmesg | less" as root. The end of the output should show the device being recognized.
Also check "lsmod" to see if the prism2_usb and p80211 modules are loaded.

edited because the only thing worse than my spelling is my typing

shepper 09-24-2005 08:09 PM

My "dmesg | less output"

Quote:

Writing 4096 bytes to ram @0x7e8ffe
Writing 4096 bytes to ram @0x7e9ffe
Writing 4096 bytes to ram @0x7eaffe
Writing 4096 bytes to ram @0x7ebffe
Writing 4096 bytes to ram @0x7ecffe
Writing 4096 bytes to ram @0x7edffe
Writing 3010 bytes to ram @0x7eeffe
Writing 416 bytes to ram @0x7efc20
Writing 16 bytes to ram @0x7efdd0
Writing 4044 bytes to ram @0x7f0800
Writing 3288 bytes to ram @0x7fe000
ident: nic h/w: id=0x8026 1.0.0
ident: pri f/w: id=0x15 1.1.3
ident: sta f/w: id=0x1f 1.8.3
MFI:SUP:role=0x00:id=0x01:var=0x01:b/t=1/1
CFI:SUP:role=0x00:id=0x02:var=0x02:b/t=1/1
PRI:SUP:role=0x00:id=0x03:var=0x01:b/t=1/4
STA:SUP:role=0x00:id=0x04:var=0x01:b/t=1/15
PRI-CFI:ACT:role=0x01:id=0x02:var=0x02:b/t=1/1
STA-CFI:ACT:role=0x01:id=0x02:var=0x02:b/t=1/1
STA-MFI:ACT:role=0x01:id=0x01:var=0x01:b/t=1/1
Prism2 card SN: \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
linkstatus=CONNECTED

lasindi 10-19-2005 01:48 PM

Well, I managed to get the card working under Ubuntu using ndiswrapper. I'm not sure exactly how the configurations are different between my Slackware systems and Ubuntu (it may well have to do with the fact that I compile my own vanilla kernels on Slackware and use precompiled kernels on Ubuntu), bu in any case since I'm only using the card on an Ubuntu system, everything is fine now. Thanks again for all of your help!

shade87 11-21-2005 03:18 PM

Wlan WEP Ubuntu WG 111
 
I have problems in configuring Wlan with Netgear WG 111 (S/N: WG72). I have to use WEP encryption.
First of all I installes ndiswrapper and ndisgtk. I download driver from netgear.com
ndisgtk shows that hardware is present, light ist blinking.
a scan with iwconfig shows the right ESSID.
Everythime I want to configure my network with ndisgtk the console displays the following error: While connecting to session manager:
Authentication rejected, reason: None of the authentication protocols specified are supported and host-based authentication failed.

Result of ifconfig:
wlan0 IEEE 802.11b ESSID:"hoehenweg"
Mode:Managed Frequency:2.437 GHz Access Point: 00:90:4B:1C:C5:25
Bit Rate:11 Mb/s Tx-Power:32 dBm
RTS thr:2346 B Fragment thr:2346 B
Encryption key:my key Security mode:restricted
Power Managementff
Link Quality:100/100 Signal level:-50 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:328 Missed beacon:0

/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
iface eth0 inet dhcp
iface wlan0 inet dhcp
wireless-essid hoehenweg
wireless-mode managed
wireless-key s:1234567890123 (for 128-bit encryption)
auto wlan0
auto eth0

Can anyone help me?

chrisortiz 11-21-2005 04:36 PM

shade87,

you are looking for something called "wpa_supplican't".

The source code README contains some pretty good examples that should get you on your way.

I am also using a wg111v2, so it should work fine for you.

shade87 11-22-2005 12:48 PM

WEP encryption
 
Thanks for your help
I want to use WEP encryption do I have to install "wpa_supplican't" then? The real problem is that I don't understand the meaning of the error I get when I want to configure the wlan card with ndisgtk:
Authentication rejected, reason: None of the authentication protocols specified are supported and host-based authentication failed.

Does anyone know what this means?

chrisortiz 11-22-2005 12:56 PM

Quote:

wireless-key s:1234567890123 (for 128-bit encryption)
is this the actual line of code or did you put (for 128-bit encryption) in as a pointer?

if it is actual code put this in instead
Quote:

wireless-key s:1234567890123 #(for 128-bit encryption)
i make errors like that all the time.

steff aka sid 11-23-2005 02:23 PM

Hi i want to know: Works the wg111v2 Usb wireless stick with wlan-ng driver??? I only used ndiswrapper right now but i get kernel freezes whith it. So i like to try to use wlan-ng but i don't know if it's supported.
Greetz Steff

chrisortiz 11-23-2005 02:33 PM

Quote:

Hi i want to know: Works the wg111v2 Usb wireless stick with wlan-ng driver??? I only used ndiswrapper right now but i get kernel freezes whith it. So i like to try to use wlan-ng but i don't know if it's supported.

i had the same problem with ndiswrapper, the only way i could fix it was to change my kernel to 2.6.10 off of the second slackware 10.1 cd

The problem is in how the 2.4.31 kernel handles the usb calls. (i'm guessing you are using 2.4.31, because thats what i used)

steff aka sid 11-23-2005 02:40 PM

Quote:

Originally posted by chrisortiz
i had the same problem with ndiswrapper, the only way i could fix it was to change my kernel to 2.6.10 off of the second slackware 10.1 cd

The problem is in how the 2.4.31 kernel handles the usb calls. (i'm guessing you are using 2.4.31, because thats what i used)

No i use a 2.6.14 custom build kernel. I use this kernel with my notebook with Centrino and Intel wireless card and have no problems. So i think the Problem is the windows driver from the usb stick or maybe like you think its the handle of the usb calls.
I think i will try the wlan-ng modul now and when it works then i will post here what i've done.
Greetz Steff

shade87 11-27-2005 09:59 AM

wlan works with wep encryption
 
Hey I've solved my problem. Everything works now. All you really need is ndiswrapper and the netgear driver. My router works with MAC address control. I thought I had made an entry but actually the MAC address of my card was not listed there.

/etc/network/interfaces
looks like this now:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
#mapping hotplug
# script grep
# map eth0

# The primary network interface
#iface eth0 inet dhcp

iface wlan0 inet dhcp
wireless-channel 6
wireless-mode managed
wireless-key s:123y61vja7hl9
wireless-essid hoehenweg

auto wlan0

#END
There are no connection problems and even dhcp works properly.
I used the following wiki: ndiswrapper installation


All times are GMT -5. The time now is 05:06 PM.