Re: struggling with wireless setup

Richard Kennedy <[email protected]> Fri, 28 Mar 2008 10:12:56 +0000
Newsgroups gmane.linux.linux-wlan.user
Message-ID <[email protected]>
Hi,
On Fri, 2008-03-28 at 11:46 +0800, Zhang Weiwu wrote:
> Dear Karl Relton (and everyone)
> 
> Thank you for your help! In fact I think I am too stupid to fight the
> authentication stuff so I take it to the home wireless network, SSID is
> "netgear" and is completely not encrypted. I can directly connect to
> this network without a password by using both SuSE Linux and Windows (on
> a notebook with built-in wireless support) through a graphical user
> interface. The signal quality is good because I am sitting only 5 meters
> away from the AP.
> 
> Now back to test the USB wireless adapter. I tried to use the simplest
> configuration, that is, only change on line in wlan.conf (a.k.a. make
> SSID_wlan0="HBF"), and copy wlancfg-DEFAULT directly to wlancfg-netgear.
> I also made sure the device is properly detected:

If your SSID_wlan0="HBF" then your config file should be called
wlancfg-HBF.

> zhangweiwu@esmeralda:/etc/wlan$ sudo lsusb
> Bus 001 Device 005: ID 413c:8100 Dell Computer Corp. TrueMobile 1180
> 802.11b Adapter
> Bus 001 Device 001: ID 0000:0000 
> 
> and the module was properly loaded
> zhangweiwu@esmeralda:/etc/wlan$ sudo lsmod
> Module                  Size  Used by
> snd_pcm_oss            51264  0
> snd_mixer_oss          20960  1 snd_pcm_oss
> prism2_usb             79404  0
> p80211                 33488  1 prism2_usb
> 
> (note the prism2_usb module was loaded automatically after I plugin the
> device)
> 
Are you getting any useful messages in /var/log/messages ?


> Then I join the network through the most standard way:
> 
> zhangweiwu@esmeralda:/etc/wlan$ sudo /etc/init.d/wlan start
>  * Starting WLAN devices ...
> message=lnxreq_ifstate
>   ifstate=fwload
>   resultcode=success

is the network interface up?
try running ifconfig

> zhangweiwu@esmeralda:/etc/wlan$ sudo dhcpcd -d wlan0
> Info, wlan0: dhcpcd 3.1.5 starting
> Info, wlan0: hardware address = 00:90:4b:60:9c:28
> Info, wlan0: DUID = 00:01:00:01:0f:26:6e:6e:00:0a:95:ea:46:82
> Info, wlan0: broadcasting for a lease
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: waiting on select for 20 seconds
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Debug, wlan0: sending DHCP_DISCOVER with xid 0xf0de86d
> Error, wlan0: timed out
> Info, wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
> Info, wlan0: checking 169.254.127.50 is available on attached networks
> Debug, wlan0: sending ARP probe #1
> Debug, wlan0: sending ARP probe #2
> Debug, wlan0: sending ARP probe #3
> Debug, wlan0: sending ARP claim #1
> Debug, wlan0: sending ARP claim #2
> Info, wlan0: adding IP address 169.254.127.50/16
> Debug, wlan0: no dns information to write
> Debug, wlan0: forking to background

try running iwlist to see if the card has found any networks.

Getting these cards setup the first time can be a bit tricky, so don't
panic.

It does work with udev & NetworkManager if you prefer a GUI to set
things up. You'll have to check your distro to see if NetworkManager is
installed & enabled.

HTH
Cheers
Richard