Monitor mode not working for iwi(4) on 7.X

Bernhard Schmidt bschmidt at freebsd.org
Wed Oct 20 17:15:21 UTC 2010


2010/10/20 Alexey Dokuchaev <danfe at freebsd.org>:
> On Tue, Oct 19, 2010 Bernhard Schmidt wrote:
>> Alexey Dokuchaev <danfe at freebsd.org> wrote:
>> > Not sure if this is a driver or ifconfig(8) problem, but after I -mediaopt
>> > monitor, ifconfig(8) still reports it in media line:
>> >
>> >     media: IEEE 802.11 Wireless Ethernet autoselect <monitor>
>> >
>> > However, as I said, scan list gets populated, which suggests ifconfig(8)
>> > is getting something wrong. Doing -mediaopt monitor the second time
>> > "knocks" ifconfig(8) though.
>>
>> I can't reproduce that on my stable/7 setup, neither in 'UP' nor in 'DOWN'
>> state. Can you post the exact command sequence you've used? The output
>> differs though..
>>
>> # ifconfig iwi0 mediaopt monitor
>> # ifconfig iwi0 up
>> # ifconfig iwi0 | grep media
>>     media: IEEE 802.11 Wireless Ethernet autoselect (autoselect <monitor>)
>> # ifconfig iwi0 -mediaopt monitor
>> # ifconfig iwi0 | grep media
>>     media: IEEE 802.11 Wireless Ethernet autoselect
>
> This scenario works.  But try it out after aircrack-ng tools, which set
> (P)PROMISC mode on the card (and do not clear it after exit, but in my
> understanding this should not affect monitor mode and its indication, no?).

Correct.

# kldload if_iwi
# aireplay-ng -9 iwi0
# ifconfig iwi0
iwi0: flags=28943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC>
metric 0 mtu 1500
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect <monitor>)
# ifconfig iwi0 -mediaopt monitor
# ifconfig iwi0
iwi0: flags=28943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC>
metric 0 mtu 1500
        media: IEEE 802.11 Wireless Ethernet autoselect
#

hmm.. looks correct to me, am I doing something wrong?

--
Bernhard


More information about the freebsd-net mailing list