From patchwork Mon Dec 29 02:14:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 424391 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 439E71400DD for ; Mon, 29 Dec 2014 19:14:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 14B0F17C0AB; Mon, 29 Dec 2014 03:14:01 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YYt7cDVq2zSP; Mon, 29 Dec 2014 03:14:00 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id EBF6617C0C0; Mon, 29 Dec 2014 03:13:23 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 875E817C0C0 for ; Mon, 29 Dec 2014 03:13:21 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k0bJNGLme6gE for ; Mon, 29 Dec 2014 03:13:14 -0500 (EST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 4203D17C0B4 for ; Mon, 29 Dec 2014 03:13:06 -0500 (EST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 29 Dec 2014 00:10:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="505173428" Received: from unknown (HELO ipeer-e6430-3.jer.intel.com) ([10.12.217.164]) by orsmga003.jf.intel.com with ESMTP; 29 Dec 2014 00:07:46 -0800 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 2/7] WMM AC: print user-priority in wmm_ac_status Date: Sun, 28 Dec 2014 21:14:58 -0500 Message-Id: <1419819303-6798-3-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1419819303-6798-1-git-send-email-ilan.peer@intel.com> References: <1419819303-6798-1-git-send-email-ilan.peer@intel.com> Cc: Eliad Peller X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Eliad Peller The UP is important property of the tspec, so print it as well. Signed-off-by: Eliad Peller --- wpa_supplicant/wmm_ac.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/wmm_ac.c b/wpa_supplicant/wmm_ac.c index 727df41..379c6e8 100644 --- a/wpa_supplicant/wmm_ac.c +++ b/wpa_supplicant/wmm_ac.c @@ -857,7 +857,7 @@ int wpas_wmm_ac_status(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) struct wmm_ac_assoc_data *assoc_info = wpa_s->wmm_ac_assoc_info; enum ts_dir_idx idx; int pos = 0; - u8 ac; + u8 ac, up; if (!assoc_info) { return wpa_scnprintf(buf, buflen - pos, @@ -889,13 +889,14 @@ int wpas_wmm_ac_status(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) dir = wmm_ac_get_direction(tspec); dir_str = get_direction_str(dir); tsid = wmm_ac_get_tsid(tspec); + up = wmm_ac_get_user_priority(tspec); pos += wpa_scnprintf(buf + pos, buflen - pos, - "\tTSID = %u\n" + "\tTSID=%u UP=%u\n" "\tAddress = "MACSTR"\n" "\tWMM AC dir = %s\n" "\tTotal admitted time = %u\n\n", - tsid, + tsid, up, MAC2STR(wpa_s->bssid), dir_str, le_to_host16(tspec->medium_time));