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

Function set80211stationname

tools/ifconfig/ifieee80211.c:640–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640static void
641set80211stationname(const char *val, int d, int s, const struct afswtch *rafp)
642{
643 int len;
644 u_int8_t data[33];
645
646 bzero(data, sizeof(data));
647 len = sizeof(data);
648 get_string(val, NULL, data, &len);
649
650 set80211(s, IEEE80211_IOC_STATIONNAME, 0, len, data);
651}
652
653/*
654 * Parse a channel specification for attributes/flags.

Callers

nothing calls this directly

Calls 3

bzeroFunction · 0.85
set80211Function · 0.85
get_stringFunction · 0.70

Tested by

no test coverage detected