MCPcopy Create free account
hub / github.com/F-Stack/f-stack / printmimo

Function printmimo

tools/ifconfig/ifieee80211.c:3690–3717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3688}
3689
3690static void
3691printmimo(const struct ieee80211_mimo_info *mi)
3692{
3693 int i;
3694 int r = 0;
3695
3696 for (i = 0; i < IEEE80211_MAX_CHAINS; i++) {
3697 if (mi->ch[i].rssi != 0) {
3698 r = 1;
3699 break;
3700 }
3701 }
3702
3703 /* NB: don't muddy display unless there's something to show */
3704 if (r == 0)
3705 return;
3706
3707 /* XXX TODO: ignore EVM; secondary channels for now */
3708 printf(" (rssi %.1f:%.1f:%.1f:%.1f nf %d:%d:%d:%d)",
3709 mi->ch[0].rssi[0] / 2.0,
3710 mi->ch[1].rssi[0] / 2.0,
3711 mi->ch[2].rssi[0] / 2.0,
3712 mi->ch[3].rssi[0] / 2.0,
3713 mi->ch[0].noise[0],
3714 mi->ch[1].noise[0],
3715 mi->ch[2].noise[0],
3716 mi->ch[3].noise[0]);
3717}
3718
3719static void
3720list_scan(int s)

Callers 1

list_stationsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected