Click to See Complete Forum and Search --> : can't setup wireless on netgear wg311t on gentoo with madwifi-ng


eskiled
01-05-2006, 09:09 PM
[WARNING: Double posted from the Gentoo Forums (http://forums.gentoo.org/viewtopic-t-419448.html), from which I recieved not replies]
I'm trying to get wireless going with a netgear wg311t and a netgear wgr624, 128-bit WEP key 588BB076FD5D9A26899******* on a gentoo 2005.1 machine. I am following http://www.madwifi.org/wiki/UserDocs/FirstTimeHowTo
eskiled@claw~ $ uname -a
Linux claw 2.6.14-gentoo-r2 #13 SMP Thu Dec 29 22:53:48 EST 2005 x86_64 AMD Athlon(tm) 64 Processor 3700+ AuthenticAMD GNU/Linux

eskiled@claw~$ svn checkout http://svn.madwifi.org/trunk madwifi-ng
$cd madwifi-ng
$make
$su root
#make install
#modprobe ath_pci
# lsmod
Module Size Used by
ath_pci 88104 0
ath_rate_sample 13440 1 ath_pci
wlan 178864 3 ath_pci,ath_rate_sample
ath_hal 225264 3 ath_pci,ath_rate_sample
nvidia 4852720 0
s2io 49544 0
dcdbas 9272 0
# /usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
ath0
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

wifi0 no wireless extensions.

Warning: Driver for device ath0 has been compiled with version 19
of Wireless Extension, while this program supports up to version 17.
Some things may be broken...

ath0 IEEE 802.11b ESSID:""
Mode:Managed Channel:0 Access Point: 00:00:00:00:00:00
Bit Rate:0 kb/s Tx-Power:50 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# modprobe wlan_scan_sta
# lsmod
Module Size Used by
wlan_scan_sta 14592 0
ath_pci 88104 0
ath_rate_sample 13440 1 ath_pci
wlan 178864 4 wlan_scan_sta,ath_pci,ath_rate_sample
ath_hal 225264 3 ath_pci,ath_rate_sample
nvidia 4852720 0
s2io 49544 0
dcdbas 9272 0
#ifconfig ath0 up
# /usr/local/bin/wlanconfig ath0 list scan
SSID BSSID CHAN RATE S:N INT CAPS
atheros 00:14:6c:1d:40:84 11 54M 70:0 100 ESs WME ATH
PCX5000 DR 00:02:2d:8a:52:a6 10 11M 7:0 100 E
# iwlist ath0 scan
Warning: Driver for device ath0 has been compiled with version 19
of Wireless Extension, while this program supports up to version 17.
Some things may be broken...

ath0 Scan completed :
Cell 01 - Address: 00:14:6C:1D:40:84
ESSID:"atheros"
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=70/94 Signal level=-25 dBm Noise level=-95 dBm
Encryption key:on
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Bit Rate:11 Mb/s
Bit Rate:6 Mb/s
Bit Rate:12 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:9 Mb/s
Bit Rate:18 Mb/s
Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Extra:wme_ie=dd180050f2020101000003a4000027a400004 2435e0062322f00
Extra:ath_ie=dd0900037f0101000eff7f
Cell 02 - Address: 00:02:2D:8A:52:A6
ESSID:"PCX5000 DR"
Mode:Master
Frequency:2.457 GHz (Channel 10)
Quality=7/94 Signal level=-88 dBm Noise level=-95 dBm
Encryption key:off
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Bit Rate:11 Mb/s
Extra:bcn_int=100

# iwconfig ath0 essid "atheros"
# iwconfig ath0 ap 00:14:6C:1D:40:84
#dhcpcd ath0
# iwconfig ath0 key 588BB076FD5D9A26899*******
Error for wireless request "Set Encode" (8B2A) :
SET failed on device ath0 ; Invalid argument.

* At this point I searched around and found this: http://www.madwifi.org/wiki/UserDocs/Troubleshooting ("When trying to configure WEP encryiption, iwconfig complains about "invalid arguement". What's wrong?") It suggested the following:*
#modprobe wlan_wep
#
# iwconfig ath0 key "s:588BB076FD5D9A26899*******"
Error for wireless request "Set Encode" (8B2A) :
SET failed on device ath0 ; Invalid argument.
# iwconfig ath0 key 588BB076FD5D9A26899*******

* At this point I could think of no other way to test the connection then unplugging the ethernet cord (eth0), from a gateway machine, and trying to ping google.com or something, so thats what i did:*
#ping google.com
(waited for a minute for so, and nothing happened...)
#ifconfig ath0 up
#ifconfig
ath0 Link encap:Ethernet HWaddr 00:0F:B5:83:A3:D2
inet6 addr: fe80::20f:b5ff:fe83:a3d2/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:140 (140.0 b)

eth0 Link encap:Ethernet HWaddr 00:14:2A:0D:B3:11
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::214:2aff:fe0d:b311/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6569 errors:0 dropped:0 overruns:0 frame:0
TX packets:4395 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7618662 (7.2 Mb) TX bytes:468332 (457.3 Kb)
Interrupt:177 Base address:0xe000

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:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:526 (526.0 b) TX bytes:526 (526.0 b)

wifi0 Link encap:UNSPEC HWaddr 00-0F-B5-83-A3-D2-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4617 errors:0 dropped:0 overruns:0 frame:9237
TX packets:3459 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:619751 (605.2 Kb) TX bytes:168859 (164.9 Kb)
Interrupt:209 Memory:ffffc200000e0000-ffffc200000f0000
#ping google.com
(wait a minute, nothing happens...)

So if anyone has any ideas as to how to get my wireless up I would really appreciate the feedback.
Thanks
eskiled

cybertron
01-06-2006, 01:54 PM
A couple of comments: You may want to try emerging a newer version of wireless-tools, possibly even ~arch if necessary to get rid of the version mismatch warning. Second, I would try it without WEP and see if that works. At least then you'll know where to start looking for problems.

Also, if there's nothing in madwifi-ng that you need, maybe try just emerging the madwifi drivers in Portage. I'm not sure they've got the -ng version yet, but the old version should work too and has been better tested at this point.

eskiled
01-06-2006, 04:23 PM
Well I have wireless-tools 27-r1, which is the latest version in portage. However I am emerging portage's madwifi-driver and madwifi-tools as we speak, and I'll post back after some experimentation. Thanks for the help so far :).

<edit> okay now it really doesn't work heh, this is what i did:
emerge madwifi-driver
emerge madwifi-tools

cp /etc/init.d/net.eth0 /etc/init.d/net.ath0
modprobe ath_hal
modprobe ath_pci
modprobe wlan
echo "ath_hal" >> /etc/modules.autoload.d/kernel-2.6
echo "ath_pci" >> /etc/modules.autoload.d/kernel-2.6
echo "wlan" >> /etc/modules.autoload.d/kernel-2.6
iwconfig ath0 essid atheros
iwconfig ath0 key MY128BITWEPKEY
iwconfig ath0 channel 11
/etc/init.d/net.ath0 start
* Starting ath0
* Configuring wireless network for ath0
* Couldn't associate with any access points on ath0
* Failed to configure wireless for ath0

Any more suggestions?

nikodell
01-06-2006, 07:17 PM
I have this card running from a kernel module I do not rember the specifics any more but I rember not getting the card up with madwifi and having to rebuild kernel with support.
not near that computer but you may want to search google sorry I cannot help more rt now

eskiled
01-06-2006, 07:27 PM
thanks i'll google that. if anyone thinks they know what nikodell is talking about please let me know. thanks again :) ...

eskiled
01-06-2006, 11:26 PM
My dumb mistake as always :D. I didn't have my /etc/conf.d/wireless set up properly. I simply created that file and configured it to my connection:

essid_ath0="atheros"
channel_ath0="11"


I'll probably try to set up WEP or WPA soon, so I'll definatley be back :). Thanks for all the help.
eskiled