Scanning results while not associated

Milan Plzik <[email protected]> Mon, 21 Aug 2006 20:53:09 +0200
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <1156186389.1909.103.camel@localhost>
  Hello,

  I would like to ask if it is possible to get any scanning results when
the wifi adapter is not associated. Scanning with unassociated card
always returns:

wlan0     Interface doesn't support scanning : Device or resource busy
 
  when I enable debugging, it seems that the card permanently scans for
the networks and attempts to associate (but this fails because of
missing WEP key). I can even see name of my network in logs, but still,
scanning using wext/wireless-tools just doesn't work. Dmesg output
follows (homenet is my local network; output repeats many times):

at76c503.c: 0xc724eba0: bssid 00:13:10:15:42:d7 channel 1 ssid homenet
(686F6D656E6574) capa x0411 rates 82 84 8B 96 24 30 48 6C rssi 23 link 0
noise 0
at76c503.c: wlan0: state 1 -> 6 (JOINING)
at76c503.c: wlan0: bss table entry c724eba0: requires encryption
at76c503.c: wlan0 find_matching_bss: returned 00000000
at76c503.c: wlan0: state 6 -> 1 (SCANNING)
at76c503.c: wlan0: start_scan (use_essid = 0, intl = 0, channel = 10,
probe_delay = 10000, scan_min_time = 10, scan_max_time = 120)
at76c503.c: wlan0 handle_mgmt_timeout_scan:2047 got cmd_status 0 (istate
1, scan_runs 2)
at76c503.c: wlan0 handle_mgmt_timeout_scan:2047 got cmd_status 8 (istate
1, scan_runs 2)
at76c503.c: wlan0 handle_mgmt_timeout_scan:2047 got cmd_status 1 (istate
1, scan_runs 2)
at76c503.c: wlan0 BSS table (curr=00000000, new=00000000):
at76c503.c: 0xc724eba0: bssid 00:13:10:15:42:d7 channel 1 ssid homenet
(686F6D656E6574) capa x0411 rates 82 84 8B 96 24 30 48 6C rssi 22 link 0
noise 0
at76c503.c: wlan0: start_scan (use_essid = 1, intl = 0, channel = 10,
probe_delay = 10000, scan_min_time = 10, scan_max_time = 120)
at76c503.c: wlan0 handle_mgmt_timeout_scan:2047 got cmd_status 0 (istate
1, scan_runs 3)

  The problem occurs on ARM PDA (hp ipaq h5550), Familiar linux with
standard handhelds.org kernel (I don't have informations about applied
patches). Informations from driver:

at76c503-fw_skel.c: using compiled-in firmware
at76c503.c: $Id: at76c503.c,v 1.74 2005/03/08 01:33:14 jal2 Exp $
compiled Jul 24 2006 19:43:33
at76c503.c: firmware version 0.100.5 #41 (fcs_len 4)
at76c503.c: device's MAC 00:02:8a:fc:c2:16, regulatory domain MKK1
(Japan) (id 65)
at76c503.c: registered wlan0

  If anyone knows what could be the problem, please let me know. I would
like also try actual snapshot, but I have not yet managed to get
cross-compilation environment to work successfully enough for kernel
module compilation.

  Best regards,
	Milan Plzik