Lines Matching refs:buflen

29 static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen,  in hostapd_write_ht_mcs_bitmask()  argument
35 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask()
37 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask()
44 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask()
45 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask()
55 char *buf, size_t buflen) in hostapd_get_sta_tx_rx() argument
64 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n" in hostapd_get_sta_tx_rx()
70 if (os_snprintf_error(buflen, ret)) in hostapd_get_sta_tx_rx()
74 ret = os_snprintf(buf + len, buflen - len, "rx_rate_info=%lu", in hostapd_get_sta_tx_rx()
76 if (os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
80 ret = os_snprintf(buf + len, buflen - len, " mcs %u", in hostapd_get_sta_tx_rx()
82 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
86 ret = os_snprintf(buf + len, buflen - len, " vhtmcs %u", in hostapd_get_sta_tx_rx()
88 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
92 ret = os_snprintf(buf + len, buflen - len, " vhtnss %u", in hostapd_get_sta_tx_rx()
94 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
98 ret = os_snprintf(buf + len, buflen - len, " shortGI"); in hostapd_get_sta_tx_rx()
99 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
102 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_get_sta_tx_rx()
103 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
106 ret = os_snprintf(buf + len, buflen - len, "tx_rate_info=%lu", in hostapd_get_sta_tx_rx()
108 if (os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
112 ret = os_snprintf(buf + len, buflen - len, " mcs %u", in hostapd_get_sta_tx_rx()
114 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
118 ret = os_snprintf(buf + len, buflen - len, " vhtmcs %u", in hostapd_get_sta_tx_rx()
120 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
124 ret = os_snprintf(buf + len, buflen - len, " vhtnss %u", in hostapd_get_sta_tx_rx()
126 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
130 ret = os_snprintf(buf + len, buflen - len, " shortGI"); in hostapd_get_sta_tx_rx()
131 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
134 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_get_sta_tx_rx()
135 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
139 ret = os_snprintf(buf + len, buflen - len, in hostapd_get_sta_tx_rx()
146 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
151 len = hostapd_write_ht_mcs_bitmask(buf, buflen, len, in hostapd_get_sta_tx_rx()
157 ret = os_snprintf(buf + len, buflen - len, in hostapd_get_sta_tx_rx()
159 if (!os_snprintf_error(buflen - len, ret)) in hostapd_get_sta_tx_rx()
168 char *buf, size_t buflen) in hostapd_get_sta_conn_time() argument
178 ret = os_snprintf(buf, buflen, "connected_time=%u\n", in hostapd_get_sta_conn_time()
180 if (os_snprintf_error(buflen, ret)) in hostapd_get_sta_conn_time()
207 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_mib() argument
216 ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=", in hostapd_ctrl_iface_sta_mib()
218 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
222 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
227 ret = os_snprintf(buf + len, buflen - len, "\naid=%d\ncapability=0x%x\n" in hostapd_ctrl_iface_sta_mib()
230 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
235 ret = os_snprintf(buf + len, buflen - len, "%02x%s", in hostapd_ctrl_iface_sta_mib()
238 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
243 ret = os_snprintf(buf + len, buflen - len, "\ntimeout_next=%s\n", in hostapd_ctrl_iface_sta_mib()
245 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
249 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
252 res = wpa_get_mib_sta(sta->wpa_sm, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
255 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
259 buflen - len); in hostapd_ctrl_iface_sta_mib()
262 res = hostapd_p2p_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
266 len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
267 len += hostapd_get_sta_conn_time(sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
271 res = os_snprintf(buf + len, buflen - len, "sae_group=%d\n", in hostapd_ctrl_iface_sta_mib()
273 if (!os_snprintf_error(buflen - len, res)) in hostapd_ctrl_iface_sta_mib()
279 res = os_snprintf(buf + len, buflen - len, "vlan_id=%d\n", in hostapd_ctrl_iface_sta_mib()
281 if (!os_snprintf_error(buflen - len, res)) in hostapd_ctrl_iface_sta_mib()
285 res = mbo_ap_get_info(sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
290 buflen - len > (unsigned) (17 + 2 * sta->supp_op_classes[0])) { in hostapd_ctrl_iface_sta_mib()
291 len += os_snprintf(buf + len, buflen - len, "supp_op_classes="); in hostapd_ctrl_iface_sta_mib()
292 len += wpa_snprintf_hex(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
295 len += os_snprintf(buf + len, buflen - len, "\n"); in hostapd_ctrl_iface_sta_mib()
299 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
303 if (!os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
309 res = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
313 if (!os_snprintf_error(buflen - len, res)) in hostapd_ctrl_iface_sta_mib()
320 res = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
324 if (!os_snprintf_error(buflen - len, res)) in hostapd_ctrl_iface_sta_mib()
330 buflen - len > (unsigned) (11 + 2 * sta->ext_capability[0])) { in hostapd_ctrl_iface_sta_mib()
331 len += os_snprintf(buf + len, buflen - len, "ext_capab="); in hostapd_ctrl_iface_sta_mib()
332 len += wpa_snprintf_hex(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
335 len += os_snprintf(buf + len, buflen - len, "\n"); in hostapd_ctrl_iface_sta_mib()
339 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_sta_mib()
341 if (!os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
347 ret = os_snprintf(buf + len, buflen - len, "keyid=%s\n", keyid); in hostapd_ctrl_iface_sta_mib()
348 if (!os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_sta_mib()
357 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_first() argument
359 return hostapd_ctrl_iface_sta_mib(hapd, hapd->sta_list, buf, buflen); in hostapd_ctrl_iface_sta_first()
364 char *buf, size_t buflen) in hostapd_ctrl_iface_sta() argument
372 ret = os_snprintf(buf, buflen, "FAIL\n"); in hostapd_ctrl_iface_sta()
373 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_sta()
391 buflen); in hostapd_ctrl_iface_sta()
398 ret = hostapd_ctrl_iface_sta_mib(hapd, sta, buf, buflen); in hostapd_ctrl_iface_sta()
399 ret += fst_ctrl_iface_mb_info(addr, buf + ret, buflen - ret); in hostapd_ctrl_iface_sta()
406 char *buf, size_t buflen) in hostapd_ctrl_iface_sta_next() argument
414 ret = os_snprintf(buf, buflen, "FAIL\n"); in hostapd_ctrl_iface_sta_next()
415 if (os_snprintf_error(buflen, ret)) in hostapd_ctrl_iface_sta_next()
423 return hostapd_ctrl_iface_sta_mib(hapd, sta->next, buf, buflen); in hostapd_ctrl_iface_sta_next()
609 char *buf, size_t buflen) in hostapd_ctrl_iface_signature() argument
623 return retrieve_sta_taxonomy(hapd, sta, buf, buflen); in hostapd_ctrl_iface_signature()
650 size_t buflen) in hostapd_ctrl_iface_status() argument
657 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
684 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
689 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
700 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
706 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
710 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
727 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
731 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
740 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
749 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
753 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
759 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
762 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
768 len = hostapd_write_ht_mcs_bitmask(buf, buflen, len, in hostapd_ctrl_iface_status()
773 ret = os_snprintf(buf + len, buflen - len, "supported_rates="); in hostapd_ctrl_iface_status()
774 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
779 ret = os_snprintf(buf + len, buflen - len, "%s%02x", in hostapd_ctrl_iface_status()
782 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
786 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_ctrl_iface_status()
787 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
794 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
797 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
806 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
817 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()
823 ret = os_snprintf(buf + len, buflen - len, in hostapd_ctrl_iface_status()
826 if (os_snprintf_error(buflen - len, ret)) in hostapd_ctrl_iface_status()