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

Function set80211htprotmode

tools/ifconfig/ifieee80211.c:1042–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042static void
1043set80211htprotmode(const char *val, int d, int s, const struct afswtch *rafp)
1044{
1045 int mode;
1046
1047 if (strcasecmp(val, "off") == 0) {
1048 mode = IEEE80211_PROTMODE_OFF;
1049 } else if (strncasecmp(val, "rts", 3) == 0) {
1050 mode = IEEE80211_PROTMODE_RTSCTS;
1051 } else {
1052 errx(1, "unknown protection mode");
1053 }
1054
1055 set80211(s, IEEE80211_IOC_HTPROTMODE, mode, 0, NULL);
1056}
1057
1058static void
1059set80211txpower(const char *val, int d, int s, const struct afswtch *rafp)

Callers

nothing calls this directly

Calls 3

strcasecmpFunction · 0.85
strncasecmpFunction · 0.85
set80211Function · 0.85

Tested by

no test coverage detected