* Monitor mode with RTL8187
@ 2007-07-09 21:51 Jorge Lucángeli Obes
2007-07-10 5:21 ` Andy Green
0 siblings, 1 reply; 6+ messages in thread
From: Jorge Lucángeli Obes @ 2007-07-09 21:51 UTC (permalink / raw)
To: linux-wireless
Hi all,
I've come into possession of a RTL8187-based wireless USB adapter
(Encore ENUWI-G2). I am trying the new RTL8187 driver in wireless-dev
GIT. The question is: does this driver support monitor mode?
tamsyn@rory:~$ sudo iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Device or resource busy.
Any clues? Please CC me as I'm not subscribed to the list. Thanks in advance.
Jorge
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Monitor mode with RTL8187
2007-07-09 21:51 Monitor mode with RTL8187 Jorge Lucángeli Obes
@ 2007-07-10 5:21 ` Andy Green
2007-07-10 8:07 ` Stefan Schweizer
0 siblings, 1 reply; 6+ messages in thread
From: Andy Green @ 2007-07-10 5:21 UTC (permalink / raw)
To: Jorge Lucángeli Obes; +Cc: linux-wireless
Jorge Luc=E1ngeli Obes wrote:
> Hi all,
> I've come into possession of a RTL8187-based wireless USB adapter
> (Encore ENUWI-G2). I am trying the new RTL8187 driver in wireless-dev
> GIT. The question is: does this driver support monitor mode?
>=20
> tamsyn@rory:~$ sudo iwconfig wlan0 mode monitor
> Error for wireless request "Set Mode" (8B06) :
> SET failed on device wlan0 ; Device or resource busy.
>=20
> Any clues? Please CC me as I'm not subscribed to the list. Thanks in
> advance.
mac80211 needs you to bring the interface down before changing the mode
ifconfig wlan0 down
Then after changing the mode, bring it up and set the channel.
-Andy
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Monitor mode with RTL8187
2007-07-10 5:21 ` Andy Green
@ 2007-07-10 8:07 ` Stefan Schweizer
2007-07-10 8:50 ` Michael Buesch
2007-07-10 10:14 ` Andy Green
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Schweizer @ 2007-07-10 8:07 UTC (permalink / raw)
To: linux-wireless
Andy Green wrote:
> ifconfig wlan0 down
>
> Then after changing the mode, bring it up and set the channel.
why can it not do that automatically when issueing the mode monitor command?
Seems usability has not yet reached wireless configuration - where it is imo
much needed.
-Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Monitor mode with RTL8187
2007-07-10 8:07 ` Stefan Schweizer
@ 2007-07-10 8:50 ` Michael Buesch
2007-07-10 23:02 ` Johannes Berg
2007-07-10 10:14 ` Andy Green
1 sibling, 1 reply; 6+ messages in thread
From: Michael Buesch @ 2007-07-10 8:50 UTC (permalink / raw)
To: Stefan Schweizer; +Cc: linux-wireless
On Tuesday 10 July 2007 10:07:02 Stefan Schweizer wrote:
> Andy Green wrote:
> > ifconfig wlan0 down
> >
> > Then after changing the mode, bring it up and set the channel.
>
> why can it not do that automatically when issueing the mode monitor command?
>
> Seems usability has not yet reached wireless configuration - where it is imo
> much needed.
ehm, setting the mode means setting the mode. Not bringing the device
up, changing channels or something like that.
The time where some wireless config commands magically trigger unrelated
events (ESSID setting triggers assoc) is over, with the advent of cfg80211.
And that is _good_.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Monitor mode with RTL8187
2007-07-10 8:07 ` Stefan Schweizer
2007-07-10 8:50 ` Michael Buesch
@ 2007-07-10 10:14 ` Andy Green
1 sibling, 0 replies; 6+ messages in thread
From: Andy Green @ 2007-07-10 10:14 UTC (permalink / raw)
To: Stefan Schweizer; +Cc: linux-wireless
Stefan Schweizer wrote:
> Andy Green wrote:
>> ifconfig wlan0 down
>>
>> Then after changing the mode, bring it up and set the channel.
>
> why can it not do that automatically when issueing the mode monitor command?
>
> Seems usability has not yet reached wireless configuration - where it is imo
> much needed.
It's really a userspace issue... libpcap could be given the primitives
so tcpdump or whatever can set the mode and bring the interface up.
On the same subject, why is scanning done by a separate app (iwlist)
from iwconfig? Why is scanning specially modal in the stack (or even
worse the device firmware) when there are enough primitives lying around
to do it from userspace? I guess the answer is it got started like that
and now people are using it that way changing is harder.
BTW apropos of nothing let me note that the try #13 injection patches
apply to current wireless-dev with only a single fuzz, and are available
right here:
[PATCH Try#lucky13 1/3] mac80211: Monitor mode radiotap injection docs
http://www.spinics.net/lists/linux-wireless/msg03055.html
[PATCH Try#lucky13 2/3] cfg80211: Radiotap parser
http://www.spinics.net/lists/linux-wireless/msg03056.html
[PATCH Try#lucky13 3/3] mac80211: Monitor mode radiotap-based packet
injection
http://www.spinics.net/lists/linux-wireless/msg03054.html
-Andy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Monitor mode with RTL8187
2007-07-10 8:50 ` Michael Buesch
@ 2007-07-10 23:02 ` Johannes Berg
0 siblings, 0 replies; 6+ messages in thread
From: Johannes Berg @ 2007-07-10 23:02 UTC (permalink / raw)
To: Michael Buesch; +Cc: Stefan Schweizer, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
On Tue, 2007-07-10 at 10:50 +0200, Michael Buesch wrote:
> > Seems usability has not yet reached wireless configuration - where it is imo
> > much needed.
>
> ehm, setting the mode means setting the mode. Not bringing the device
> up, changing channels or something like that.
> The time where some wireless config commands magically trigger unrelated
> events (ESSID setting triggers assoc) is over, with the advent of cfg80211.
> And that is _good_.
Seconded. usability ≠ magic, I'd go as far as saying that magic excludes
usability. also, usability ∉ kernel :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-11 9:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 21:51 Monitor mode with RTL8187 Jorge Lucángeli Obes
2007-07-10 5:21 ` Andy Green
2007-07-10 8:07 ` Stefan Schweizer
2007-07-10 8:50 ` Michael Buesch
2007-07-10 23:02 ` Johannes Berg
2007-07-10 10:14 ` Andy Green
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).