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

Function set80211wepmode

tools/ifconfig/ifieee80211.c:916–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916static void
917set80211wepmode(const char *val, int d, int s, const struct afswtch *rafp)
918{
919 int mode;
920
921 if (strcasecmp(val, "off") == 0) {
922 mode = IEEE80211_WEP_OFF;
923 } else if (strcasecmp(val, "on") == 0) {
924 mode = IEEE80211_WEP_ON;
925 } else if (strcasecmp(val, "mixed") == 0) {
926 mode = IEEE80211_WEP_MIXED;
927 } else {
928 errx(1, "unknown wep mode");
929 }
930
931 set80211(s, IEEE80211_IOC_WEP, mode, 0, NULL);
932}
933
934static void
935set80211wep(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