Monitor mode with WE-16

Bernardo Cabezas Serra bercab
Wed Jan 22 05:03:38 PST 2003


Hello all, 

I have problems while switching to Monitor mode since I upgraded Wireless 
Extensions API to version 16 (with 2.4.20 vanilla kernel).

I'm using hostap from CVS, and my wireless card is a Conceptronic CON11CC. Ah, 
and wireless-tools' version is 26pre7. 

When I try "iwconfig wlan0 mode monitor", I get the following:

-- begin error log ---
[...]
Jan 22 13:15:17 localhost kernel: prism2: wlan0: operating mode changed 2 -> 6
Jan 22 13:15:17 localhost kernel: Enabling monitor mode
Jan 22 13:15:17 localhost kernel: wlan0: LinkStatus=2 (Disconnected)
Jan 22 13:15:17 localhost kernel: wlan0: LinkStatus: BSSID=00:00:00:00:00:00
Jan 22 13:15:17 localhost kernel: wlan0: LinkStatus=2 (Disconnected)
Jan 22 13:15:17 localhost kernel: wlan0: LinkStatus: BSSID=00:50:c2:01:9e:34
Jan 22 13:15:20 localhost kernel: wlan0: hfa384x_cmd: entry still in list? 
(entry=c48827e0, type=0, res=0)
Jan 22 13:15:20 localhost kernel: wlan0: hfa384x_cmd: command was not 
completed (res=0, entry=c48827e0, type=0, cmd=0x0021, param0=0xfd43)
Jan 22 13:15:20 localhost kernel: wlan0: hfa384x_get_rid: CMDCODE_ACCESS 
failed (res=-110, rid=fd43, len=6)
Jan 22 13:15:20 localhost kernel: wlan0: hfa384x_cmd_issue: cmd reg was busy 
for 1000 usec
Jan 22 13:15:20 localhost kernel: wlan0: hfa384x_cmd_issue - timeout - 
reg=0x8000
[...]
-- end error log --

This continues until switching to Managed mode and reseting card (with iwpriv 
wlan0 reset 1) 

Am I doing anythig wrong? 

Another related issue is that almost all aplications have some trouble with 
the new WE API and hostap. For example, "wavemon" submits ioctls with 
".u.data.length" field of struct iwreq to zero, and seems hostap don't like 
it. I've got it runnig by setting length field to the "sizeof" of the data 
pointed to by "iwreq.u.data.poiter" (and the same process for every ioctl in 
wavemon).
Can be considered a bug in wavemon the fact of setting "length" fieds to 0 ?

It seems hard to be "on the edge" ;-)

Tank you very much (and sorry for my poor english)
Regards, 
Bernardo
 
-- 
Bernardo Cabezas




More information about the Hostap mailing list