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

Function chanfind

tools/ifconfig/ifieee80211.c:2086–2097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084}
2085
2086static int
2087chanfind(const struct ieee80211_channel chans[], int nchans, int flags)
2088{
2089 int i;
2090
2091 for (i = 0; i < nchans; i++) {
2092 const struct ieee80211_channel *c = &chans[i];
2093 if ((c->ic_flags & flags) == flags)
2094 return 1;
2095 }
2096 return 0;
2097}
2098
2099/*
2100 * Check channel compatibility.

Callers 1

checkchanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected