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

Function chanlookup

tools/ifconfig/ifieee80211.c:2070–2084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2068}
2069
2070static const struct ieee80211_channel *
2071chanlookup(const struct ieee80211_channel chans[], int nchans,
2072 int freq, int flags)
2073{
2074 int i;
2075
2076 flags &= IEEE80211_CHAN_ALLTURBO;
2077 for (i = 0; i < nchans; i++) {
2078 const struct ieee80211_channel *c = &chans[i];
2079 if (c->ic_freq == freq &&
2080 (c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)
2081 return c;
2082 }
2083 return NULL;
2084}
2085
2086static int
2087chanfind(const struct ieee80211_channel chans[], int nchans, int flags)

Callers 1

checkchanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected