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

Function set80211ssid

tools/ifconfig/ifieee80211.c:604–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604static void
605set80211ssid(const char *val, int d, int s, const struct afswtch *rafp)
606{
607 int ssid;
608 int len;
609 u_int8_t data[IEEE80211_NWID_LEN];
610
611 ssid = 0;
612 len = strlen(val);
613 if (len > 2 && isdigit((int)val[0]) && val[1] == ':') {
614 ssid = atoi(val)-1;
615 val += 2;
616 }
617
618 bzero(data, sizeof(data));
619 len = sizeof(data);
620 if (get_string(val, NULL, data, &len) == NULL)
621 exit(1);
622
623 set80211(s, IEEE80211_IOC_SSID, ssid, len, data);
624}
625
626static void
627set80211meshid(const char *val, int d, int s, const struct afswtch *rafp)

Callers

nothing calls this directly

Calls 4

isdigitFunction · 0.85
bzeroFunction · 0.85
set80211Function · 0.85
get_stringFunction · 0.70

Tested by

no test coverage detected