Home
last modified time | relevance | path

Searched refs:chaninfo (Results 1 – 7 of 7) sorted by relevance

/freebsd/tools/tools/net80211/stumbler/
H A Dstumbler.c62 } chaninfo; variable
254 snprintf(tmp, sizeof(tmp), "%.2d", chaninfo.chan); in display_chan()
260 chaninfo.ireq.i_val = c; in set_chan()
262 if (ioctl(ioctl_s, SIOCS80211, &chaninfo.ireq) == -1) in set_chan()
265 chaninfo.chan = c; in set_chan()
267 if (gettimeofday(&chaninfo.last_hop, NULL) == -1) in set_chan()
278 memset(&chaninfo.ireq, 0, sizeof(chaninfo.ireq)); in setup_if()
279 strcpy(chaninfo.ireq.i_name, dev); in setup_if()
280 chaninfo.ireq.i_type = IEEE80211_IOC_CHANNEL; in setup_if()
356 chaninfo.locked = !chaninfo.locked; in user_input()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_regdomain.c375 if (reg->chaninfo.ic_nchans > IEEE80211_CHAN_MAX) { in ieee80211_setregdomain()
378 reg->chaninfo.ic_nchans, IEEE80211_CHAN_MAX); in ieee80211_setregdomain()
386 for (i = 0; i < reg->chaninfo.ic_nchans; i++) { in ieee80211_setregdomain()
387 c = &reg->chaninfo.ic_chans[i]; in ieee80211_setregdomain()
418 reg->chaninfo.ic_nchans, reg->chaninfo.ic_chans); in ieee80211_setregdomain()
445 memcpy(ic->ic_channels, reg->chaninfo.ic_chans, in ieee80211_setregdomain()
446 reg->chaninfo.ic_nchans * sizeof(struct ieee80211_channel)); in ieee80211_setregdomain()
447 ic->ic_nchans = reg->chaninfo.ic_nchans; in ieee80211_setregdomain()
H A Dieee80211_ioctl.h545 struct ieee80211req_chaninfo chaninfo; member
551 IEEE80211_REGDOMAIN_SIZE((_req)->chaninfo.ic_nchans)
H A Dieee80211_ioctl.c2193 if (reg->chaninfo.ic_nchans != nchans) { in ieee80211_ioctl_setregdomain()
2196 reg->chaninfo.ic_nchans, nchans); in ieee80211_ioctl_setregdomain()
/freebsd/tools/tools/net80211/wesside/wesside/
H A Dwesside.c72 } chaninfo; variable
326 if (c == chaninfo.chan) in set_chan()
329 chaninfo.ireq.i_val = c; in set_chan()
331 if (ioctl(chaninfo.s, SIOCS80211, &chaninfo.ireq) == -1) { in set_chan()
335 chaninfo.chan = c; in set_chan()
387 memset(&chaninfo.ireq, 0, sizeof(chaninfo.ireq)); in setup_if()
388 strcpy(chaninfo.ireq.i_name, dev); in setup_if()
389 chaninfo.ireq.i_type = IEEE80211_IOC_CHANNEL; in setup_if()
391 chaninfo.chan = 0; in setup_if()
392 chaninfo.s = s; in setup_if()
[all …]
/freebsd/sbin/ifconfig/
H A Difieee80211.c189 static struct ieee80211req_chaninfo *chaninfo; variable
233 if (chaninfo != NULL) in getchaninfo()
235 chaninfo = malloc(IEEE80211_CHANINFO_SIZE(MAXCHAN)); in getchaninfo()
236 if (chaninfo == NULL) in getchaninfo()
238 if (get80211(ctx, IEEE80211_IOC_CHANINFO, chaninfo, in getchaninfo()
268 const struct ieee80211_channel *fc = &chaninfo->ic_chans[i]; in canpromote()
274 if (i+1 < chaninfo->ic_nchans && in canpromote()
275 chaninfo->ic_chans[i+1].ic_freq == fc->ic_freq && in canpromote()
276 (chaninfo->ic_chans[i+1].ic_flags & to) == to) in canpromote()
279 for (j = 0; j < chaninfo in canpromote()
[all...]
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_sys.c590 struct ieee80211req_chaninfo *chaninfo; in wlan_get_channel_list() local
596 chaninfo = (struct ieee80211req_chaninfo *)malloc(argsize); in wlan_get_channel_list()
597 if (chaninfo == NULL) in wlan_get_channel_list()
600 if (wlan_ioctl(wif->wname, IEEE80211_IOC_CHANINFO, &val, chaninfo, in wlan_get_channel_list()
609 for (i = 0, nchans = 0; i < chaninfo->ic_nchans; i++) { in wlan_get_channel_list()
610 c = &chaninfo->ic_chans[i]; in wlan_get_channel_list()
620 for (i = 0, nchans = 0; i < chaninfo->ic_nchans; i++) { in wlan_get_channel_list()
621 c = &chaninfo->ic_chans[i]; in wlan_get_channel_list()
628 free(chaninfo); in wlan_get_channel_list()
632 free(chaninfo); in wlan_get_channel_list()
[all …]