Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2032 (new defect)

Opened 13 years ago

Last modified 13 years ago

D-Link DWL-G510 rev. B1 (H/W Ver. B1 F/W Ver. 4.10) Atheros AR5005 bad work, dont work Ad-Hoc

Reported by: anonymous Assigned to:
Priority: minor Milestone:
Component: madwifi: driver Version: v0.9.4
Keywords: D-Link DWL-G510 Ad-Hoc Atheros AR5005 linux i686 x86 Cc: zburguy@gmail.com
Patch is attached: 0 Pending:

Description (Last modified by mrenzmann)

System information:

# uname -a
Linux 2.6.25-gentoo-r6 #7 Sun Jul 6 14:00:45 EEST 2008 i686 Intel(R) Celeron(R) CPU 2.80GHz GenuineIntel GNU/Linux

# lspci -v
02:0b.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01)
	Subsystem: D-Link System Inc D-Link AirPlus G DWL-G510 Wireless PCI Adapter(rev.B)
	Flags: bus master, medium devsel, latency 168, IRQ 5
	Memory at fb000000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ath_pci
	Kernel modules: ath_pci

# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"home"  Nickname:""
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:11:95:BF:3F:72   
          Bit Rate:0 kb/s   Tx-Power=18 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=27/70  Signal level=-59 dBm  Noise level=-86 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

# dmesg
ath_pci: 0.9.4
ACPI: PCI Interrupt 0000:02:0b.0[A] -> Link [LNKD] -> GSI 5 (level, low) -> IRQ 5
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 7.8 phy 4.5 radio 5.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0xfb000000, irq=5
udevd version 124 started
wlan0: no IPv6 routers present

# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:11:95:bf:3f:72  
          inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::211:95ff:febf:3f72/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:608 (608.0 B)

Install by emerge portage:
emerge =net-wireless/madwifi-ng-tools-0.9.4
emerge =net-wireless/madwifi-ng-0.9.4

Don't work:

# iwlist wlan0 scan
wlan0     No scan results

# iwconfig wlan0 mode managed
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Invalid argument.
(Only # wlanconfig wlan0 destroy ....)

Laptop see this card, but don't connect

Laptop:

# iwlist wlan0 scan
wlan0     Scan completed :
Cell 02 - Address: 02:11:95:BF:3F:72
                    ESSID:"home"
                    Mode:Ad-Hoc
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=90/100  Signal level=-41 dBm  Noise level=-127 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=0000000105ce0081

Info laptop

# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"home"  
          Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: 00:1F:C9:64:9A:F0   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Link Quality=33/100  Signal level=-89 dBm  Noise level=-127 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:1c:bf:7f:6c:35  
          inet addr:192.168.100.2  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::21c:bfff:fe7f:6c35/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:19296 (18.8 KiB)

# ping 192.168.100.1

PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data.
From 192.168.100.2 icmp_seq=2 Destination Host Unreachable
From 192.168.100.2 icmp_seq=3 Destination Host Unreachable
From 192.168.100.2 icmp_seq=4 Destination Host Unreachable
...

Change History

07/07/08 06:57:42 changed by mrenzmann

  • priority changed from critical to minor.
  • description changed.

(in reply to: ↑ description ; follow-up: ↓ 3 ) 07/07/08 07:05:38 changed by mrenzmann

Replying to anonymous:

# iwconfig wlan0 mode managed

Changing the mode a VAP works in does not work this way. Please refer to UserDocs/ChangingMode.

# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"home"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 00:1F:C9:64:9A:F0

Obviously your notebook sits on a different channel than you other host. What does your notebooks' WLAN configuration look like?

(in reply to: ↑ 2 ) 07/07/08 09:13:27 changed by zburguy@gmail.com

Replying to mrenzmann:

Replying to anonymous:

# iwconfig wlan0 mode managed

Changing the mode a VAP works in does not work this way. Please refer to UserDocs/ChangingMode.

# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"home"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 00:1F:C9:64:9A:F0

Obviously your notebook sits on a different channel than you other host. What does your notebooks' WLAN configuration look like?

I did like UserDocs/ChangingMode Channel on laptop and D-Link is Equally. I do not correctly inserted log. Channel was 1-1,2-2(notebook-D-Link)... Notebook

02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
	Subsystem: Hewlett-Packard Company Device 135c
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at f4000000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [c8] Power Management version 2
	Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Capabilities: [e0] Express Legacy Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting <?>
	Capabilities: [140] Device Serial Number 35-6c-7f-ff-ff-bf-1c-00
	Kernel driver in use: iwl3945

And emerge net-wireless/iwl3945-ucode (Intel (R) PRO/Wireless 3945ABG Network Connection ucode)

07/17/08 10:48:50 changed by zburguy@gmail.com

Good connect to my laptop with Windows Vista. If I make a connection:

ifconfig ath0 down
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ad-hoc
iwconfig ath0 essid HOME
ifconfig ath0 up 192.168.0.10 netmask 255.255.255.0

a kernel panic