LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2009, 01:11 PM   #1
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Rep: Reputation: 21
iwconfig with Dlink DWL-G510


Hi there,

I have a Dlink DWL-G510 wlan interface to get working on Suse 11.1. Mode is ad-hoc.

The command:
iwconfig wlan0

gives me a cell number : ef:33:45:....
and a signal level of 0 (no db unit but just an 0)

The "activity" LED keeps flashing.

Does the cell number mean my dlink-card has connected to the access point ?

thank you for your help

Mario
 
Old 09-06-2009, 10:19 PM   #2
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
In IBSS(Ad-Hoc) mode (that is network without an AP) the cell number indicates the cell the node has joined. It should be the MAC address of the first node started and all nodes should have the same value (apart if they are out of range).
In your case, it means you are joined with a Ad-Hoc network.

If you want to connect to AP, which is BSS mode, you will have to configure SSID and security:

For OPEN secutiry:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 channel <Channel_Number>
sudo iwconfig wlan0 essid <SSID_of_AP>
sudo ifconfig wlan0 up

For WEP:
sudo iwconfig wlan0 key s:<WEP_KEY>

For WPAv1, WPAv2
You will have to use wpa_supplicant. Save the following as wpa_supplicant.conf

#
# File: wpa_supplicant.conf
#
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
network={
ssid="SSID_OF_AP"
key_mgmt=WPA-PSK
psk="Your_Passphrase"
}

Then start wpa supplicant with:
sudo wpa_supplicant -c wpa_supplicant.conf -i wlan0

Last edited by piratas; 09-06-2009 at 10:26 PM.
 
Old 09-07-2009, 12:38 PM   #3
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
hello piratas !

thank your for your help. I learned that my network is a managed one. So I need to change the mode from ad-hoc to managed.

All the iwconfig commands do NO change at all to my network card configuration. I run them as root:

iwconfig wlan0 mode managed
iwconfig wlan0 channel <Channel_Number>
iwconfig wlan0 essid <ESSID_of_AP>

Whatever parameter I give to iwconfig - it gets ignored.
The driver is properly installed. So what am I doing wrong ?

thank you,
cheer, Mario
 
Old 09-07-2009, 08:09 PM   #4
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
In your case, you don't need specifically set your wireless adapter to managed mode. Once your successfully done association and authentication, the mode will be managed mode.

I guess you haven't succeed with authentication.

To make things simpler, set the AP to OPEN security(if you can), and then use iwconfig to association with it. If you can get onto the network, then you know which part the problem is.

Last edited by piratas; 09-07-2009 at 08:26 PM.
 
Old 09-08-2009, 12:32 PM   #5
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
I'm happy to tell someone my trouble :-)

If I run

iwlist wlan0 scan

the cell I want to connect to does not get found. The access point is 100m away and can be seen clearly.
The folks around me in the same cell have windows boxes and don't complain.
Another cell is found with a very weak signal (-80dbm) which tells me the driver is working fine.
The antenna seems ok to me. I'll test the dlink card and the antenna in a windows 98 box tomorrow.

Could it be still a driver problem with Suse 11.1 ?

cheers and thanks, Mario
 
Old 09-08-2009, 04:17 PM   #6
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
It doesn't seem like a driver problem for me. Have you tried other wireless adapter on your Suse box, does it works?

Can you provide more info to narrow down the problem, what security type the AP is, what commands you use, what error message you see and what's the output of ifconfig, iwconfig, iwscan, and etc.
 
Old 09-10-2009, 11:51 AM   #7
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Hello piratas,

I'm sorry for make you waiting. The Dlink DWL-G510 doesn't work on Win 98, so the experiment on Windows is still pending.

No, I haven't tried another Wlan-adapter on the suse machine yet. It's the first time I set up a wlan.

The AP security mode is WEP.
In the following you'll read my log about the commands I use:

linux-rt1w:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:84:0D:C1:98
inet addr:192.168.4.10 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::230:84ff:fe0d:c198/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:9475 (9.2 Kb)
Interrupt:11 Base address:0x4000

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:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2296 (2.2 Kb) TX bytes:2296 (2.2 Kb)

wlan0 Link encap:Ethernet HWaddr 00:22:B0:ED:BF:08
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:828 (828.0 b) TX bytes:576 (576.0 b)

wmaster0 Link encap:UNSPEC HWaddr 00-22-B0-ED-BF-08-00-00-00-00-00-00-00-00-00-00
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)

linux-rt1w:~ # iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"Egstedt"
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Tx-Power=-1 dBm
Retry min limit:7 RTS thrff Fragment thr=2352 B
Encryption keyff
Power Managementn
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

linux-rt1w:~ # iwlist wlan0 scan
wlan0 No scan results

linux-rt1w:~ #

Regarding ifconfig:
There are some bytes received and transmitted shown. This is a leftover of another network I occasionally see with iwlist (see below).

Regarding iwconfig:
I still wonder why the signal level is just zero. There should be something like -120dbm or so. When Suse 9.3 was still running on this box I used the driver provided by ralink. No success either, but the signal level was constantly -120dbm (almost nothing).
I turned the encryption off and power management on (probably usesless).

Regarding iwlist:
It finds a network occasionally with -80dbm but another ESSID. So I assume antenna and network card are ok.

I got me another wlan antenna today which doesn't change the outcome of my experiments. The network card is new from the shelf.
Tomorrow I'll look for the kernel messages. Maybe there is something wrong deep down in the driver.
 
Old 09-11-2009, 12:05 PM   #8
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Hi,

in addition to my log there is the following:

linux-rt1w:~ # lsmod | grep rt61
rt61pci 18588 0
crc_itu_t 1880 1 rt61pci
rt2x00pci 6792 1 rt61pci
rt2x00lib 26616 2 rt61pci,rt2x00pci
eeprom_93cx6 2204 1 rt61pci
linux-rt1w:~ #

linux-rt1w:~ # dmesg | grep rt61
rt61pci 0000:01:05.0: PCI INT A -> Link[LNKC] -> GSI 5 (level, low) -> IRQ 5
Registered led device: rt61pci-phy0:radio
Registered led device: rt61pci-phy0:assoc

If you need I will send you the messages file from /var/log/ . It would be too much of information for now I think.

have a great weekend !
 
Old 09-15-2009, 03:48 AM   #9
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
The following command should do the work:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 channel PUT_CHANNEL_NUMBER_HERE
sudo iwconfig wlan0 essid Egstedt
sudo iwconfig wlan0 key s:PUT_YOUR_ASCII_WEP_KEY_HERE
sudo ifconfig wlan0 up

Then, start dhcp client:
sudo dhclient wlan0

Note: If you use HEX wep key, use the following command replace the above one:
sudo iwconfig wlan0 key s:PUT_YOUR_HEX_WEP_KEY_HERE
 
Old 10-01-2009, 11:48 AM   #10
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Hello piratas,

thank your for your help. The issue is on hold at the moment because of lots of other things around my business... as soon as I have time for further experiments I'll get back to you.

cheers, Mario
 
Old 10-07-2009, 12:15 PM   #11
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
Hello Piratas,

today I got back to this issue and tried to get the card working on Windows 2k. Result is the same as with Suse. So I assume the card is faulty or the Windows driver shipped with it is faulty. Bad thing that...
 
  


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
DLink DWL-G510 Drivers TheDrew202 Linux - Hardware 11 07-13-2008 09:54 PM
How to use Dlink DWL-G510?? firewiz87 Linux - Wireless Networking 14 02-28-2008 05:13 AM
Dlink DWL-G510 With MADWiFi RemusX2 Linux - Hardware 6 06-01-2005 02:50 PM
DWL-G510 and iwconfig AChi Linux - Wireless Networking 5 04-20-2005 06:20 AM
DLink DWL-G510 on AMD64 High-Hopes Linux - Wireless Networking 5 01-13-2005 12:48 PM

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

All times are GMT -5. The time now is 05:19 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