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

Function set80211roaming

tools/ifconfig/ifieee80211.c:1074–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072#define IEEE80211_ROAMING_MANUAL 2
1073
1074static void
1075set80211roaming(const char *val, int d, int s, const struct afswtch *rafp)
1076{
1077 int mode;
1078
1079 if (strcasecmp(val, "device") == 0) {
1080 mode = IEEE80211_ROAMING_DEVICE;
1081 } else if (strcasecmp(val, "auto") == 0) {
1082 mode = IEEE80211_ROAMING_AUTO;
1083 } else if (strcasecmp(val, "manual") == 0) {
1084 mode = IEEE80211_ROAMING_MANUAL;
1085 } else {
1086 errx(1, "unknown roaming mode");
1087 }
1088 set80211(s, IEEE80211_IOC_ROAMING, mode, 0, NULL);
1089}
1090
1091static void
1092set80211wme(const char *val, int d, int s, const struct afswtch *rafp)

Callers

nothing calls this directly

Calls 2

strcasecmpFunction · 0.85
set80211Function · 0.85

Tested by

no test coverage detected