Lines Matching refs:ret
32 int ret;
35 ret = os_snprintf(buf + len, buflen - len,
37 if (os_snprintf_error(buflen - len, ret))
39 len += ret;
44 ret = os_snprintf(buf + len, buflen - len, "\n");
45 if (os_snprintf_error(buflen - len, ret))
47 len += ret;
58 int ret;
64 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n"
70 if (os_snprintf_error(buflen, ret))
72 len += ret;
74 ret = os_snprintf(buf + len, buflen - len, "rx_rate_info=%lu",
76 if (os_snprintf_error(buflen - len, ret))
78 len += ret;
80 ret = os_snprintf(buf + len, buflen - len, " mcs %u",
82 if (!os_snprintf_error(buflen - len, ret))
83 len += ret;
86 ret = os_snprintf(buf + len, buflen - len, " vhtmcs %u",
88 if (!os_snprintf_error(buflen - len, ret))
89 len += ret;
92 ret = os_snprintf(buf + len, buflen - len, " vhtnss %u",
94 if (!os_snprintf_error(buflen - len, ret))
95 len += ret;
98 ret = os_snprintf(buf + len, buflen - len, " shortGI");
99 if (!os_snprintf_error(buflen - len, ret))
100 len += ret;
102 ret = os_snprintf(buf + len, buflen - len, "\n");
103 if (!os_snprintf_error(buflen - len, ret))
104 len += ret;
106 ret = os_snprintf(buf + len, buflen - len, "tx_rate_info=%lu",
108 if (os_snprintf_error(buflen - len, ret))
110 len += ret;
112 ret = os_snprintf(buf + len, buflen - len, " mcs %u",
114 if (!os_snprintf_error(buflen - len, ret))
115 len += ret;
118 ret = os_snprintf(buf + len, buflen - len, " vhtmcs %u",
120 if (!os_snprintf_error(buflen - len, ret))
121 len += ret;
124 ret = os_snprintf(buf + len, buflen - len, " vhtnss %u",
126 if (!os_snprintf_error(buflen - len, ret))
127 len += ret;
130 ret = os_snprintf(buf + len, buflen - len, " shortGI");
131 if (!os_snprintf_error(buflen - len, ret))
132 len += ret;
134 ret = os_snprintf(buf + len, buflen - len, "\n");
135 if (!os_snprintf_error(buflen - len, ret))
136 len += ret;
139 ret = os_snprintf(buf + len, buflen - len,
146 if (!os_snprintf_error(buflen - len, ret))
147 len += ret;
157 ret = os_snprintf(buf + len, buflen - len,
159 if (!os_snprintf_error(buflen - len, ret))
160 len += ret;
171 int ret;
178 ret = os_snprintf(buf, buflen, "connected_time=%u\n",
180 if (os_snprintf_error(buflen, ret))
182 return ret;
209 int len, res, ret, i;
216 ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=",
218 if (os_snprintf_error(buflen - len, ret))
220 len += ret;
222 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len);
223 if (ret < 0)
225 len += ret;
227 ret = os_snprintf(buf + len, buflen - len, "\naid=%d\ncapability=0x%x\n"
230 if (os_snprintf_error(buflen - len, ret))
232 len += ret;
235 ret = os_snprintf(buf + len, buflen - len, "%02x%s",
238 if (os_snprintf_error(buflen - len, ret))
240 len += ret;
243 ret = os_snprintf(buf + len, buflen - len, "\ntimeout_next=%s\n",
245 if (os_snprintf_error(buflen - len, ret))
247 len += ret;
299 ret = os_snprintf(buf + len, buflen - len,
303 if (!os_snprintf_error(buflen - len, ret))
304 len += ret;
339 ret = os_snprintf(buf + len, buflen - len,
341 if (!os_snprintf_error(buflen - len, ret))
342 len += ret;
347 ret = os_snprintf(buf + len, buflen - len, "keyid=%s\n", keyid);
348 if (!os_snprintf_error(buflen - len, ret))
349 len += ret;
367 int ret;
372 ret = os_snprintf(buf, buflen, "FAIL\n");
373 if (os_snprintf_error(buflen, ret))
375 return ret;
398 ret = hostapd_ctrl_iface_sta_mib(hapd, sta, buf, buflen);
399 ret += fst_ctrl_iface_mb_info(addr, buf + ret, buflen - ret);
401 return ret;
410 int ret;
414 ret = os_snprintf(buf, buflen, "FAIL\n");
415 if (os_snprintf_error(buflen, ret))
417 return ret;
432 int ret;
471 ret = hapd->driver->send_frame(hapd->drv_priv, (u8 *) mgmt,
475 return ret < 0 ? -1 : 0;
654 int len = 0, ret, j;
657 ret = os_snprintf(buf + len, buflen - len,
684 if (os_snprintf_error(buflen - len, ret))
686 len += ret;
689 ret = os_snprintf(buf + len, buflen - len,
700 ret = os_snprintf(buf + len, buflen - len,
706 if (os_snprintf_error(buflen - len, ret))
708 len += ret;
710 ret = os_snprintf(buf + len, buflen - len,
727 if (os_snprintf_error(buflen - len, ret))
729 len += ret;
731 ret = os_snprintf(buf + len, buflen - len,
740 if (os_snprintf_error(buflen - len, ret))
742 len += ret;
749 ret = os_snprintf(buf + len, buflen - len,
753 if (os_snprintf_error(buflen - len, ret))
755 len += ret;
759 ret = os_snprintf(buf + len, buflen - len,
762 if (os_snprintf_error(buflen - len, ret))
764 len += ret;
773 ret = os_snprintf(buf + len, buflen - len, "supported_rates=");
774 if (os_snprintf_error(buflen - len, ret))
776 len += ret;
779 ret = os_snprintf(buf + len, buflen - len, "%s%02x",
782 if (os_snprintf_error(buflen - len, ret))
784 len += ret;
786 ret = os_snprintf(buf + len, buflen - len, "\n");
787 if (os_snprintf_error(buflen - len, ret))
789 len += ret;
794 ret = os_snprintf(buf + len, buflen - len,
797 if (os_snprintf_error(buflen - len, ret))
799 len += ret;
806 ret = os_snprintf(buf + len, buflen - len,
817 if (os_snprintf_error(buflen - len, ret))
819 len += ret;
823 ret = os_snprintf(buf + len, buflen - len,
826 if (os_snprintf_error(buflen - len, ret))
828 len += ret;