aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wmm_ac.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2014-12-29 02:14:58 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-04 16:31:18 (GMT)
commit20fe74561c1ad1aca2557b273278ade0a5ee5bca (patch)
tree8a281a6408562a29e0f0c083762395f59af6b91a /wpa_supplicant/wmm_ac.c
parent730a0d16bf2dd6f3d7450fd6ee7b27b0533f3696 (diff)
downloadhostap-20fe74561c1ad1aca2557b273278ade0a5ee5bca.zip
hostap-20fe74561c1ad1aca2557b273278ade0a5ee5bca.tar.gz
hostap-20fe74561c1ad1aca2557b273278ade0a5ee5bca.tar.bz2
WMM AC: Print user-priority in wmm_ac_status
The UP is important property of the tspec, so print it as well. Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Diffstat (limited to 'wpa_supplicant/wmm_ac.c')
-rw-r--r--wpa_supplicant/wmm_ac.c7
1 files 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));