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

Function set80211vhtconf

tools/ifconfig/ifieee80211.c:1975–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973}
1974
1975static void
1976set80211vhtconf(const char *val, int d, int s, const struct afswtch *rafp)
1977{
1978 if (get80211val(s, IEEE80211_IOC_VHTCONF, &vhtconf) < 0)
1979 errx(-1, "cannot set VHT setting");
1980 printf("%s: vhtconf=0x%08x, d=%d\n", __func__, vhtconf, d);
1981 if (d < 0) {
1982 d = -d;
1983 vhtconf &= ~d;
1984 } else
1985 vhtconf |= d;
1986 printf("%s: vhtconf is now 0x%08x\n", __func__, vhtconf);
1987 set80211(s, IEEE80211_IOC_VHTCONF, vhtconf, 0, NULL);
1988}
1989
1990static
1991DECL_CMD_FUNC(set80211tdmaslot, val, d)

Callers

nothing calls this directly

Calls 3

get80211valFunction · 0.85
set80211Function · 0.85
printfFunction · 0.50

Tested by

no test coverage detected