Return-path: Received: from smtp1.u-psud.fr ([129.175.33.41]:60306 "EHLO smtp1.u-psud.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754813Ab3DRGPR (ORCPT ); Thu, 18 Apr 2013 02:15:17 -0400 Message-ID: <516F8F4B.1000504@lri.fr> (sfid-20130418_081537_224757_0858D371) Date: Thu, 18 Apr 2013 08:14:35 +0200 From: Nicolas Cavallari MIME-Version: 1.0 To: Johannes Berg CC: Bing Zhao , linux-netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Stewart Subject: Re: [PATCH] net-sysfs: Add entry for nl80211 interface type References: <1366236369-543-1-git-send-email-bzhao@marvell.com> (sfid-20130418_000709_842159_3005786A) <1366236590.8217.64.camel@jlt4.sipsolutions.net> In-Reply-To: <1366236590.8217.64.camel@jlt4.sipsolutions.net> Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 18/04/2013 00:09, Johannes Berg wrote: > On Wed, 2013-04-17 at 15:06 -0700, Bing Zhao wrote: >> Add a "wireless/nl80211_iftype" entry in the net device sysfs >> file structure to indicate the mode of the wireless device so >> it can be discovered easily from userspace. > > What's wrong with "iw dev", i.e. netlink/nl80211? "Do NOT screenscrape this tool, we don't consider its output stable." So if you are in a shell script, you're basically screwed.