LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 05-13-2005, 02:15 PM   #1
lutece
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
wireless works in XP, finds no APs in linux


Hi,

I have an an Acer laptop (Gentoo, kernel 2.6.9) with wifi card: Ethernet controller: Linksys, A Division of Cisco Systems [AirConn] INPROCOMM IPN 2220 Wireless LAN Adapter (rev 01)
I'm trying to connect to a Belkin Modem/Router/Access Point combo box with SSID set to "lilas".

I have succesfully connected to it with windoze, so I can vouch for the hardware and the fact that the access point is in range.

I've tried using iwconfig on its own, and I've tried using wpa_supplicant.
Either way, when I scan for access points, it doesn't find anything (or times out).
I hqve been trying for days now to get this link up and I think I might be about to lose my marbles.
Can anyone out there make sense of this?

The access point is set to broadcast it's ESSID, with WPA-PSK with TKIP, On Channel 1, with no MAC or IP filtering.

I have ndiswrapper installed and running with a windows driver:

ndiswrapper -l
Installed ndis drivers:
neti2220 driver present, hardware present

Output from ifconfig:

wlan0 Link encap:Ethernet HWaddr 00:0E:9B:9F:52:6A
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)
Memory:c8214800-c8214fff

Output from iwconfig:

wlan0 IEEE 802.11g ESSIDff/any
Mode:Managed Channel:0 Access Point: 00:00:00:00:00:00
Bit Rate:1 Mb/s Tx-Power:0 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:7423-1248-4D55-EED4-0BB5-DF0C-3F Security mode:restricted
Power Managementff
Link Quality:100/100 Signal level:56/154 Noise level:0/154
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

in /etc/wpa_supplicant.conf:

network={
ssid="lilas"
psk="xxxxxxxx"
group=TKIP
key_mgmt=WPA-PSK
proto=WPA
priority=5
}

when i run wpa_supplicant -i wlan0 -D ndiswrapper -c /etc/wpa_supplicant.conf -d:

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 5
id=0 ssid='lilas'
Initializing interface (2) 'wlan0'
Own MAC address: 00:0e:9b:9f:52:6a
Setting scan request: 0 sec 100000 usec
Wireless event: cmd=0x8b06 len=8
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 5
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 5
No suitable AP found.
Setting scan request: 5 sec 0 usec

cat /proc/net/ndiswrapper/wlan0/settings:
hangcheck_interval=3
Ssid=
RtsThreshold=2347
Rate=65295
PowerMode=0
NetworkAddress=
FragThreshold=2346
Channel=1
BssType=1
BasicRate=2
AdHocMode=0
ndis_version=INPROCOMM,11/04/2004,3.03.11.2004
mac_address=XX:XX:XX:XX:XX:XX
BusType=5
Environment=1
NdisVersion=0x50001

cat /proc/net/ndiswrapper/wlan0/hw:
beacon_period=0 msec
atim_window=0 msec
frequency=0 kHZ
hop_pattern=0
hop_set=0
dwell_time=0 msec
tx_power=1 mW
bit_rate=1000 kBps
rts_threshold=2347 bytes
frag_threshold=2346 bytes
power_mode=always_on
num_antennas=2
tx_antenna=0
rx_antenna=4294967295
 
Old 05-13-2005, 06:10 PM   #2
pengy666
Member
 
Registered: Apr 2004
Location: somerset,england
Distribution: KATONIX !!!
Posts: 48

Rep: Reputation: 15
im not no super user in linux but it looks like you havent got dhcp running and you havent got a ssid set either, these are key elements to connect to your router or internet/network point, but like i said tell me to shut up if i chatting crap, but i can see this via your iwconfig the access point is 00:00:00:00:00 (i seen it somewhere but i suspect thats why!) so it aint finding access point to connect to

and it doesnt say dhcp=yes on your wpa_suppliant.conf


i got mine working sweet just i have to initialise both of these after startup or i get same output as you

hope this helps

robin

Last edited by pengy666; 05-13-2005 at 06:13 PM.
 
Old 05-13-2005, 07:50 PM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
You need to set the ssid (iwconfig wlan0 essid lilas) then promptly run wpa_supplicant.
 
Old 05-14-2005, 10:46 AM   #4
lutece
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your input...
Here's the problem, if i run

iwconfig wlan0 essid lilas

it just flatly ignores me. when i run iwconfig again, it still says essid: off/any

i do have dhcpcd running, and adding dhcp=yes to wpa_supplicant results in an "error in configuration" when running wpa_supplicant
 
Old 05-16-2005, 08:01 AM   #5
rjkfsm
Member
 
Registered: Apr 2004
Location: Charleston, SC
Distribution: Debian, Gentoo, Knoppix & DSL
Posts: 122

Rep: Reputation: 15
I recommend killing your WPA security long enough to set up the card, then re-enable it.

A short while ago, I had problems connecting to an AP that was using WEP. I'm a Windoze admin and I'm getting better at Linux, so I'm not exactly a newbie, but this one problem had me tearing my hair out. Why? Because one digit in the key was off.

You should also setup all your settings in the /etc/network/interfaces card. I've attached mine as an example. By doing this, you can edit it with your setup, then use "ifdown -a" and "ifup -a" to implement them, plus the settings will be loaed whenever you boot up.

RK

# The primary network interface
auto wlan0
iface wlan0 inet static
address 192.168.1.4
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.2
dns-search mshome
wireless_mode managed
wireless_essid NETGEAR
wireless_channel 11
wireless_key1 C13ACD5067D93435D44FDB7D5E
wireless_key2 C13ACD5067D93435D44FDB7D5E
wireless_key3 C13ACD5067D93435D44FDB7D5E
wireless_key4 C13ACD5067D93435D44FDB7D5E
wireless_defaultkey 1
wireless_keymode restricted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I view wireless APs and connect to one? Brnzwngs Linux - Wireless Networking 1 07-26-2005 09:40 AM
Wireless Card that Works with Linux? 07mackenzie Slackware 15 07-16-2005 07:30 PM
YUM finds 4 updates while up2date finds 29? guest Linux - Newbie 3 03-15-2005 10:01 PM
wireless finds ip address but cant see the network markhod Linux - Hardware 1 11-11-2003 09:32 PM
Gaim 0.71: pkg-config finds 2.2.3, ./configure finds 2.2.1 GreenPenInc Linux - Software 3 10-23-2003 09:00 PM


All times are GMT -5. The time now is 10:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration