* Fwd: [ipw3945-devel] Monitor mode on boot
[not found] ` <69e28c910805160703j4fef73e8x2c357f91d4b43ea5@mail.gmail.com>
@ 2008-05-16 14:04 ` Stefanik Gábor
2008-05-16 14:28 ` Stefanik Gábor
2008-05-16 15:08 ` John W. Linville
2 siblings, 0 replies; 8+ messages in thread
From: Stefanik Gábor @ 2008-05-16 14:04 UTC (permalink / raw)
To: linux-wireless
Oops... linux-wireless doesn't accept HTML.
---------- Forwarded message ----------
=46rom: Stefanik G=E1bor <netrolller.3d@gmail.com>
Date: Fri, May 16, 2008 at 4:03 PM
Subject: Re: [ipw3945-devel] Monitor mode on boot
To: Martin Dubuc <martind1111@gmail.com>
Cc: ipw3945-devel@lists.sourceforge.net, linux-wireless@vger.kernel.org
On Fri, May 16, 2008 at 3:27 PM, Martin Dubuc <martind1111@gmail.com> w=
rote:
>
> You are right pointing out that it is possible to perform monitor mod=
e configuration using startup scripts. However, to fit nicely in existi=
ng frameworks, such as the ones available from Fedora, it would be nice=
that the driver be enhanced. Madwifi allows users to put a configurati=
on like this one in the modprobe.conf.:
>
> options ath_pci autocreate=3Dmonitor
>
> The nice thing about such a configuration is that it decouples the de=
vice type configuration from the interface management function. One doe=
s not need to worry which interface (wlan0, wlan1, wlan2, etc.) a devic=
e will come up on, the system configures any device of a given type usi=
ng a common set of configuration. For systems that have only one Wi-Fi =
device, your method is as good as this one, but for systems that have m=
ore than one Wi-Fi device, some of them coming off and on while the sys=
tem is running, possibly using different interface names, the modprobe.=
conf solution is better.
>
> Martin
This might better be done in the stack, rather than the driver. This
way, all drivers would get this functionality. CCing the
linux-wireless mailing list.
Also, since an userspace solution might be preferred by Linville and
the other wireless maintainers, it might be wise to add an "aggregate
device" or a "supermaster" which can be targeted by iw so that all
devices governed by that driver get a new interface.
Alternatively, a script can be made that creates a monitor interface
on monX or rtapX for all wmasterX devices. This is equivalent to
madwifi's solution, except that it's userspace, which is preferred
now.
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
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] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
[not found] ` <69e28c910805160703j4fef73e8x2c357f91d4b43ea5@mail.gmail.com>
2008-05-16 14:04 ` Fwd: [ipw3945-devel] Monitor mode on boot Stefanik Gábor
@ 2008-05-16 14:28 ` Stefanik Gábor
2008-05-16 14:30 ` Stefanik Gábor
2008-05-16 15:08 ` John W. Linville
2 siblings, 1 reply; 8+ messages in thread
From: Stefanik Gábor @ 2008-05-16 14:28 UTC (permalink / raw)
To: Martin Dubuc; +Cc: ipw3945-devel, linux-wireless
On Fri, May 16, 2008 at 4:03 PM, Stefanik G=E1bor <netrolller.3d@gmail.=
com> wrote:
> On Fri, May 16, 2008 at 3:27 PM, Martin Dubuc <martind1111@gmail.com>=
wrote:
>>
>> You are right pointing out that it is possible to perform monitor mo=
de
>> configuration using startup scripts. However, to fit nicely in exist=
ing
>> frameworks, such as the ones available from Fedora, it would be nice=
that
>> the driver be enhanced. Madwifi allows users to put a configuration =
like
>> this one in the modprobe.conf.:
>>
>> options ath_pci autocreate=3Dmonitor
>>
>> The nice thing about such a configuration is that it decouples the d=
evice
>> type configuration from the interface management function. One does =
not need
>> to worry which interface (wlan0, wlan1, wlan2, etc.) a device will c=
ome up
>> on, the system configures any device of a given type using a common =
set of
>> configuration. For systems that have only one Wi-Fi device, your met=
hod is
>> as good as this one, but for systems that have more than one Wi-Fi d=
evice,
>> some of them coming off and on while the system is running, possibly=
using
>> different interface names, the modprobe.conf solution is better.
>>
>> Martin
>
>
> This might better be done in the stack, rather than the driver. This =
way,
> all drivers would get this functionality. CCing the linux-wireless ma=
iling
> list.
> Also, since an userspace solution might be preferred by Linville and =
the
> other wireless maintainers, it might be wise to add an "aggregate dev=
ice" or
> a "supermaster" which can be targeted by iw so that all devices gover=
ned by
> that driver get a new interface.
> Alternatively, a script can be made that creates a monitor interface =
on monX
> or rtapX for all wmasterX devices. This is equivalent to madwifi's so=
lution,
> except that it's userspace, which is preferred now.
>
> --
> Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
BTW, here is a script that automatically creates a "monX" interface
for every "wmasterX" master device it encounters:
#!/bin/sh
for a in $(iwconfig 2>&1 | grep wmaster | sed -e 's/wmaster//' | cut -b=
1); do
iw dev wmaster$a interface add mon$a type monitor
ifconfig mon$a up
done
--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
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] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
2008-05-16 14:28 ` Stefanik Gábor
@ 2008-05-16 14:30 ` Stefanik Gábor
0 siblings, 0 replies; 8+ messages in thread
From: Stefanik Gábor @ 2008-05-16 14:30 UTC (permalink / raw)
To: Martin Dubuc; +Cc: ipw3945-devel, linux-wireless
On Fri, May 16, 2008 at 4:28 PM, Stefanik G=E1bor <netrolller.3d@gmail.=
com> wrote:
> On Fri, May 16, 2008 at 4:03 PM, Stefanik G=E1bor <netrolller.3d@gmai=
l.com> wrote:
>> On Fri, May 16, 2008 at 3:27 PM, Martin Dubuc <martind1111@gmail.com=
> wrote:
>>>
>>> You are right pointing out that it is possible to perform monitor m=
ode
>>> configuration using startup scripts. However, to fit nicely in exis=
ting
>>> frameworks, such as the ones available from Fedora, it would be nic=
e that
>>> the driver be enhanced. Madwifi allows users to put a configuration=
like
>>> this one in the modprobe.conf.:
>>>
>>> options ath_pci autocreate=3Dmonitor
>>>
>>> The nice thing about such a configuration is that it decouples the =
device
>>> type configuration from the interface management function. One does=
not need
>>> to worry which interface (wlan0, wlan1, wlan2, etc.) a device will =
come up
>>> on, the system configures any device of a given type using a common=
set of
>>> configuration. For systems that have only one Wi-Fi device, your me=
thod is
>>> as good as this one, but for systems that have more than one Wi-Fi =
device,
>>> some of them coming off and on while the system is running, possibl=
y using
>>> different interface names, the modprobe.conf solution is better.
>>>
>>> Martin
>>
>>
>> This might better be done in the stack, rather than the driver. This=
way,
>> all drivers would get this functionality. CCing the linux-wireless m=
ailing
>> list.
>> Also, since an userspace solution might be preferred by Linville and=
the
>> other wireless maintainers, it might be wise to add an "aggregate de=
vice" or
>> a "supermaster" which can be targeted by iw so that all devices gove=
rned by
>> that driver get a new interface.
>> Alternatively, a script can be made that creates a monitor interface=
on monX
>> or rtapX for all wmasterX devices. This is equivalent to madwifi's s=
olution,
>> except that it's userspace, which is preferred now.
>>
>> --
>> Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-=
)
>
> BTW, here is a script that automatically creates a "monX" interface
> for every "wmasterX" master device it encounters:
>
> #!/bin/sh
> for a in $(iwconfig 2>&1 | grep wmaster | sed -e 's/wmaster//' | cut =
-b 1); do
> iw dev wmaster$a interface add mon$a type monitor
> ifconfig mon$a up
> done
>
> --
> Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
>
Oops... this is enough:
#!/bin/sh
for a in $(iwconfig 2>&1 | grep wmaster | cut -b 8); do
iw dev wmaster$a interface add mon$a type monitor
ifconfig mon$a up
done
--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
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] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
[not found] ` <69e28c910805160703j4fef73e8x2c357f91d4b43ea5@mail.gmail.com>
2008-05-16 14:04 ` Fwd: [ipw3945-devel] Monitor mode on boot Stefanik Gábor
2008-05-16 14:28 ` Stefanik Gábor
@ 2008-05-16 15:08 ` John W. Linville
[not found] ` <7a0107ba0805160906r4bfcd09ch6e550b929e3bd21d@mail.gmail.com>
2 siblings, 1 reply; 8+ messages in thread
From: John W. Linville @ 2008-05-16 15:08 UTC (permalink / raw)
To: Stefanik Gábor; +Cc: Martin Dubuc, linux-wireless, ipw3945-devel
On Fri, May 16, 2008 at 04:03:15PM +0200, Stefanik G=E1bor wrote:
> On Fri, May 16, 2008 at 3:27 PM, Martin Dubuc <martind1111@gmail.com>=
wrote:
>=20
> > You are right pointing out that it is possible to perform monitor m=
ode
> > configuration using startup scripts. However, to fit nicely in exis=
ting
> > frameworks, such as the ones available from Fedora, it would be nic=
e that
> > the driver be enhanced. Madwifi allows users to put a configuration=
like
> > this one in the modprobe.conf.:
> >
> > options ath_pci autocreate=3Dmonitor
> >
> > The nice thing about such a configuration is that it decouples the =
device
> > type configuration from the interface management function. One does=
not need
> > to worry which interface (wlan0, wlan1, wlan2, etc.) a device will =
come up
> > on, the system configures any device of a given type using a common=
set of
> > configuration. For systems that have only one Wi-Fi device, your me=
thod is
> > as good as this one, but for systems that have more than one Wi-Fi =
device,
> > some of them coming off and on while the system is running, possibl=
y using
> > different interface names, the modprobe.conf solution is better.
> >
> > Martin
> >
> >
> This might better be done in the stack, rather than the driver. This =
way,
> all drivers would get this functionality. CCing the linux-wireless ma=
iling
> list.
In general I think we would like to avoid module options, especially
in cases where the userland equivalent is easily accomplished.
But if this is truly warranted it would make more sense to put it
into mac80211 than into an individual driver.
Why would you want to automatically create several monitor interfaces
on the same box? Won't this usually be more-or-less redundant?
> Also, since an userspace solution might be preferred by Linville and =
the
> other wireless maintainers, it might be wise to add an "aggregate dev=
ice" or
> a "supermaster" which can be targeted by iw so that all devices gover=
ned by
> that driver get a new interface.
Gack! The last thing I would want to see is more magical netdevs
with mysterious purposes...
> Alternatively, a script can be made that creates a monitor interface =
on monX
> or rtapX for all wmasterX devices. This is equivalent to madwifi's so=
lution,
> except that it's userspace, which is preferred now.
The scripts later in the thread seem simple enough. Do they suffice?
John
--=20
John W. Linville
linville@tuxdriver.com
--
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] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
[not found] ` <7a0107ba0805160906r4bfcd09ch6e550b929e3bd21d@mail.gmail.com>
@ 2008-05-16 16:16 ` Stefanik Gábor
[not found] ` <7a0107ba0805160926ib7cc07er57c00054dec238e@mail.gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Stefanik Gábor @ 2008-05-16 16:16 UTC (permalink / raw)
To: Martin Dubuc; +Cc: John W. Linville, linux-wireless, ipw3945-devel
On Fri, May 16, 2008 at 6:06 PM, Martin Dubuc <martind1111@gmail.com> wrote:
> John,
>
> I do not believe the script later in the thread will suffice. As far as I
> can understand, the script will create one interface in monitor mode for
> each wmasterX (which is good), but the system will also bring up one managed
> mode interfaces in parallel for each wmasterX. In my use case, I only want
> an interface of device type X to come up in monitor mode and I don't want a
> managed mode interface created in parallel.
>
> I need to create multiple monitor interfaces on the same box because my
> application dedicates interfaces for the capture of traffic on specific
> channels.
>
> Martin
Why is the existence of managed interfaces a problem? Unlike madwifi,
mac80211 really supports multiple interfaces on one device.
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
[not found] ` <7a0107ba0805160926ib7cc07er57c00054dec238e@mail.gmail.com>
@ 2008-05-16 16:40 ` Stefanik Gábor
[not found] ` <7a0107ba0805160948j3ca21a85v1b5fce8ddca23ac9@mail.gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Stefanik Gábor @ 2008-05-16 16:40 UTC (permalink / raw)
To: Martin Dubuc; +Cc: John W. Linville, linux-wireless, ipw3945-devel
On Fri, May 16, 2008 at 6:26 PM, Martin Dubuc <martind1111@gmail.com> wrote:
> My application uses some of the Wi-Fi interfaces strictly for survey
> purposes and in these cases, there is no need to connect to any access point
> on the same wmasterX. To maximize resource usage, I would like to avoid to
> have managed interface created for these interfaces.
>
> Martin
This script should do it:
#!/bin/sh
for b in $(find /sys/class/net/*/* -name phy80211 | grep -v wmaster |
sed -e 's/\/phy80211//' | sed -e 's/\/sys\/class\/net\///'); do
iw dev $b interface del
done
for a in $(iwconfig 2>&1 | grep wmaster | sed -e 's/wmaster//' | cut -b 1); do
iw dev wmaster$a interface add mon$a type monitor
ifconfig mon$a up
done
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
[not found] ` <7a0107ba0805160948j3ca21a85v1b5fce8ddca23ac9@mail.gmail.com>
@ 2008-05-16 17:27 ` John W. Linville
2008-05-16 20:24 ` Johannes Berg
0 siblings, 1 reply; 8+ messages in thread
From: John W. Linville @ 2008-05-16 17:27 UTC (permalink / raw)
To: Martin Dubuc; +Cc: Stefanik Gábor, linux-wireless, ipw3945-devel
On Fri, May 16, 2008 at 12:48:26PM -0400, Martin Dubuc wrote:
> This would solve the boot up issue, but probably not the case where
> interfaces are added after the system is booted up (USB or PCI cards that
> can be hot plugged).
udev?
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ipw3945-devel] Monitor mode on boot
2008-05-16 17:27 ` John W. Linville
@ 2008-05-16 20:24 ` Johannes Berg
0 siblings, 0 replies; 8+ messages in thread
From: Johannes Berg @ 2008-05-16 20:24 UTC (permalink / raw)
To: John W. Linville
Cc: Martin Dubuc, Stefanik Gábor, linux-wireless, ipw3945-devel
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
On Fri, 2008-05-16 at 13:27 -0400, John W. Linville wrote:
> On Fri, May 16, 2008 at 12:48:26PM -0400, Martin Dubuc wrote:
> > This would solve the boot up issue, but probably not the case where
> > interfaces are added after the system is booted up (USB or PCI cards that
> > can be hot plugged).
>
> udev?
Yeah, I was just about to suggest the same. Learn how to use userspace
tools, we're not going to do it in the kernel no matter how much you
cry :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-16 20:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <7a0107ba0805151404o778a09ddj522fffa3edbeec6@mail.gmail.com>
[not found] ` <69e28c910805160316q7c1b869an7fd554979ea260b8@mail.gmail.com>
[not found] ` <7a0107ba0805160627l55f53b04r69a32e1bba36ecb6@mail.gmail.com>
[not found] ` <69e28c910805160703j4fef73e8x2c357f91d4b43ea5@mail.gmail.com>
2008-05-16 14:04 ` Fwd: [ipw3945-devel] Monitor mode on boot Stefanik Gábor
2008-05-16 14:28 ` Stefanik Gábor
2008-05-16 14:30 ` Stefanik Gábor
2008-05-16 15:08 ` John W. Linville
[not found] ` <7a0107ba0805160906r4bfcd09ch6e550b929e3bd21d@mail.gmail.com>
2008-05-16 16:16 ` Stefanik Gábor
[not found] ` <7a0107ba0805160926ib7cc07er57c00054dec238e@mail.gmail.com>
2008-05-16 16:40 ` Stefanik Gábor
[not found] ` <7a0107ba0805160948j3ca21a85v1b5fce8ddca23ac9@mail.gmail.com>
2008-05-16 17:27 ` John W. Linville
2008-05-16 20:24 ` Johannes Berg
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).