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

Function set80211stbc

tools/ifconfig/ifieee80211.c:1796–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1794}
1795
1796static void
1797set80211stbc(const char *val, int d, int s, const struct afswtch *rafp)
1798{
1799 int stbc;
1800
1801 if (get80211val(s, IEEE80211_IOC_STBC, &stbc) < 0)
1802 errx(-1, "cannot set STBC setting");
1803 if (d < 0) {
1804 d = -d;
1805 stbc &= ~d;
1806 } else
1807 stbc |= d;
1808 set80211(s, IEEE80211_IOC_STBC, stbc, 0, NULL);
1809}
1810
1811static void
1812set80211ldpc(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