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

Function set80211ldpc

tools/ifconfig/ifieee80211.c:1811–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1809}
1810
1811static void
1812set80211ldpc(const char *val, int d, int s, const struct afswtch *rafp)
1813{
1814 int ldpc;
1815
1816 if (get80211val(s, IEEE80211_IOC_LDPC, &ldpc) < 0)
1817 errx(-1, "cannot set LDPC setting");
1818 if (d < 0) {
1819 d = -d;
1820 ldpc &= ~d;
1821 } else
1822 ldpc |= d;
1823 set80211(s, IEEE80211_IOC_LDPC, ldpc, 0, NULL);
1824}
1825
1826static void
1827set80211uapsd(const char *val, int d, int s, const struct afswtch *rafp)

Callers

nothing calls this directly

Calls 2

get80211valFunction · 0.85
set80211Function · 0.85

Tested by

no test coverage detected