Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atheros / Madwifi problems with new router
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
billspork
n00b
n00b


Joined: 17 Aug 2005
Posts: 30

PostPosted: Fri Mar 14, 2008 12:09 am    Post subject: Atheros / Madwifi problems with new router Reply with quote

Hi,

I recently moved into a new house and because of this I had to pick up a new wireless router (a Linksys WRT-100). My desktop is having trouble connecting to it. I have 3 other devices that have no such issues (more information on those later).

I can get an IP and what not from the router through DHCP. I can also manually configure it with ifconfig and iwconfig. The problem I'm having is that I am not able to connect to anything. I am able to ping my local host and that is about it.

I am using madwifi-ng-0.9.4.

This is what I get when I try to ping anything outside of my local network :

Code:

bill@localhost ~ $ ping www.google.com
ping: unknown host www.google.com


When I try to ping my router I get this :

Code:
localhost bill # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1197 ttl=64 time=1.28 ms

--- 192.168.1.1 ping statistics ---
1374 packets transmitted, 1 received, 99% packet loss, time 1372999ms
rtt min/avg/max/mdev = 1.282/1.282/1.282/0.000 ms


When I try to bring up my routing table I get :
Code:

localhost bill # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface


It becomes unresponsive and I have to ctrl-c to get back to my command-line.

It feels to me that my computer is having some sort of issue with the routing table.

I have a laptop running Gentoo (it is a 64-bit using madwifi-ng-0.9.33), a Windows XP desktop and an iPod Touch that all have no problem connecting to and using the network. Because of this I highly doubt there is an issue with the network itself.

Here some additional information that might be useful.

ifconfig ath0

Code:

ath0      Link encap:Ethernet  HWaddr 00:13:46:6F:0A:C1 
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1619 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8022 (7.8 Kb)  TX bytes:153068 (149.4 Kb)

iwconfig ath0
Code:

ath0      IEEE 802.11g  ESSID:"dinosaur"  Nickname:""
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1D:7E:98:20:E7   
          Bit Rate:36 Mb/s   Tx-Power:18 dBm   Sensitivity=1/1 
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=10/70  Signal level=-84 dBm  Noise level=-94 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


iwlist scan

Code:
 
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wifi0     Interface doesn't support scanning.

ath0      Scan completed :
          Cell 01 - Address: 00:1D:7E:98:20:E7
                    ESSID:"dinosaur"
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Quality=10/70  Signal level=-85 dBm  Noise level=-95 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
                              24 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:wme_ie=dd180050f2020101000003a4000027a4000042435e0062322f00
          Cell 02 - Address: 00:0F:B3:21:2E:35
                    ESSID:""
                    Mode:Master
                    Frequency:2.452 GHz (Channel 9)
                    Quality=8/70  Signal level=-87 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s;


Relevant information from lspci -v

Code:
01:08.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
        Subsystem: D-Link System Inc D-Link AirPlus DWL-G520 Wireless PCI Adapter(rev.B)
        Flags: bus master, medium devsel, latency 168, IRQ 21
        Memory at e7000000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [44] Power Management version 2
        Kernel driver in use: ath_pci
        Kernel modules: ath_pci


Relevant information from dmesg

Code:
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.9.4
ath_pci: 0.9.4
ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
ACPI: PCI Interrupt 0000:01:08.0[A] -> Link [APC3] -> GSI 18 (level, high) -> IRQ 21
ath_rate_sample: 1.2 (0.9.4)
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: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 7.9 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=0xe7000000, irq=21


If anyone has any ideas it would really help.

Thanks in advance,

billspork
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Mar 14, 2008 12:46 am    Post subject: Re: Atheros / Madwifi problems with new router Reply with quote

billspork wrote:
When I try to bring up my routing table I get :
Code:

localhost bill # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface


It becomes unresponsive and I have to ctrl-c to get back to my command-line.

It sounds like you are having a DNS problem. Try "route -n" instead, and see if it works without hanging.

Take a look at /etc/resolv.conf to see if you have valid nameserver(s) defined.

... and if your /etc/conf.d/net has something like this, then please get rid of it.
Code:
dhcp_ethx="nodns"
Back to top
View user's profile Send private message
billspork
n00b
n00b


Joined: 17 Aug 2005
Posts: 30

PostPosted: Fri Mar 14, 2008 1:03 am    Post subject: Reply with quote

Thanks for your help. Unfortunately, it doesn't look like any of those suggestions seem to remedy the problem. Here is what my output and configs look like.

route -n gives me this

Code:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 ath0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 ath0


my resolv.conf is

Code:

# Generated by dhcpcd for interface ath0
search hosts.bc1.bresnan.net
nameserver 69.145.248.50
nameserver 69.145.232.4
nameserver 69.145.248.4
nameserver 192.168.1.1


and finally my /etc/conf.d/net looks like

Code:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "dhcp" )
dhcp_eth0="nontp nonis"

preup() {
        if [ "${IFACE}" = "ath0" ]; then
                /sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
                return $?
        fi
}

postdown() {
        if [ "${IFACE}" = "ath0" ]; then
                /sbin/wlanconfig ath0 destroy
                return $?
        fi
}

Back to top
View user's profile Send private message
billspork
n00b
n00b


Joined: 17 Aug 2005
Posts: 30

PostPosted: Fri Mar 14, 2008 3:42 am    Post subject: Reply with quote

I got ambitious and decided to try to connect to my network via Ethernet. Therefore it has to be a problem with my card or settings. Anyone have similar problems?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum