2002-10-12 monitor mode

Jouni Malinen jkmaline at cc.hut.fi
Tue Dec 10 22:54:07 EST 2002


On Tue, Dec 10, 2002 at 10:48:45AM -0500, Min Li wrote:

> >From the mailing list archive, I found that Jouni Malinen's reply about
> the bug in exisiting 2002-10-12 version for monitor mode configuration. Is
> there any way to fix the bug right now? Thanks

Update to the latest CVS version or do apply following patch:

--- hostap_ioctl.c      16 Nov 2002 07:01:57 -0000      1.19
+++ hostap_ioctl.c      27 Nov 2002 02:50:51 -0000      1.20
@@ -2374,8 +2374,9 @@ static int prism2_ioctl_priv_monitor(str
                        local->monitor_type = PRISM2_MONITOR_PRISM;
                        break;
                }
-               mode = IW_MODE_MASTER;
+               mode = IW_MODE_MONITOR;
                ret = prism2_ioctl_siwmode(dev, NULL, &mode, NULL);
+               hostap_monitor_mode_enable(local);
        } else
                ret = -EINVAL;
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list