Search Linux Wireless

Re: [PATCH] mac80211: Add num_stations connected in debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I was away the last couple of days and just saw these e-mails. It seems really interesting and helpful, but what if we need to know at runtime the number of stations connected to the AP?
Is the first patch sent good to use? Should I do some modification to it?

Thank you all very much,
Lito


Quoting Mohammed Shafi <mshajakhan@xxxxxxxxxxx> on Mon, 25 Apr 2011 10:00:13 +0530:

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





--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux