Lines Matching defs:bs
565 setreason(char b[], size_t bs, int v)
593 snprintf(b, bs, "%s (%u)", reasons[v], v);
595 snprintf(b, bs, "%u", v);
599 setstatus(char b[], size_t bs, int v)
630 snprintf(b, bs, "%s (%u)", status[v], v);
632 snprintf(b, bs, "%u", v);
636 wlan_getinfo(struct wlanstatfoo_p *wf, int s, char b[], size_t bs)
642 snprintf(b, bs, "%.1fM", (float) si->isi_txmbps/2.0);
645 snprintf(b, bs, "%.1f", (float) si->isi_rssi/2.0);
648 snprintf(b, bs, "%d", si->isi_noise);
651 snprintf(b, bs, "%.1f", (float) si->isi_rssi/2.0
657 setstatus(b, bs, wf->cur.is_rx_authfail_code);
662 setreason(b, bs, wf->cur.is_rx_deauth_code);
667 setreason(b, bs, wf->cur.is_rx_disassoc_code);
675 wlan_get_curstat(struct bsdstat *sf, int s, char b[], size_t bs)
679 snprintf(b, bs, "%u", wf->cur.is_##x - wf->total.is_##x); return 1
681 snprintf(b, bs, "%u", \
836 return wlan_getinfo(wf, s, b, bs);
842 wlan_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs)
846 snprintf(b, bs, "%u", wf->total.is_##x); return 1
848 snprintf(b, bs, "%u", wf->ntotal.is_stats.ns_##x); return 1
1001 return wlan_getinfo(wf, s, b, bs);