Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936494Ab3DRTDV (ORCPT ); Thu, 18 Apr 2013 15:03:21 -0400 Received: from na3sys009aog123.obsmtp.com ([74.125.149.149]:40194 "EHLO na3sys009aog123.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753969Ab3DRTDU convert rfc822-to-8bit (ORCPT ); Thu, 18 Apr 2013 15:03:20 -0400 From: Bing Zhao To: Marcel Holtmann CC: "linux-netdev@vger.kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Paul Stewart Date: Thu, 18 Apr 2013 12:03:02 -0700 Subject: RE: [PATCH] net-sysfs: Add entry for nl80211 interface type Thread-Topic: [PATCH] net-sysfs: Add entry for nl80211 interface type Thread-Index: Ac47vojpsm3icznpRxSxh0mQrV6SIQAp8JFw Message-ID: <477F20668A386D41ADCC57781B1F70430D9E05713A@SC-VEXCH1.marvell.com> References: <1366236369-543-1-git-send-email-bzhao@marvell.com> <0156C538-4175-47E9-B667-C2127CBEF3EB@holtmann.org> In-Reply-To: <0156C538-4175-47E9-B667-C2127CBEF3EB@holtmann.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 834 Lines: 31 Hi Marcel, > Hi Bing, > > > 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. > > I do question a little bit the usefulness for this one. > It would only work on netdev and on wdev devices. It's true. That's why the new sysfs entry is added in the 'wireless' placeholder. /sys/class/net/ethX/wireless/ For non-wireless dev, this won't apply. Thanks, Bing > Using nl80211 to discover this information seems a lot better approach. > > Regards > > Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/