* 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