* [RFC] make wext wireless bits optional and deprecate them
@ 2008-05-17 12:12 Johannes Berg
[not found] ` <1211026337.3827.25.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-17 13:45 ` Marcel Holtmann
0 siblings, 2 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-17 12:12 UTC (permalink / raw)
To: netdev; +Cc: Jean Tourrilhes, linux-wireless, Linux Kernel list
The /sys/class/net/*/wireless/ direcory is, as far as I know, not
used by anyone. Additionally, the same data is available via wext
ioctls. Hence the sysfs files are pretty much useless. This patch
makes them optional and schedules them for removal.
Signed-off-by: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Cc: Jean Tourrilhes <jt-sDzT885Ts8HQT0dZR+AlfA@public.gmane.org>
---
Documentation/feature-removal-schedule.txt | 8 ++++++++
net/core/net-sysfs.c | 4 ++--
net/wireless/Kconfig | 11 +++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
--- everything.orig/net/core/net-sysfs.c 2008-05-17 13:22:21.000000000 +0200
+++ everything/net/core/net-sysfs.c 2008-05-17 13:23:43.000000000 +0200
@@ -318,7 +318,7 @@ static struct attribute_group netstat_gr
.attrs = netstat_attrs,
};
-#ifdef CONFIG_WIRELESS_EXT
+#ifdef CONFIG_WIRELESS_EXT_SYSFS
/* helper function that does all the locking etc for wireless stats */
static ssize_t wireless_show(struct device *d, char *buf,
ssize_t (*format)(const struct iw_statistics *,
@@ -460,7 +460,7 @@ int netdev_register_kobject(struct net_d
if (net->get_stats)
*groups++ = &netstat_group;
-#ifdef CONFIG_WIRELESS_EXT
+#ifdef CONFIG_WIRELESS_EXT_SYSFS
if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)
*groups++ = &wireless_group;
#endif
--- everything.orig/net/wireless/Kconfig 2008-05-17 13:22:21.000000000 +0200
+++ everything/net/wireless/Kconfig 2008-05-17 14:09:01.000000000 +0200
@@ -29,3 +29,14 @@ config WIRELESS_EXT
Say N (if you can) unless you know you need wireless
extensions for external modules.
+
+config WIRELESS_EXT_SYSFS
+ bool "Wireless extensions sysfs files"
+ default y
+ depends on WIRELESS_EXT && SYSFS
+ help
+ This option enables the deprecated wireless statistics
+ files in /sys/class/net/*/wireless/. The same information
+ is available via the ioctls as well.
+
+ Say Y if you have programs using it (we don't know of any).
--- everything.orig/Documentation/feature-removal-schedule.txt 2008-05-17 13:22:20.000000000 +0200
+++ everything/Documentation/feature-removal-schedule.txt 2008-05-17 14:08:37.000000000 +0200
@@ -304,3 +304,11 @@ When: 2.6.26
Why: Implementation became generic; users should now include
linux/semaphore.h instead.
Who: Matthew Wilcox <willy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
+
+---------------------------
+
+What: Code that is now under CONFIG_WIRELESS_EXT_SYSFS
+ (in net/core/net-sysfs.c)
+When: June 2009
+Why: Not used by anyone, over 1K .text/.data size reduction.
+Who: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211026337.3827.25.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2008-05-17 12:16 ` Johannes Berg
0 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-17 12:16 UTC (permalink / raw)
To: netdev; +Cc: Jean Tourrilhes, linux-wireless, Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 75 bytes --]
Umm, wrong subject, should be
"make wext sysfs bits [...]"
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-17 12:12 [RFC] make wext wireless bits optional and deprecate them Johannes Berg
[not found] ` <1211026337.3827.25.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2008-05-17 13:45 ` Marcel Holtmann
[not found] ` <CD993362-B1DE-4E4D-8A5B-E9E2AD7DA04C-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
1 sibling, 1 reply; 17+ messages in thread
From: Marcel Holtmann @ 2008-05-17 13:45 UTC (permalink / raw)
To: Johannes Berg; +Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
Hi Johannes,
> The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> used by anyone. Additionally, the same data is available via wext
> ioctls. Hence the sysfs files are pretty much useless. This patch
> makes them optional and schedules them for removal.
it is used by HAL to classify WiFi network cards as net.80211 instead
of net.80203 and so we do have an actual user. However HAL only tests
for the existence of the directory wireless/.
Please fix HAL first before submitting such a patch.
Regards
Marcel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <CD993362-B1DE-4E4D-8A5B-E9E2AD7DA04C-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
@ 2008-05-17 13:54 ` Johannes Berg
2008-05-17 14:36 ` Marcel Holtmann
[not found] ` <1211032475.6252.2.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-20 17:15 ` Johannes Berg
1 sibling, 2 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-17 13:54 UTC (permalink / raw)
To: Marcel Holtmann
Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
On Sat, 2008-05-17 at 15:45 +0200, Marcel Holtmann wrote:
> Hi Johannes,
>
> > The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> > used by anyone. Additionally, the same data is available via wext
> > ioctls. Hence the sysfs files are pretty much useless. This patch
> > makes them optional and schedules them for removal.
>
> it is used by HAL to classify WiFi network cards as net.80211 instead
> of net.80203 and so we do have an actual user. However HAL only tests
> for the existence of the directory wireless/.
Oh, ok, I didn't know that, thanks.
> Please fix HAL first before submitting such a patch.
Sure, I'll take a look at that.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-17 13:54 ` Johannes Berg
@ 2008-05-17 14:36 ` Marcel Holtmann
[not found] ` <31B1A5D6-8E8B-4148-860F-326FEEE5A3EE-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
[not found] ` <1211032475.6252.2.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
1 sibling, 1 reply; 17+ messages in thread
From: Marcel Holtmann @ 2008-05-17 14:36 UTC (permalink / raw)
To: Johannes Berg; +Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
Hi Johannes,
>>> The /sys/class/net/*/wireless/ direcory is, as far as I know, not
>>> used by anyone. Additionally, the same data is available via wext
>>> ioctls. Hence the sysfs files are pretty much useless. This patch
>>> makes them optional and schedules them for removal.
>>
>> it is used by HAL to classify WiFi network cards as net.80211 instead
>> of net.80203 and so we do have an actual user. However HAL only tests
>> for the existence of the directory wireless/.
>
> Oh, ok, I didn't know that, thanks.
>
>> Please fix HAL first before submitting such a patch.
>
> Sure, I'll take a look at that.
saw your patch. Looks good to me. However what do we do with the non-
mac80211 drivers that are using WEXT directly. These should be
detected as net.80211, too.
Regards
Marcel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <31B1A5D6-8E8B-4148-860F-326FEEE5A3EE-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
@ 2008-05-17 14:42 ` Johannes Berg
0 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-17 14:42 UTC (permalink / raw)
To: Marcel Holtmann
Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
On Sat, 2008-05-17 at 16:36 +0200, Marcel Holtmann wrote:
> Hi Johannes,
>
> >>> The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> >>> used by anyone. Additionally, the same data is available via wext
> >>> ioctls. Hence the sysfs files are pretty much useless. This patch
> >>> makes them optional and schedules them for removal.
> >>
> >> it is used by HAL to classify WiFi network cards as net.80211 instead
> >> of net.80203 and so we do have an actual user. However HAL only tests
> >> for the existence of the directory wireless/.
> >
> > Oh, ok, I didn't know that, thanks.
> >
> >> Please fix HAL first before submitting such a patch.
> >
> > Sure, I'll take a look at that.
>
> saw your patch. Looks good to me. However what do we do with the non-
> mac80211 drivers that are using WEXT directly. These should be
> detected as net.80211, too.
Yes, this was just a bigfix while I was looking at the code, I'll look
into that too :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211032475.6252.2.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2008-05-18 13:36 ` Dan Williams
[not found] ` <1211117795.686.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
0 siblings, 1 reply; 17+ messages in thread
From: Dan Williams @ 2008-05-18 13:36 UTC (permalink / raw)
To: Johannes Berg
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
On Sat, 2008-05-17 at 15:54 +0200, Johannes Berg wrote:
> On Sat, 2008-05-17 at 15:45 +0200, Marcel Holtmann wrote:
> > Hi Johannes,
> >
> > > The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> > > used by anyone. Additionally, the same data is available via wext
> > > ioctls. Hence the sysfs files are pretty much useless. This patch
> > > makes them optional and schedules them for removal.
> >
> > it is used by HAL to classify WiFi network cards as net.80211 instead
> > of net.80203 and so we do have an actual user. However HAL only tests
> > for the existence of the directory wireless/.
>
> Oh, ok, I didn't know that, thanks.
>
> > Please fix HAL first before submitting such a patch.
>
> Sure, I'll take a look at that.
Instead of testing for wireless/, best thing would probably be to call
SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
wireless. Some drivers may have to load firmware to figure out
supported rates and encryption capabilities, but to be honest, NM does
this to detect wireless devices and I haven't run into any issues in 4
years using it. If there are issues with drivers, then we need to fix
the driver too.
dan
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211117795.686.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2008-05-19 12:16 ` Johannes Berg
2008-05-19 15:24 ` Dan Williams
2008-05-19 17:01 ` Jean Tourrilhes
0 siblings, 2 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-19 12:16 UTC (permalink / raw)
To: Dan Williams
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
> Instead of testing for wireless/, best thing would probably be to call
> SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> wireless. Some drivers may have to load firmware to figure out
> supported rates and encryption capabilities, but to be honest, NM does
> this to detect wireless devices and I haven't run into any issues in 4
> years using it. If there are issues with drivers, then we need to fix
> the driver too.
I was about to propose calling SIOCGIWNAME since that is what
wireless-tools do and that linux/wireless.h indicates.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-19 12:16 ` Johannes Berg
@ 2008-05-19 15:24 ` Dan Williams
[not found] ` <1211210686.12187.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-05-19 17:03 ` Jean Tourrilhes
2008-05-19 17:01 ` Jean Tourrilhes
1 sibling, 2 replies; 17+ messages in thread
From: Dan Williams @ 2008-05-19 15:24 UTC (permalink / raw)
To: Johannes Berg
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
On Mon, 2008-05-19 at 14:16 +0200, Johannes Berg wrote:
> > Instead of testing for wireless/, best thing would probably be to call
> > SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> > wireless. Some drivers may have to load firmware to figure out
> > supported rates and encryption capabilities, but to be honest, NM does
> > this to detect wireless devices and I haven't run into any issues in 4
> > years using it. If there are issues with drivers, then we need to fix
> > the driver too.
>
> I was about to propose calling SIOCGIWNAME since that is what
> wireless-tools do and that linux/wireless.h indicates.
Hmm; NAME is pretty useless. That's fine to do, I guess WEXT requires
that NAME return _something_ at least. NAME should never ever be used
for anything more, but since wireless-tools appears to do this that's
fine.
Dan
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211210686.12187.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2008-05-19 15:39 ` Johannes Berg
[not found] ` <1211211547.6252.54.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
0 siblings, 1 reply; 17+ messages in thread
From: Johannes Berg @ 2008-05-19 15:39 UTC (permalink / raw)
To: Dan Williams
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]
On Mon, 2008-05-19 at 11:24 -0400, Dan Williams wrote:
> On Mon, 2008-05-19 at 14:16 +0200, Johannes Berg wrote:
> > > Instead of testing for wireless/, best thing would probably be to call
> > > SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> > > wireless. Some drivers may have to load firmware to figure out
> > > supported rates and encryption capabilities, but to be honest, NM does
> > > this to detect wireless devices and I haven't run into any issues in 4
> > > years using it. If there are issues with drivers, then we need to fix
> > > the driver too.
> >
> > I was about to propose calling SIOCGIWNAME since that is what
> > wireless-tools do and that linux/wireless.h indicates.
>
> Hmm; NAME is pretty useless. That's fine to do, I guess WEXT requires
> that NAME return _something_ at least. NAME should never ever be used
> for anything more, but since wireless-tools appears to do this that's
> fine.
Yes, I realise it is completely useless, but wext seems to require that
it be implemented. RANGE would work as well but typically has much more
complexity in the kernel.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211211547.6252.54.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2008-05-19 15:53 ` Dan Williams
0 siblings, 0 replies; 17+ messages in thread
From: Dan Williams @ 2008-05-19 15:53 UTC (permalink / raw)
To: Johannes Berg
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
On Mon, 2008-05-19 at 17:39 +0200, Johannes Berg wrote:
> On Mon, 2008-05-19 at 11:24 -0400, Dan Williams wrote:
> > On Mon, 2008-05-19 at 14:16 +0200, Johannes Berg wrote:
> > > > Instead of testing for wireless/, best thing would probably be to call
> > > > SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> > > > wireless. Some drivers may have to load firmware to figure out
> > > > supported rates and encryption capabilities, but to be honest, NM does
> > > > this to detect wireless devices and I haven't run into any issues in 4
> > > > years using it. If there are issues with drivers, then we need to fix
> > > > the driver too.
> > >
> > > I was about to propose calling SIOCGIWNAME since that is what
> > > wireless-tools do and that linux/wireless.h indicates.
> >
> > Hmm; NAME is pretty useless. That's fine to do, I guess WEXT requires
> > that NAME return _something_ at least. NAME should never ever be used
> > for anything more, but since wireless-tools appears to do this that's
> > fine.
>
> Yes, I realise it is completely useless, but wext seems to require that
> it be implemented. RANGE would work as well but typically has much more
> complexity in the kernel.
Yup; NAME's better for this even though it's useless.
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-19 12:16 ` Johannes Berg
2008-05-19 15:24 ` Dan Williams
@ 2008-05-19 17:01 ` Jean Tourrilhes
1 sibling, 0 replies; 17+ messages in thread
From: Jean Tourrilhes @ 2008-05-19 17:01 UTC (permalink / raw)
To: Johannes Berg
Cc: Dan Williams, Marcel Holtmann, netdev, Jean Tourrilhes,
linux-wireless, Linux Kernel list
On Mon, May 19, 2008 at 02:16:08PM +0200, Johannes Berg wrote:
>
> > Instead of testing for wireless/, best thing would probably be to call
> > SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> > wireless. Some drivers may have to load firmware to figure out
> > supported rates and encryption capabilities, but to be honest, NM does
> > this to detect wireless devices and I haven't run into any issues in 4
> > years using it. If there are issues with drivers, then we need to fix
> > the driver too.
>
> I was about to propose calling SIOCGIWNAME since that is what
> wireless-tools do and that linux/wireless.h indicates.
>
> johannes
Yes, using SIOCGIWNAME is the right way to do it, it's the
only ioctl that is guarantee to always be present and require minimal
processing from the driver (it should be a static string). If you look
at iwconfig, this is how it does it.
(Sorry for the delay replying, I was chasing kids and
electrical faults this week end).
Have fun...
Jean
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-19 15:24 ` Dan Williams
[not found] ` <1211210686.12187.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2008-05-19 17:03 ` Jean Tourrilhes
1 sibling, 0 replies; 17+ messages in thread
From: Jean Tourrilhes @ 2008-05-19 17:03 UTC (permalink / raw)
To: Dan Williams
Cc: Johannes Berg, Marcel Holtmann, netdev, Jean Tourrilhes,
linux-wireless, Linux Kernel list
On Mon, May 19, 2008 at 11:24:46AM -0400, Dan Williams wrote:
> On Mon, 2008-05-19 at 14:16 +0200, Johannes Berg wrote:
> > > Instead of testing for wireless/, best thing would probably be to call
> > > SIOCGIWRANGE on the device and if it returns EOPNOTSUP then it's not
> > > wireless. Some drivers may have to load firmware to figure out
> > > supported rates and encryption capabilities, but to be honest, NM does
> > > this to detect wireless devices and I haven't run into any issues in 4
> > > years using it. If there are issues with drivers, then we need to fix
> > > the driver too.
> >
> > I was about to propose calling SIOCGIWNAME since that is what
> > wireless-tools do and that linux/wireless.h indicates.
>
> Hmm; NAME is pretty useless. That's fine to do, I guess WEXT requires
> that NAME return _something_ at least. NAME should never ever be used
> for anything more, but since wireless-tools appears to do this that's
> fine.
>
> Dan
It's not useless, it's supposed to tell you about the protocol
capability of the device, like "IEEE 802.11b" or "IEEE 802.11abg".
Have fun...
Jean
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <CD993362-B1DE-4E4D-8A5B-E9E2AD7DA04C-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2008-05-17 13:54 ` Johannes Berg
@ 2008-05-20 17:15 ` Johannes Berg
2008-05-20 17:28 ` Marcel Holtmann
[not found] ` <1211303731.6252.105.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
1 sibling, 2 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-20 17:15 UTC (permalink / raw)
To: Marcel Holtmann
Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
On Sat, 2008-05-17 at 15:45 +0200, Marcel Holtmann wrote:
> Hi Johannes,
>
> > The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> > used by anyone. Additionally, the same data is available via wext
> > ioctls. Hence the sysfs files are pretty much useless. This patch
> > makes them optional and schedules them for removal.
>
> it is used by HAL to classify WiFi network cards as net.80211 instead
> of net.80203 and so we do have an actual user. However HAL only tests
> for the existence of the directory wireless/.
>
> Please fix HAL first before submitting such a patch.
I have filed a patch to fix HAL to use the canonical SIOCGIWNAME at
https://bugs.freedesktop.org/show_bug.cgi?id=16037. Any further
objections to this patch?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-20 17:15 ` Johannes Berg
@ 2008-05-20 17:28 ` Marcel Holtmann
[not found] ` <1211303731.6252.105.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
1 sibling, 0 replies; 17+ messages in thread
From: Marcel Holtmann @ 2008-05-20 17:28 UTC (permalink / raw)
To: Johannes Berg; +Cc: netdev, Jean Tourrilhes, linux-wireless, Linux Kernel list
Hi Johannes,
>>> The /sys/class/net/*/wireless/ direcory is, as far as I know, not
>>> used by anyone. Additionally, the same data is available via wext
>>> ioctls. Hence the sysfs files are pretty much useless. This patch
>>> makes them optional and schedules them for removal.
>>
>> it is used by HAL to classify WiFi network cards as net.80211 instead
>> of net.80203 and so we do have an actual user. However HAL only tests
>> for the existence of the directory wireless/.
>>
>> Please fix HAL first before submitting such a patch.
>
> I have filed a patch to fix HAL to use the canonical SIOCGIWNAME at
> https://bugs.freedesktop.org/show_bug.cgi?id=16037. Any further
> objections to this patch?
patch looks good to me.
Regards
Marcel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
[not found] ` <1211303731.6252.105.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2008-05-21 21:03 ` John W. Linville
2008-05-21 21:37 ` Johannes Berg
0 siblings, 1 reply; 17+ messages in thread
From: John W. Linville @ 2008-05-21 21:03 UTC (permalink / raw)
To: Johannes Berg
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
On Tue, May 20, 2008 at 07:15:31PM +0200, Johannes Berg wrote:
> On Sat, 2008-05-17 at 15:45 +0200, Marcel Holtmann wrote:
> > Hi Johannes,
> >
> > > The /sys/class/net/*/wireless/ direcory is, as far as I know, not
> > > used by anyone. Additionally, the same data is available via wext
> > > ioctls. Hence the sysfs files are pretty much useless. This patch
> > > makes them optional and schedules them for removal.
> >
> > it is used by HAL to classify WiFi network cards as net.80211 instead
> > of net.80203 and so we do have an actual user. However HAL only tests
> > for the existence of the directory wireless/.
> >
> > Please fix HAL first before submitting such a patch.
>
> I have filed a patch to fix HAL to use the canonical SIOCGIWNAME at
> https://bugs.freedesktop.org/show_bug.cgi?id=16037. Any further
> objections to this patch?
I think this is going to fall under the "userland ABI" category.
We can make it a configurable option, but I don't think we are free
to remove it completely since there is at least existing versions of
HAL that use it.
John
--
John W. Linville
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] make wext wireless bits optional and deprecate them
2008-05-21 21:03 ` John W. Linville
@ 2008-05-21 21:37 ` Johannes Berg
0 siblings, 0 replies; 17+ messages in thread
From: Johannes Berg @ 2008-05-21 21:37 UTC (permalink / raw)
To: John W. Linville
Cc: Marcel Holtmann, netdev, Jean Tourrilhes, linux-wireless,
Linux Kernel list
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
> > I have filed a patch to fix HAL to use the canonical SIOCGIWNAME at
> > https://bugs.freedesktop.org/show_bug.cgi?id=16037. Any further
> > objections to this patch?
>
> I think this is going to fall under the "userland ABI" category.
> We can make it a configurable option, but I don't think we are free
> to remove it completely since there is at least existing versions of
> HAL that use it.
Well, yes, I gave it a year in the feature removal schedule since I
thought nobody was actually using it. But if you look at how hal/sysfs
are always dependent on new versions of each other *anyway*, I think we
can get away with removing this in maybe two years time, and
distributors can unset the option if they know their hal is new enough?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2008-05-21 21:43 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 12:12 [RFC] make wext wireless bits optional and deprecate them Johannes Berg
[not found] ` <1211026337.3827.25.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-17 12:16 ` Johannes Berg
2008-05-17 13:45 ` Marcel Holtmann
[not found] ` <CD993362-B1DE-4E4D-8A5B-E9E2AD7DA04C-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2008-05-17 13:54 ` Johannes Berg
2008-05-17 14:36 ` Marcel Holtmann
[not found] ` <31B1A5D6-8E8B-4148-860F-326FEEE5A3EE-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2008-05-17 14:42 ` Johannes Berg
[not found] ` <1211032475.6252.2.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-18 13:36 ` Dan Williams
[not found] ` <1211117795.686.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-05-19 12:16 ` Johannes Berg
2008-05-19 15:24 ` Dan Williams
[not found] ` <1211210686.12187.6.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-05-19 15:39 ` Johannes Berg
[not found] ` <1211211547.6252.54.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-19 15:53 ` Dan Williams
2008-05-19 17:03 ` Jean Tourrilhes
2008-05-19 17:01 ` Jean Tourrilhes
2008-05-20 17:15 ` Johannes Berg
2008-05-20 17:28 ` Marcel Holtmann
[not found] ` <1211303731.6252.105.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-05-21 21:03 ` John W. Linville
2008-05-21 21:37 ` 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).