Return-path: Received: from mail-ee0-f46.google.com ([74.125.83.46]:32932 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404Ab2KQKc7 (ORCPT ); Sat, 17 Nov 2012 05:32:59 -0500 MIME-Version: 1.0 In-Reply-To: References: <1352795227.9466.8.camel@jlt4.sipsolutions.net> <1353098137.9490.20.camel@jlt4.sipsolutions.net> <1353098204.9490.21.camel@jlt4.sipsolutions.net> <1353098379.9490.22.camel@jlt4.sipsolutions.net> From: Julian Calaby Date: Sat, 17 Nov 2012 21:32:37 +1100 Message-ID: (sfid-20121117_113418_652108_43EDC36E) Subject: Re: removal of sysfs wext extension broke on F16 To: Sven-Haegar Koch Cc: Johannes Berg , Linus Torvalds , Dave Airlie , John Linville , LKML , Bill Nottingham , linux-wireless@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Sven, On Sat, Nov 17, 2012 at 9:32 AM, Sven-Haegar Koch wrote: > On Fri, 16 Nov 2012, Johannes Berg wrote: > >> On Fri, 2012-11-16 at 21:36 +0100, Johannes Berg wrote: >> > On Fri, 2012-11-16 at 21:35 +0100, Johannes Berg wrote: >> > > On Fri, 2012-11-16 at 10:20 -0800, Linus Torvalds wrote: >> > > > On Tue, Nov 13, 2012 at 12:27 AM, Johannes Berg >> > > > wrote: >> > > > > >> > > > > Should I revert it and send it in my next pull request? >> > > > >> > > > Please do. Or perhaps we could just add the directory back, without >> > > > the actual entries, if that is sufficient.. >> > > >> > > Yeah, that does seem to be sufficient, I'll queue up the patch below. >> > >> > Err, no, wishful thinking. I need a *little* bit more for sysfs to work. >> >> This works, sorry about that. > >> +#if IS_ENABLED(CONFIG_WIRELESS_EXT) || IS_ENABLED(CONFIG_CFG80211) >> +static struct attribute *wireless_attrs[] = { >> + NULL >> +}; >> + >> +static struct attribute_group wireless_group = { >> + .name = "wireless", >> + .attrs = wireless_attrs, >> +}; >> +#endif >> #endif /* CONFIG_SYSFS */ >> > > How about a small comment in the source why it is there? I suppose > otherwise in a year or two someone will find it, see "WTF? Useless > empty directory?" and try to remove it again... Hopefully by then Fedora's networking scripts won't need it =) Thanks, -- Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/