From 0351182d21b23718cb091464b3ad176829abbe38 Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Wed, 2 Jan 2013 01:08:34 +0100
Subject: [PATCH] hostap plugin update

---
 hostap | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hostap b/hostap
index c504770..0b62c02 100755
--- a/hostap
+++ b/hostap
@@ -9,7 +9,7 @@ if [ "$1" = "config" ]; then
     echo "graph_title Hostapd status"
     echo "graph_info This graph shows the status of stations connected to the wlan."
     echo "graph_category hostapd"
-    echo "graph_order numsta numstanonerp numstanoshortslottime numstanoshortpreamble cauth cassoc cauthorized"
+    echo "graph_order numsta numstanonerp numstanoshortslottime numstanoshortpreamble cauth cassoc cauthorized cshopre cwmm"
     echo "graph_printf %.0lf"
     echo "graph_scale no"
     echo "graph_args -l 0"
@@ -27,6 +27,10 @@ if [ "$1" = "config" ]; then
     echo "cassoc.draw LINE2"
     echo "cauthorized.label Clients authorized"
     echo "cauthorized.draw LINE2"
+    echo "cshopre.label Clients SHORT_PREAMBLE"
+    echo "cshopre.draw LINE2"
+    echo "cwmm.label Clients wmm"
+    echo "cwmm.draw LINE2"
     exit 0
 fi
 
@@ -36,5 +40,7 @@ head -n3 /tmp/hostapd.dump | tail -n2 | sed -e 's/ /\n/g' -e 's/_//g' -e 's/=/.v
 echo "cauth.value $(grep '\[AUTH\]' /tmp/hostapd.dump | wc -l)"
 echo "cassoc.value $(grep '\[ASSOC\]' /tmp/hostapd.dump | wc -l)"
 echo "cauthorized.value $(grep '\[AUTHORIZED\]' /tmp/hostapd.dump | wc -l)"
+echo "cshopre.value $(grep '\[SHORT_PREAMBLE\]' /tmp/hostapd.dump | wc -l)"
+echo "cwmm.value $(grep '\[WMM\]' /tmp/hostapd.dump | wc -l)"
 
 exit 0
-- 
2.43.0