Return-path: Received: from mail-ia0-f172.google.com ([209.85.210.172]:61118 "EHLO mail-ia0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752084Ab3DVNzB (ORCPT ); Mon, 22 Apr 2013 09:55:01 -0400 Received: by mail-ia0-f172.google.com with SMTP id i20so1257325ian.17 for ; Mon, 22 Apr 2013 06:55:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1366637397.8637.7.camel@jlt4.sipsolutions.net> References: <1366236369-543-1-git-send-email-bzhao@marvell.com> <1366236590.8217.64.camel@jlt4.sipsolutions.net> <1366637397.8637.7.camel@jlt4.sipsolutions.net> Date: Mon, 22 Apr 2013 06:55:00 -0700 Message-ID: (sfid-20130422_155532_039243_7309015A) Subject: Re: [PATCH] net-sysfs: Add entry for nl80211 interface type From: Paul Stewart To: Johannes Berg Cc: Bing Zhao , linux-netdev@vger.kernel.org, linux-wireless , LKML Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Apr 22, 2013 at 6:29 AM, Johannes Berg wrote: > > On Wed, 2013-04-17 at 15:14 -0700, Paul Stewart wrote: > > I believe the documents for "iw" state explicitly that we shouldn't > > screen-scrape it? > > Well, you specifically control your system. I'd also be happy to add > some (maybe a bit hidden) commands to print out _just_ the (numeric) > type, to aid scripting? No need. I already made the necessary changes in userspace to switch to nl80211 to retrieve the iftype. Both Bing and I are done proselytizing at this point. :-) > > All I'm trying to say with that though is that > you shouldn't rely on specific output formatting, particularly not with > scan results and "iw list" etc. > > johannes > >