Return-path: Received: from mail.atheros.com ([12.19.149.2]:55693 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712Ab1DYEab (ORCPT ); Mon, 25 Apr 2011 00:30:31 -0400 Received: from mail.atheros.com ([10.234.20.104]) by sidewinder.atheros.com for ; Sun, 24 Apr 2011 21:30:04 -0700 Message-ID: <4DB4F8D5.1060108@atheros.com> (sfid-20110425_063045_233865_73282E42) Date: Mon, 25 Apr 2011 10:00:13 +0530 From: Mohammed Shafi MIME-Version: 1.0 To: Johannes Berg CC: Mohammed Shajakhan , "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" , "L.Kriara@sms.ed.ac.uk" Subject: Re: [PATCH] mac80211: Add num_stations connected in debugfs References: <1303646133-2809-1-git-send-email-mshajakhan@atheros.com> <1303652185.3603.0.camel@jlt3.sipsolutions.net> <4DB4318F.6070801@atheros.com> <1303657150.3603.1.camel@jlt3.sipsolutions.net> <4DB4415F.2070707@atheros.com> <1303659120.3603.3.camel@jlt3.sipsolutions.net> In-Reply-To: <1303659120.3603.3.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sunday 24 April 2011 09:02 PM, Johannes Berg wrote: > On Sun, 2011-04-24 at 20:57 +0530, Mohammed Shafi wrote: > >> On Sunday 24 April 2011 08:29 PM, Johannes Berg wrote: >> >>> iw wlan0 station dump | grep ... | wc -l >>> >> thanks, that works! I need to divide by 11 :) >> > Heh, yes, but that might change and/or be HW dependent, hence grep. So > if you do > > iw wlan0 station dump | grep '^Station ' | wc -l > > you won't need to divide and won't be HW dependent. > Oh ok, thanks! regards, shafi > johannes > >