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

Function printrate

tools/ifconfig/ifieee80211.c:4803–4817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4801}
4802
4803static void
4804printrate(const char *tag, int v, int defrate, int defmcs)
4805{
4806 if ((v & IEEE80211_RATE_MCS) == 0) {
4807 if (v != defrate) {
4808 if (v & 1)
4809 LINE_CHECK("%s %d.5", tag, v/2);
4810 else
4811 LINE_CHECK("%s %d", tag, v/2);
4812 }
4813 } else {
4814 if (v != defmcs)
4815 LINE_CHECK("%s %d", tag, v &~ 0x80);
4816 }
4817}
4818
4819static int
4820getid(int s, int ix, void *data, size_t len, int *plen, int mesh)

Callers 1

ieee80211_statusFunction · 0.70

Calls 1

LINE_CHECKFunction · 0.85

Tested by

no test coverage detected