head 1.24; access; symbols netbsd-10-0-RELEASE:1.24 netbsd-10-0-RC6:1.24 netbsd-10-0-RC5:1.24 netbsd-10-0-RC4:1.24 netbsd-10-0-RC3:1.24 netbsd-10-0-RC2:1.24 thorpej-ifq:1.24.0.14 thorpej-ifq-base:1.24 thorpej-altq-separation:1.24.0.12 thorpej-altq-separation-base:1.24 netbsd-10-0-RC1:1.24 netbsd-10:1.24.0.10 netbsd-10-base:1.24 bouyer-sunxi-drm:1.24.0.8 bouyer-sunxi-drm-base:1.24 netbsd-9-3-RELEASE:1.23 thorpej-i2c-spi-conf2:1.24.0.6 thorpej-i2c-spi-conf2-base:1.24 thorpej-futex2:1.24.0.4 thorpej-futex2-base:1.24 thorpej-cfargs2:1.24.0.2 thorpej-cfargs2-base:1.24 cjep_sun2x-base1:1.23 cjep_sun2x:1.23.0.36 cjep_sun2x-base:1.23 cjep_staticlib_x-base1:1.23 netbsd-9-2-RELEASE:1.23 cjep_staticlib_x:1.23.0.34 cjep_staticlib_x-base:1.23 thorpej-i2c-spi-conf:1.23.0.32 thorpej-i2c-spi-conf-base:1.24 thorpej-cfargs:1.23.0.30 thorpej-cfargs-base:1.23 thorpej-futex:1.23.0.28 thorpej-futex-base:1.23 netbsd-9-1-RELEASE:1.23 bouyer-xenpvh-base2:1.23 phil-wifi-20200421:1.23 bouyer-xenpvh-base1:1.23 phil-wifi-20200411:1.23 bouyer-xenpvh:1.23.0.26 bouyer-xenpvh-base:1.23 is-mlppp:1.23.0.24 is-mlppp-base:1.23 phil-wifi-20200406:1.23 netbsd-8-2-RELEASE:1.23 ad-namecache-base3:1.23 netbsd-9-0-RELEASE:1.23 netbsd-9-0-RC2:1.23 ad-namecache-base2:1.23 ad-namecache-base1:1.23 ad-namecache:1.23.0.22 ad-namecache-base:1.23 netbsd-9-0-RC1:1.23 phil-wifi-20191119:1.23 netbsd-9:1.23.0.20 netbsd-9-base:1.23 phil-wifi-20190609:1.23 netbsd-8-1-RELEASE:1.23 netbsd-8-1-RC1:1.23 isaki-audio2:1.23.0.18 isaki-audio2-base:1.23 pgoyette-compat-merge-20190127:1.23 pgoyette-compat-20190127:1.23 pgoyette-compat-20190118:1.23 pgoyette-compat-1226:1.23 pgoyette-compat-1126:1.23 pgoyette-compat-1020:1.23 pgoyette-compat-0930:1.23 pgoyette-compat-0906:1.23 netbsd-7-2-RELEASE:1.22 pgoyette-compat-0728:1.23 netbsd-8-0-RELEASE:1.23 phil-wifi-freebsd-base:1.23.16.1 phil-wifi:1.23.0.16 phil-wifi-base:1.23 pgoyette-compat-0625:1.23 netbsd-8-0-RC2:1.23 pgoyette-compat-0521:1.23 pgoyette-compat-0502:1.23 pgoyette-compat-0422:1.23 netbsd-8-0-RC1:1.23 pgoyette-compat-0415:1.23 pgoyette-compat-0407:1.23 pgoyette-compat-0330:1.23 pgoyette-compat-0322:1.23 pgoyette-compat-0315:1.23 netbsd-7-1-2-RELEASE:1.22 pgoyette-compat:1.23.0.14 pgoyette-compat-base:1.23 netbsd-7-1-1-RELEASE:1.22 tls-maxphys-base-20171202:1.23 matt-nb8-mediatek:1.23.0.12 matt-nb8-mediatek-base:1.23 nick-nhusb-base-20170825:1.23 perseant-stdc-iso10646:1.23.0.10 perseant-stdc-iso10646-base:1.23 netbsd-8:1.23.0.8 netbsd-8-base:1.23 prg-localcount2-base3:1.23 prg-localcount2-base2:1.23 prg-localcount2-base1:1.23 prg-localcount2:1.23.0.6 prg-localcount2-base:1.23 pgoyette-localcount-20170426:1.23 bouyer-socketcan-base1:1.23 jdolecek-ncq:1.23.0.4 jdolecek-ncq-base:1.23 pgoyette-localcount-20170320:1.23 netbsd-7-1:1.22.0.20 netbsd-7-1-RELEASE:1.22 netbsd-7-1-RC2:1.22 nick-nhusb-base-20170204:1.23 netbsd-7-nhusb-base-20170116:1.22 bouyer-socketcan:1.23.0.2 bouyer-socketcan-base:1.23 pgoyette-localcount-20170107:1.23 netbsd-7-1-RC1:1.22 nick-nhusb-base-20161204:1.22 pgoyette-localcount-20161104:1.22 netbsd-7-0-2-RELEASE:1.22 nick-nhusb-base-20161004:1.22 localcount-20160914:1.22 netbsd-7-nhusb:1.22.0.18 netbsd-7-nhusb-base:1.22 pgoyette-localcount-20160806:1.22 pgoyette-localcount-20160726:1.22 pgoyette-localcount:1.22.0.16 pgoyette-localcount-base:1.22 nick-nhusb-base-20160907:1.22 nick-nhusb-base-20160529:1.22 netbsd-7-0-1-RELEASE:1.22 nick-nhusb-base-20160422:1.22 nick-nhusb-base-20160319:1.22 nick-nhusb-base-20151226:1.22 netbsd-7-0:1.22.0.14 netbsd-7-0-RELEASE:1.22 nick-nhusb-base-20150921:1.22 netbsd-7-0-RC3:1.22 netbsd-7-0-RC2:1.22 netbsd-7-0-RC1:1.22 nick-nhusb-base-20150606:1.22 nick-nhusb-base-20150406:1.22 nick-nhusb:1.22.0.12 nick-nhusb-base:1.22 netbsd-5-2-3-RELEASE:1.17 netbsd-5-1-5-RELEASE:1.17 netbsd-6-0-6-RELEASE:1.18 netbsd-6-1-5-RELEASE:1.18 netbsd-7:1.22.0.10 netbsd-7-base:1.22 yamt-pagecache-base9:1.22 yamt-pagecache-tag8:1.18.4.1 netbsd-6-1-4-RELEASE:1.18 netbsd-6-0-5-RELEASE:1.18 tls-earlyentropy:1.22.0.8 tls-earlyentropy-base:1.22 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.22 riastradh-drm2-base3:1.22 netbsd-6-1-3-RELEASE:1.18 netbsd-6-0-4-RELEASE:1.18 netbsd-5-2-2-RELEASE:1.17 netbsd-5-1-4-RELEASE:1.17 netbsd-6-1-2-RELEASE:1.18 netbsd-6-0-3-RELEASE:1.18 netbsd-5-2-1-RELEASE:1.17 netbsd-5-1-3-RELEASE:1.17 rmind-smpnet-nbase:1.22 netbsd-6-1-1-RELEASE:1.18 riastradh-drm2-base2:1.22 riastradh-drm2-base1:1.22 riastradh-drm2:1.22.0.6 riastradh-drm2-base:1.22 rmind-smpnet:1.22.0.4 rmind-smpnet-base:1.22 netbsd-6-1:1.18.0.18 netbsd-6-0-2-RELEASE:1.18 netbsd-6-1-RELEASE:1.18 khorben-n900:1.22.0.2 netbsd-6-1-RC4:1.18 netbsd-6-1-RC3:1.18 agc-symver:1.19.0.4 agc-symver-base:1.19 netbsd-6-1-RC2:1.18 netbsd-6-1-RC1:1.18 yamt-pagecache-base8:1.19 netbsd-5-2:1.17.0.26 netbsd-6-0-1-RELEASE:1.18 yamt-pagecache-base7:1.18 netbsd-5-2-RELEASE:1.17 netbsd-5-2-RC1:1.17 matt-nb6-plus-nbase:1.18 yamt-pagecache-base6:1.18 netbsd-6-0:1.18.0.16 netbsd-6-0-RELEASE:1.18 netbsd-6-0-RC2:1.18 tls-maxphys:1.18.0.14 tls-maxphys-base:1.22 matt-nb6-plus:1.18.0.12 matt-nb6-plus-base:1.18 netbsd-6-0-RC1:1.18 jmcneill-usbmp-base10:1.18 yamt-pagecache-base5:1.18 jmcneill-usbmp-base9:1.18 yamt-pagecache-base4:1.18 jmcneill-usbmp-base8:1.18 jmcneill-usbmp-base7:1.18 jmcneill-usbmp-base6:1.18 jmcneill-usbmp-base5:1.18 jmcneill-usbmp-base4:1.18 jmcneill-usbmp-base3:1.18 jmcneill-usbmp-pre-base2:1.18 jmcneill-usbmp-base2:1.18 netbsd-6:1.18.0.10 netbsd-6-base:1.18 netbsd-5-1-2-RELEASE:1.17 netbsd-5-1-1-RELEASE:1.17 jmcneill-usbmp:1.18.0.8 jmcneill-usbmp-base:1.18 jmcneill-audiomp3:1.18.0.6 jmcneill-audiomp3-base:1.18 yamt-pagecache-base3:1.18 yamt-pagecache-base2:1.18 yamt-pagecache:1.18.0.4 yamt-pagecache-base:1.18 rmind-uvmplock-nbase:1.18 cherry-xenmp:1.18.0.2 cherry-xenmp-base:1.18 bouyer-quota2-nbase:1.18 bouyer-quota2:1.17.0.24 bouyer-quota2-base:1.17 jruoho-x86intr:1.17.0.22 jruoho-x86intr-base:1.17 matt-mips64-premerge-20101231:1.17 matt-nb5-mips64-premerge-20101231:1.17 matt-nb5-pq3:1.17.0.20 matt-nb5-pq3-base:1.17 netbsd-5-1:1.17.0.18 netbsd-5-1-RELEASE:1.17 uebayasi-xip-base4:1.17 uebayasi-xip-base3:1.17 yamt-nfs-mp-base11:1.17 netbsd-5-1-RC4:1.17 matt-nb5-mips64-k15:1.17 uebayasi-xip-base2:1.17 yamt-nfs-mp-base10:1.17 netbsd-5-1-RC3:1.17 netbsd-5-1-RC2:1.17 uebayasi-xip-base1:1.17 netbsd-5-1-RC1:1.17 rmind-uvmplock:1.17.0.16 rmind-uvmplock-base:1.18 yamt-nfs-mp-base9:1.17 uebayasi-xip:1.17.0.14 uebayasi-xip-base:1.17 netbsd-5-0-2-RELEASE:1.17 matt-nb5-mips64-premerge-20091211:1.17 matt-premerge-20091211:1.17 yamt-nfs-mp-base8:1.17 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.17 matt-nb4-mips64-k7-u2a-k9b:1.17 matt-nb5-mips64-u1-k1-k5:1.17 yamt-nfs-mp-base7:1.17 matt-nb5-mips64:1.17.0.12 netbsd-5-0-1-RELEASE:1.17 jymxensuspend-base:1.17 yamt-nfs-mp-base6:1.17 yamt-nfs-mp-base5:1.17 yamt-nfs-mp-base4:1.17 jym-xensuspend-nbase:1.17 yamt-nfs-mp-base3:1.17 nick-hppapmap-base4:1.17 nick-hppapmap-base3:1.17 netbsd-5-0:1.17.0.10 netbsd-5-0-RELEASE:1.17 netbsd-5-0-RC4:1.17 netbsd-5-0-RC3:1.17 nick-hppapmap-base2:1.17 netbsd-5-0-RC2:1.17 jym-xensuspend:1.17.0.8 jym-xensuspend-base:1.17 netbsd-5-0-RC1:1.17 haad-dm-base2:1.17 haad-nbase2:1.17 ad-audiomp2:1.17.0.6 ad-audiomp2-base:1.17 netbsd-5:1.17.0.4 netbsd-5-base:1.17 nick-hppapmap:1.17.0.2 nick-hppapmap-base:1.17 matt-mips64-base2:1.17 matt-mips64:1.16.0.76 haad-dm-base1:1.17 wrstuden-revivesa-base-4:1.17 netbsd-4-0-1-RELEASE:1.16 wrstuden-revivesa-base-3:1.17 wrstuden-revivesa-base-2:1.17 wrstuden-fixsa-newbase:1.16 nick-csl-alignment-base5:1.16 haad-dm:1.16.0.74 haad-dm-base:1.17 wrstuden-revivesa-base-1:1.16 simonb-wapbl-nbase:1.17 yamt-pf42-base4:1.16 simonb-wapbl:1.16.0.72 simonb-wapbl-base:1.17 yamt-pf42-base3:1.16 hpcarm-cleanup-nbase:1.16 yamt-pf42-baseX:1.16 yamt-pf42-base2:1.16 yamt-nfs-mp-base2:1.16 wrstuden-revivesa:1.16.0.70 wrstuden-revivesa-base:1.16 yamt-nfs-mp:1.16.0.68 yamt-nfs-mp-base:1.16 yamt-pf42:1.16.0.66 yamt-pf42-base:1.16 ad-socklock-base1:1.16 yamt-lazymbuf-base15:1.16 yamt-lazymbuf-base14:1.16 keiichi-mipv6-nbase:1.16 mjf-devfs2:1.16.0.64 mjf-devfs2-base:1.17 nick-net80211-sync:1.16.0.62 nick-net80211-sync-base:1.16 keiichi-mipv6:1.16.0.60 keiichi-mipv6-base:1.16 bouyer-xeni386-merge1:1.16 matt-armv6-prevmlocking:1.16 wrstuden-fixsa-base-1:1.16 vmlocking2-base3:1.16 netbsd-4-0:1.16.0.58 netbsd-4-0-RELEASE:1.16 bouyer-xeni386-nbase:1.16 yamt-kmem-base3:1.16 cube-autoconf:1.16.0.56 cube-autoconf-base:1.16 yamt-kmem-base2:1.16 bouyer-xeni386:1.16.0.54 bouyer-xeni386-base:1.16 yamt-kmem:1.16.0.52 yamt-kmem-base:1.16 vmlocking2-base2:1.16 reinoud-bufcleanup-nbase:1.16 vmlocking2:1.16.0.50 vmlocking2-base1:1.16 netbsd-4-0-RC5:1.16 matt-nb4-arm:1.16.0.48 matt-nb4-arm-base:1.16 matt-armv6-nbase:1.16 jmcneill-base:1.16 netbsd-4-0-RC4:1.16 mjf-devfs:1.16.0.46 mjf-devfs-base:1.16 bouyer-xenamd64-base2:1.16 vmlocking-nbase:1.16 yamt-x86pmap-base4:1.16 bouyer-xenamd64:1.16.0.44 bouyer-xenamd64-base:1.16 netbsd-4-0-RC3:1.16 yamt-x86pmap-base3:1.16 yamt-x86pmap-base2:1.16 netbsd-4-0-RC2:1.16 yamt-x86pmap:1.16.0.42 yamt-x86pmap-base:1.16 netbsd-4-0-RC1:1.16 matt-armv6:1.16.0.40 matt-armv6-base:1.16 matt-mips64-base:1.16 jmcneill-pm:1.16.0.38 jmcneill-pm-base:1.16 hpcarm-cleanup:1.16.0.36 hpcarm-cleanup-base:1.16 nick-csl-alignment:1.16.0.34 nick-csl-alignment-base:1.16 netbsd-3-1-1-RELEASE:1.9 netbsd-3-0-3-RELEASE:1.9 yamt-idlelwp-base8:1.16 wrstuden-fixsa:1.16.0.32 wrstuden-fixsa-base:1.16 thorpej-atomic:1.16.0.30 thorpej-atomic-base:1.16 reinoud-bufcleanup:1.16.0.28 reinoud-bufcleanup-base:1.16 mjf-ufs-trans:1.16.0.26 mjf-ufs-trans-base:1.16 vmlocking:1.16.0.24 vmlocking-base:1.16 ad-audiomp:1.16.0.22 ad-audiomp-base:1.16 yamt-idlelwp:1.16.0.20 post-newlock2-merge:1.16 newlock2-nbase:1.16 yamt-splraiseipl-base5:1.16 yamt-splraiseipl-base4:1.16 yamt-splraiseipl-base3:1.16 abandoned-netbsd-4-base:1.16 abandoned-netbsd-4:1.16.0.12 netbsd-3-1:1.9.0.6 netbsd-3-1-RELEASE:1.9 netbsd-3-0-2-RELEASE:1.9 yamt-splraiseipl-base2:1.16 netbsd-3-1-RC4:1.9 yamt-splraiseipl:1.16.0.16 yamt-splraiseipl-base:1.16 netbsd-3-1-RC3:1.9 yamt-pdpolicy-base9:1.16 newlock2:1.16.0.14 newlock2-base:1.16 yamt-pdpolicy-base8:1.16 netbsd-3-1-RC2:1.9 netbsd-3-1-RC1:1.9 yamt-pdpolicy-base7:1.16 netbsd-4:1.16.0.18 netbsd-4-base:1.16 yamt-pdpolicy-base6:1.16 chap-midi-nbase:1.16 netbsd-3-0-1-RELEASE:1.9 gdamore-uart:1.16.0.10 gdamore-uart-base:1.16 simonb-timcounters-final:1.15.6.1 yamt-pdpolicy-base5:1.16 chap-midi:1.16.0.8 chap-midi-base:1.16 yamt-pdpolicy-base4:1.16 yamt-pdpolicy-base3:1.16 peter-altq-base:1.16 peter-altq:1.16.0.6 yamt-pdpolicy-base2:1.16 elad-kernelauth-base:1.16 elad-kernelauth:1.16.0.4 yamt-pdpolicy:1.16.0.2 yamt-pdpolicy-base:1.16 yamt-uio_vmspace-base5:1.15 simonb-timecounters:1.15.0.6 simonb-timecounters-base:1.16 rpaulo-netinet-merge-pcb:1.15.0.4 rpaulo-netinet-merge-pcb-base:1.16 yamt-uio_vmspace:1.15.0.2 netbsd-3-0:1.9.0.4 netbsd-3-0-RELEASE:1.9 netbsd-3-0-RC6:1.9 yamt-readahead-base3:1.13 netbsd-3-0-RC5:1.9 netbsd-3-0-RC4:1.9 netbsd-3-0-RC3:1.9 yamt-readahead-base2:1.13 netbsd-3-0-RC2:1.9 net80211-1-nov-2005:1.1.1.3 yamt-readahead-pervnode:1.12 yamt-readahead-perfile:1.12 yamt-readahead:1.12.0.6 yamt-readahead-base:1.12 netbsd-3-0-RC1:1.9 yamt-vop-base3:1.12 netbsd-2-0-3-RELEASE:1.3 netbsd-2-1:1.3.0.6 yamt-vop-base2:1.12 thorpej-vnode-attr:1.12.0.4 thorpej-vnode-attr-base:1.12 netbsd-2-1-RELEASE:1.3 yamt-vop:1.12.0.2 yamt-vop-base:1.12 netbsd-2-1-RC6:1.3 netbsd-2-1-RC5:1.3 netbsd-2-1-RC4:1.3 netbsd-2-1-RC3:1.3 netbsd-2-1-RC2:1.3 netbsd-2-1-RC1:1.3 net80211-2005-07-11:1.1.1.2 yamt-lazymbuf:1.11.0.2 net80211-2005-05-18:1.1.1.2 yamt-km-base4:1.9 netbsd-2-0-2-RELEASE:1.3 yamt-km-base3:1.9 netbsd-3:1.9.0.2 netbsd-3-base:1.9 yamt-km-base2:1.8 yamt-km:1.8.0.4 yamt-km-base:1.8 kent-audio2:1.8.0.2 kent-audio2-base:1.9 netbsd-2-0-1-RELEASE:1.3 kent-audio1-beforemerge:1.8 netbsd-2:1.3.0.4 netbsd-2-base:1.3 kent-audio1:1.5.0.4 kent-audio1-base:1.5 netbsd-2-0-RELEASE:1.3 netbsd-2-0-RC5:1.3 netbsd-2-0-RC4:1.3 netbsd-2-0-RC3:1.3 netbsd-2-0-RC2:1.3 netbsd-2-0-RC1:1.3 ktrace-lwp-base:1.14 ktrace-lwp:1.5.0.2 net80211-28-apr-2004:1.1.1.1 netbsd-2-0:1.3.0.2 netbsd-2-0-base:1.3 net80211-12-dec-2003:1.1.1.1 net80211-6-sep-2003:1.1.1.1 net80211-29-aug-2003:1.1.1.1 FreeBSD:1.1.1; locks; strict; comment @ * @; 1.24 date 2021.07.24.21.31.38; author andvar; state Exp; branches; next 1.23; commitid VtUn1ZIblDZfMh2D; 1.23 date 2017.01.04.03.05.24; author nonaka; state Exp; branches 1.23.16.1 1.23.32.1; next 1.22; 1.22 date 2013.03.30.15.12.28; author christos; state Exp; branches 1.22.12.1 1.22.16.1; next 1.21; 1.21 date 2013.03.30.01.06.37; author christos; state Exp; branches; next 1.20; 1.20 date 2013.03.30.01.05.48; author christos; state Exp; branches; next 1.19; 1.19 date 2013.01.10.17.40.10; author christos; state Exp; branches; next 1.18; 1.18 date 2011.02.21.23.50.08; author jmcneill; state Exp; branches 1.18.4.1 1.18.14.1; next 1.17; 1.17 date 2008.07.28.17.54.02; author christos; state Exp; branches 1.17.16.1 1.17.22.1 1.17.24.1; next 1.16; 1.16 date 2006.03.02.03.38.48; author dyoung; state Exp; branches 1.16.62.1 1.16.64.1 1.16.68.1 1.16.70.1 1.16.72.1 1.16.74.1; next 1.15; 1.15 date 2005.12.29.21.08.26; author dyoung; state Exp; branches 1.15.4.1 1.15.6.1; next 1.14; 1.14 date 2005.12.10.23.26.35; author elad; state Exp; branches; next 1.13; 1.13 date 2005.11.18.16.40.09; author skrll; state Exp; branches; next 1.12; 1.12 date 2005.07.26.22.52.48; author dyoung; state Exp; branches 1.12.6.1; next 1.11; 1.11 date 2005.06.27.05.49.13; author dyoung; state Exp; branches 1.11.2.1; next 1.10; 1.10 date 2005.06.22.06.16.02; author dyoung; state Exp; branches; next 1.9; 1.9 date 2005.02.26.22.45.09; author perry; state Exp; branches; next 1.8; 1.8 date 2005.01.04.00.56.52; author dyoung; state Exp; branches 1.8.2.1 1.8.4.1; next 1.7; 1.7 date 2004.12.23.06.08.52; author dyoung; state Exp; branches; next 1.6; 1.6 date 2004.12.19.08.08.06; author dyoung; state Exp; branches; next 1.5; 1.5 date 2004.07.28.08.12.49; author dyoung; state Exp; branches 1.5.2.1; next 1.4; 1.4 date 2004.07.24.23.53.49; author dyoung; state Exp; branches; next 1.3; 1.3 date 2003.10.13.04.23.56; author dyoung; state Exp; branches; next 1.2; 1.2 date 2003.09.14.01.14.55; author dyoung; state Exp; branches; next 1.1; 1.1 date 2003.08.30.21.26.05; author dyoung; state Exp; branches 1.1.1.1; next ; 1.23.16.1 date 2018.06.28.21.03.07; author phil; state Exp; branches; next 1.23.16.2; commitid fU5eenqZ23IoH5IA; 1.23.16.2 date 2018.06.28.21.23.01; author phil; state Exp; branches; next 1.23.16.3; commitid srXJ0FDHo2RLP5IA; 1.23.16.3 date 2018.07.12.16.35.34; author phil; state Exp; branches; next 1.23.16.4; commitid US0n8axK0fqSKRJA; 1.23.16.4 date 2018.07.16.20.11.11; author phil; state Exp; branches; next ; commitid 57tT6pqTipGJQoKA; 1.23.32.1 date 2021.08.01.22.42.41; author thorpej; state Exp; branches; next ; commitid NihqK3haIgTUWj3D; 1.22.12.1 date 2017.02.05.13.40.58; author skrll; state Exp; branches; next ; 1.22.16.1 date 2017.01.07.08.56.51; author pgoyette; state Exp; branches; next ; 1.18.4.1 date 2013.01.23.00.06.26; author yamt; state Exp; branches; next 1.18.4.2; 1.18.4.2 date 2014.05.22.11.41.09; author yamt; state Exp; branches; next ; 1.18.14.1 date 2013.02.25.00.30.04; author tls; state Exp; branches; next 1.18.14.2; 1.18.14.2 date 2013.06.23.06.20.25; author tls; state Exp; branches; next 1.18.14.3; 1.18.14.3 date 2017.12.03.11.39.03; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.17.16.1 date 2011.03.05.20.55.56; author rmind; state Exp; branches; next ; 1.17.22.1 date 2011.06.06.09.09.54; author jruoho; state Exp; branches; next ; 1.17.24.1 date 2011.03.05.15.10.47; author bouyer; state Exp; branches; next ; 1.16.62.1 date 2008.02.22.16.50.25; author skrll; state Exp; branches; next ; 1.16.64.1 date 2008.09.28.10.40.56; author mjf; state Exp; branches; next ; 1.16.68.1 date 2009.05.04.08.14.16; author yamt; state Exp; branches; next ; 1.16.70.1 date 2008.09.18.04.37.00; author wrstuden; state Exp; branches; next ; 1.16.72.1 date 2008.07.31.04.51.03; author simonb; state Exp; branches; next ; 1.16.74.1 date 2008.10.19.22.17.45; author haad; state Exp; branches; next ; 1.15.4.1 date 2006.09.09.02.58.25; author rpaulo; state Exp; branches; next ; 1.15.6.1 date 2006.04.22.11.40.09; author simonb; state Exp; branches; next ; 1.12.6.1 date 2005.11.22.16.08.16; author yamt; state Exp; branches; next ; 1.11.2.1 date 2006.06.21.15.10.46; author yamt; state Exp; branches; next ; 1.8.2.1 date 2005.04.29.11.29.32; author kent; state Exp; branches; next ; 1.8.4.1 date 2005.03.19.08.36.35; author yamt; state Exp; branches; next ; 1.5.2.1 date 2004.07.28.08.12.49; author skrll; state dead; branches; next 1.5.2.2; 1.5.2.2 date 2004.08.03.10.54.21; author skrll; state Exp; branches; next 1.5.2.3; 1.5.2.3 date 2004.09.18.14.54.39; author skrll; state Exp; branches; next 1.5.2.4; 1.5.2.4 date 2004.09.21.13.36.55; author skrll; state Exp; branches; next 1.5.2.5; 1.5.2.5 date 2005.01.17.19.32.39; author skrll; state Exp; branches; next 1.5.2.6; 1.5.2.6 date 2005.03.04.16.53.17; author skrll; state Exp; branches; next 1.5.2.7; 1.5.2.7 date 2005.11.10.14.10.51; author skrll; state Exp; branches; next 1.5.2.8; 1.5.2.8 date 2005.12.11.10.29.22; author christos; state Exp; branches; next ; 1.1.1.1 date 2003.08.30.21.26.05; author dyoung; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2005.06.21.20.37.44; author dyoung; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2005.11.18.16.20.46; author skrll; state Exp; branches; next ; desc @@ 1.24 log @Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos. @ text @/* $NetBSD: ieee80211_proto.h,v 1.23 2017/01/04 03:05:24 nonaka Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.16 2005/08/13 17:31:48 sam Exp $ */ #ifndef _NET80211_IEEE80211_PROTO_H_ #define _NET80211_IEEE80211_PROTO_H_ /* * 802.11 protocol implementation definitions. */ enum ieee80211_state { IEEE80211_S_INIT = 0, /* default state */ IEEE80211_S_SCAN = 1, /* scanning */ IEEE80211_S_AUTH = 2, /* try to authenticate */ IEEE80211_S_ASSOC = 3, /* try to assoc */ IEEE80211_S_RUN = 4 /* associated */ }; #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) #define IEEE80211_SEND_MGMT(_ic,_ni,_type,_arg) \ ((*(_ic)->ic_send_mgmt)(_ic, _ni, _type, _arg)) extern const char *ieee80211_mgt_subtype_name[]; extern const char *ieee80211_phymode_name[]; void ieee80211_proto_attach(struct ieee80211com *); void ieee80211_proto_detach(struct ieee80211com *); struct ieee80211_node; int ieee80211_input(struct ieee80211com *, struct mbuf *, struct ieee80211_node *, int, u_int32_t); int ieee80211_setup_rates(struct ieee80211_node *ni, const u_int8_t *rates, const u_int8_t *xrates, int flags); void ieee80211_saveie(u_int8_t **, const u_int8_t *); void ieee80211_recv_mgmt(struct ieee80211com *, struct mbuf *, struct ieee80211_node *, int, int, u_int32_t); int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_send_probereq(struct ieee80211_node *ni, const u_int8_t sa[IEEE80211_ADDR_LEN], const u_int8_t da[IEEE80211_ADDR_LEN], const u_int8_t bssid[IEEE80211_ADDR_LEN], const u_int8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); int ieee80211_send_mgmt(struct ieee80211com *, struct ieee80211_node *, int, int); int ieee80211_classify(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); struct mbuf *ieee80211_encap(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); struct mbuf *ieee80211_get_rts(struct ieee80211com *, const struct ieee80211_frame *, uint16_t); struct mbuf *ieee80211_get_cts_to_self(struct ieee80211com *, uint16_t); void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, struct mbuf *); u_int8_t *ieee80211_add_rates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_xrates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_ssid(u_int8_t *, const u_int8_t *, u_int); u_int8_t *ieee80211_add_wpa(u_int8_t *, struct ieee80211com *); struct ieee80211_wme_state; u_int8_t *ieee80211_add_wme_info(u_int8_t *, struct ieee80211_wme_state *); void ieee80211_reset_erp(struct ieee80211com *); void ieee80211_set_shortslottime(struct ieee80211com *, int onoff); int ieee80211_iserp_rateset(struct ieee80211com *, struct ieee80211_rateset *); void ieee80211_set11gbasicrates(struct ieee80211_rateset *, enum ieee80211_phymode); /* * Return the size of the 802.11 header for a management or data frame. */ static __inline int ieee80211_hdrsize(const void *data) { const struct ieee80211_frame *wh = data; int size = sizeof(struct ieee80211_frame); /* NB: we don't handle control frames */ IASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, ("%s: control frame", __func__)); if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) size += IEEE80211_ADDR_LEN; if (ieee80211_has_qos(wh)) size += sizeof(u_int16_t); return size; } /* * Return the size of the 802.11 header; handles any type of frame. */ static __inline int ieee80211_anyhdrsize(const void *data) { const struct ieee80211_frame *wh = data; if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { case IEEE80211_FC0_SUBTYPE_CTS: case IEEE80211_FC0_SUBTYPE_ACK: return sizeof(struct ieee80211_frame_ack); } return sizeof(struct ieee80211_frame_min); } else return ieee80211_hdrsize(data); } /* * Template for an in-kernel authenticator. Authenticators * register with the protocol code and are typically loaded * as separate modules as needed. */ struct ieee80211_authenticator { const char *ia_name; /* printable name */ int (*ia_attach)(struct ieee80211com *); void (*ia_detach)(struct ieee80211com *); void (*ia_node_join)(struct ieee80211com *, struct ieee80211_node *); void (*ia_node_leave)(struct ieee80211com *, struct ieee80211_node *); }; void ieee80211_authenticator_register(int type, const struct ieee80211_authenticator *); void ieee80211_authenticator_unregister(int type); const struct ieee80211_authenticator *ieee80211_authenticator_get(int auth); struct ieee80211req; /* * Template for an MAC ACL policy module. Such modules * register with the protocol code and are passed the sender's * address of each received frame for validation. */ struct ieee80211_aclator { const char *iac_name; /* printable name */ int (*iac_attach)(struct ieee80211com *); void (*iac_detach)(struct ieee80211com *); int (*iac_check)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_add)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_remove)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_flush)(struct ieee80211com *); int (*iac_setpolicy)(struct ieee80211com *, int); int (*iac_getpolicy)(struct ieee80211com *); int (*iac_setioctl)(struct ieee80211com *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211com *, struct ieee80211req *); }; void ieee80211_aclator_register(const struct ieee80211_aclator *); void ieee80211_aclator_unregister(const struct ieee80211_aclator *); const struct ieee80211_aclator *ieee80211_aclator_get(const char *name); /* flags for ieee80211_fix_rate() */ #define IEEE80211_R_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_R_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_R_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_R_DODEL 0x00000008 /* delete ignore rate */ int ieee80211_fix_rate(struct ieee80211_node *, int); /* * WME/WMM support. */ struct wmeParams { u_int8_t wmep_acm; u_int8_t wmep_aifsn; u_int8_t wmep_logcwmin; /* log2(cwmin) */ u_int8_t wmep_logcwmax; /* log2(cwmax) */ u_int8_t wmep_txopLimit; u_int8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */ }; #define IEEE80211_TXOP_TO_US(_txop) ((_txop)<<5) #define IEEE80211_US_TO_TXOP(_us) ((_us)>>5) struct chanAccParams { u_int8_t cap_info; /* version of the current set */ struct wmeParams cap_wmeParams[WME_NUM_AC]; }; struct ieee80211_wme_state { u_int wme_flags; #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME aggressive mode */ u_int wme_hipri_traffic; /* VI/VO frames in beacon interval */ u_int wme_hipri_switch_thresh;/* aggressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* aggressive mode switch hysteresis */ struct wmeParams wme_params[4]; /* from assoc resp for each AC*/ struct chanAccParams wme_wmeChanParams; /* WME params applied to self */ struct chanAccParams wme_wmeBssChanParams;/* WME params bcast to stations */ struct chanAccParams wme_chanParams; /* params applied to self */ struct chanAccParams wme_bssChanParams; /* params bcast to stations */ int (*wme_update)(struct ieee80211com *); }; void ieee80211_wme_initparams(struct ieee80211com *); void ieee80211_wme_updateparams(struct ieee80211com *); void ieee80211_wme_updateparams_locked(struct ieee80211com *); #define ieee80211_new_state(_ic, _nstate, _arg) \ (((_ic)->ic_newstate)((_ic), (_nstate), (_arg))) int ieee80211_compute_duration(const struct ieee80211_frame_min *, const struct ieee80211_key *, int, uint32_t, int, int, struct ieee80211_duration *, struct ieee80211_duration *, int *, int); void ieee80211_beacon_miss(struct ieee80211com *); void ieee80211_print_essid(const u_int8_t *, int); void ieee80211_dump_pkt(const u_int8_t *, int, int, int); extern const char *ieee80211_state_name[IEEE80211_S_MAX]; extern const char *ieee80211_wme_acnames[]; /* * Beacon frames constructed by ieee80211_beacon_alloc * have the following structure filled in so drivers * can update the frame later w/ minimal overhead. */ struct ieee80211_beacon_offsets { u_int16_t *bo_caps; /* capabilities */ u_int8_t *bo_tim; /* start of atim/dtim */ u_int8_t *bo_wme; /* start of WME parameters */ u_int8_t *bo_trailer; /* start of fixed-size trailer */ u_int16_t bo_tim_len; /* atim/dtim length in bytes */ u_int16_t bo_trailer_len; /* trailer length in bytes */ }; struct mbuf *ieee80211_beacon_alloc(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *); int ieee80211_beacon_update(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *, struct mbuf *, int broadcast); /* * Notification methods called from the 802.11 state machine. * Note that while these are defined here, their implementation * is OS-specific. */ void ieee80211_notify_node_join(struct ieee80211com *, struct ieee80211_node *, int newassoc); void ieee80211_notify_node_leave(struct ieee80211com *, struct ieee80211_node *); void ieee80211_notify_scan_done(struct ieee80211com *); #endif /* !_NET80211_IEEE80211_PROTO_H_ */ @ 1.23 log @Export some 802.11 IE manipulate functions. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.22 2013/03/30 15:12:28 christos Exp $ */ d213 1 a213 1 #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME agressive mode */ d215 2 a216 2 u_int wme_hipri_switch_thresh;/* agressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* agressive mode switch hysteresis */ @ 1.23.32.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.24 2021/07/24 21:31:38 andvar Exp $ */ d213 1 a213 1 #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME aggressive mode */ d215 2 a216 2 u_int wme_hipri_switch_thresh;/* aggressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* aggressive mode switch hysteresis */ @ 1.23.16.1 log @Start of WiFi refresh. Copy of FreeBSD net80211 directory with git mirror commit id of 09e3123164ec345822e00465039503686efde455, no changes yet. ieee80211_netbsd.[ch] from ieee80211_freebsd.[ch]. @ text @d1 1 a2 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * d4 1 a4 1 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting d15 6 d33 1 a33 1 * $FreeBSD$ d47 1 a47 4 IEEE80211_S_CAC = 4, /* doing channel availability check */ IEEE80211_S_RUN = 5, /* operational (e.g. associated) */ IEEE80211_S_CSA = 6, /* channel switch announce pending */ IEEE80211_S_SLEEP = 7, /* power save */ d49 1 a49 4 #define IEEE80211_S_MAX (IEEE80211_S_SLEEP+1) #define IEEE80211_SEND_MGMT(_ni,_type,_arg) \ ((*(_ni)->ni_ic->ic_send_mgmt)(_ni, _type, _arg)) d51 2 a52 18 extern const char *mgt_subtype_name[]; extern const char *ctl_subtype_name[]; extern const char *ieee80211_phymode_name[IEEE80211_MODE_MAX]; extern const int ieee80211_opcap[IEEE80211_OPMODE_MAX]; static __inline const char * ieee80211_mgt_subtype_name(uint8_t subtype) { return mgt_subtype_name[(subtype & IEEE80211_FC0_SUBTYPE_MASK) >> IEEE80211_FC0_SUBTYPE_SHIFT]; } static __inline const char * ieee80211_ctl_subtype_name(uint8_t subtype) { return ctl_subtype_name[(subtype & IEEE80211_FC0_SUBTYPE_MASK) >> IEEE80211_FC0_SUBTYPE_SHIFT]; } d54 2 a55 1 const char *ieee80211_reason_to_string(uint16_t); a58 2 void ieee80211_proto_vattach(struct ieee80211vap *); void ieee80211_proto_vdetach(struct ieee80211vap *); d60 18 a77 22 void ieee80211_promisc(struct ieee80211vap *, bool); void ieee80211_allmulti(struct ieee80211vap *, bool); void ieee80211_syncflag(struct ieee80211vap *, int flag); void ieee80211_syncflag_ht(struct ieee80211vap *, int flag); void ieee80211_syncflag_vht(struct ieee80211vap *, int flag); void ieee80211_syncflag_ext(struct ieee80211vap *, int flag); #define ieee80211_input(ni, m, rssi, nf) \ ((ni)->ni_vap->iv_input(ni, m, NULL, rssi, nf)) int ieee80211_input_all(struct ieee80211com *, struct mbuf *, int, int); int ieee80211_input_mimo(struct ieee80211_node *, struct mbuf *); int ieee80211_input_mimo_all(struct ieee80211com *, struct mbuf *); struct ieee80211_bpf_params; int ieee80211_mgmt_output(struct ieee80211_node *, struct mbuf *, int, struct ieee80211_bpf_params *); int ieee80211_raw_xmit(struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *); int ieee80211_output(struct ifnet *, struct mbuf *, const struct sockaddr *, struct route *ro); int ieee80211_vap_pkt_send_dest(struct ieee80211vap *, struct mbuf *, d79 7 a85 12 int ieee80211_raw_output(struct ieee80211vap *, struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *); void ieee80211_send_setup(struct ieee80211_node *, struct mbuf *, int, int, const uint8_t [IEEE80211_ADDR_LEN], const uint8_t [IEEE80211_ADDR_LEN], const uint8_t [IEEE80211_ADDR_LEN]); int ieee80211_vap_transmit(struct ifnet *ifp, struct mbuf *m); void ieee80211_vap_qflush(struct ifnet *ifp); int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_classify(struct ieee80211_node *, struct mbuf *m); struct mbuf *ieee80211_mbuf_adjust(struct ieee80211vap *, int, struct ieee80211_key *, struct mbuf *); struct mbuf *ieee80211_encap(struct ieee80211vap *, struct ieee80211_node *, a86 12 void ieee80211_free_mbuf(struct mbuf *); int ieee80211_send_mgmt(struct ieee80211_node *, int, int); struct ieee80211_appie; int ieee80211_send_probereq(struct ieee80211_node *ni, const uint8_t sa[IEEE80211_ADDR_LEN], const uint8_t da[IEEE80211_ADDR_LEN], const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t *ssid, size_t ssidlen); struct mbuf * ieee80211_ff_encap1(struct ieee80211vap *, struct mbuf *, const struct ether_header *); void ieee80211_tx_complete(struct ieee80211_node *, struct mbuf *, int); d88 4 a91 27 /* * The formation of ProbeResponse frames requires guidance to * deal with legacy clients. When the client is identified as * "legacy 11b" ieee80211_send_proberesp is passed this token. */ #define IEEE80211_SEND_LEGACY_11B 0x1 /* legacy 11b client */ #define IEEE80211_SEND_LEGACY_11 0x2 /* other legacy client */ #define IEEE80211_SEND_LEGACY 0x3 /* any legacy client */ struct mbuf *ieee80211_alloc_proberesp(struct ieee80211_node *, int); int ieee80211_send_proberesp(struct ieee80211vap *, const uint8_t da[IEEE80211_ADDR_LEN], int); struct mbuf *ieee80211_alloc_rts(struct ieee80211com *ic, const uint8_t [IEEE80211_ADDR_LEN], const uint8_t [IEEE80211_ADDR_LEN], uint16_t); struct mbuf *ieee80211_alloc_cts(struct ieee80211com *, const uint8_t [IEEE80211_ADDR_LEN], uint16_t); struct mbuf *ieee80211_alloc_prot(struct ieee80211_node *, const struct mbuf *, uint8_t, int); uint8_t *ieee80211_add_rates(uint8_t *, const struct ieee80211_rateset *); uint8_t *ieee80211_add_xrates(uint8_t *, const struct ieee80211_rateset *); uint8_t *ieee80211_add_ssid(uint8_t *, const uint8_t *, u_int); uint8_t *ieee80211_add_wpa(uint8_t *, const struct ieee80211vap *); uint8_t *ieee80211_add_rsn(uint8_t *, const struct ieee80211vap *); uint8_t *ieee80211_add_qos(uint8_t *, const struct ieee80211_node *); uint16_t ieee80211_getcapinfo(struct ieee80211vap *, struct ieee80211_channel *); d93 1 a93 1 uint8_t * ieee80211_add_wme_info(uint8_t *frm, struct ieee80211_wme_state *wme); d97 3 a99 4 int ieee80211_iserp_rateset(const struct ieee80211_rateset *); void ieee80211_setbasicrates(struct ieee80211_rateset *, enum ieee80211_phymode); void ieee80211_addbasicrates(struct ieee80211_rateset *, d112 1 a112 1 KASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, d114 1 a114 1 if (IEEE80211_IS_DSTODS(wh)) d116 2 a117 2 if (IEEE80211_QOS_HAS_SEQ(wh)) size += sizeof(uint16_t); d122 1 a122 1 * Like ieee80211_hdrsize, but handles any type of frame. a133 2 case IEEE80211_FC0_SUBTYPE_BAR: return sizeof(struct ieee80211_frame_bar); d143 1 a143 3 * as separate modules as needed. One special authenticator * is xauth; it intercepts requests so that protocols like * WPA can be handled in user space. d147 6 a152 4 int (*ia_attach)(struct ieee80211vap *); void (*ia_detach)(struct ieee80211vap *); void (*ia_node_join)(struct ieee80211_node *); void (*ia_node_leave)(struct ieee80211_node *); d163 1 a163 1 * address of each received auth frame for validation. d167 13 a179 13 int (*iac_attach)(struct ieee80211vap *); void (*iac_detach)(struct ieee80211vap *); int (*iac_check)(struct ieee80211vap *, const struct ieee80211_frame *wh); int (*iac_add)(struct ieee80211vap *, const uint8_t mac[IEEE80211_ADDR_LEN]); int (*iac_remove)(struct ieee80211vap *, const uint8_t mac[IEEE80211_ADDR_LEN]); int (*iac_flush)(struct ieee80211vap *); int (*iac_setpolicy)(struct ieee80211vap *, int); int (*iac_getpolicy)(struct ieee80211vap *); int (*iac_setioctl)(struct ieee80211vap *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211vap *, struct ieee80211req *); d186 5 a190 9 #define IEEE80211_F_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_F_DOFRATE 0x00000002 /* use fixed legacy rate */ #define IEEE80211_F_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_F_DODEL 0x00000008 /* delete ignore rate */ #define IEEE80211_F_DOBRS 0x00000010 /* check basic rate set */ #define IEEE80211_F_JOIN 0x00000020 /* sta joining our bss */ #define IEEE80211_F_DOFMCS 0x00000040 /* use fixed HT rate */ int ieee80211_fix_rate(struct ieee80211_node *, struct ieee80211_rateset *, int); d196 6 a201 6 uint8_t wmep_acm; uint8_t wmep_aifsn; uint8_t wmep_logcwmin; /* log2(cwmin) */ uint8_t wmep_logcwmax; /* log2(cwmax) */ uint8_t wmep_txopLimit; uint8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */ d207 1 a207 1 uint8_t cap_info; /* version of the current set */ d213 1 a213 1 #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME aggressive mode */ d215 2 a216 2 u_int wme_hipri_switch_thresh;/* aggressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* aggressive mode switch hysteresis */ d227 10 a236 42 void ieee80211_wme_initparams(struct ieee80211vap *); void ieee80211_wme_updateparams(struct ieee80211vap *); void ieee80211_wme_updateparams_locked(struct ieee80211vap *); void ieee80211_wme_vap_getparams(struct ieee80211vap *vap, struct chanAccParams *); void ieee80211_wme_ic_getparams(struct ieee80211com *ic, struct chanAccParams *); int ieee80211_wme_vap_ac_is_noack(struct ieee80211vap *vap, int ac); /* * Return the WME TID from a QoS frame. If no TID * is present return the index for the "non-QoS" entry. */ static __inline uint8_t ieee80211_gettid(const struct ieee80211_frame *wh) { uint8_t tid; if (IEEE80211_QOS_HAS_SEQ(wh)) { if (IEEE80211_IS_DSTODS(wh)) tid = ((const struct ieee80211_qosframe_addr4 *)wh)-> i_qos[0]; else tid = ((const struct ieee80211_qosframe *)wh)->i_qos[0]; tid &= IEEE80211_QOS_TID; } else tid = IEEE80211_NONQOS_TID; return tid; } void ieee80211_waitfor_parent(struct ieee80211com *); void ieee80211_start_locked(struct ieee80211vap *); void ieee80211_init(void *); void ieee80211_start_all(struct ieee80211com *); void ieee80211_stop_locked(struct ieee80211vap *); void ieee80211_stop(struct ieee80211vap *); void ieee80211_stop_all(struct ieee80211com *); void ieee80211_suspend_all(struct ieee80211com *); void ieee80211_resume_all(struct ieee80211com *); void ieee80211_restart_all(struct ieee80211com *); void ieee80211_dturbo_switch(struct ieee80211vap *, int newflags); void ieee80211_swbmiss(void *arg); d238 2 a239 6 int ieee80211_new_state(struct ieee80211vap *, enum ieee80211_state, int); int ieee80211_new_state_locked(struct ieee80211vap *, enum ieee80211_state, int); void ieee80211_print_essid(const uint8_t *, int); void ieee80211_dump_pkt(struct ieee80211com *, const uint8_t *, int, int, int); a240 1 extern const char *ieee80211_opmode_name[]; d250 6 a255 20 uint8_t bo_flags[4]; /* update/state flags */ uint16_t *bo_caps; /* capabilities */ uint8_t *bo_cfp; /* start of CFParms element */ uint8_t *bo_tim; /* start of atim/dtim */ uint8_t *bo_wme; /* start of WME parameters */ uint8_t *bo_tdma; /* start of TDMA parameters */ uint8_t *bo_tim_trailer;/* start of fixed-size trailer */ uint16_t bo_tim_len; /* atim/dtim length in bytes */ uint16_t bo_tim_trailer_len;/* tim trailer length in bytes */ uint8_t *bo_erp; /* start of ERP element */ uint8_t *bo_htinfo; /* start of HT info element */ uint8_t *bo_ath; /* start of ATH parameters */ uint8_t *bo_appie; /* start of AppIE element */ uint16_t bo_appie_len; /* AppIE length in bytes */ uint16_t bo_csa_trailer_len; uint8_t *bo_csa; /* start of CSA element */ uint8_t *bo_quiet; /* start of Quiet element */ uint8_t *bo_meshconf; /* start of MESHCONF element */ uint8_t *bo_vhtinfo; /* start of VHT info element (XXX VHTCAP?) */ uint8_t *bo_spare[2]; d257 5 a261 37 struct mbuf *ieee80211_beacon_alloc(struct ieee80211_node *); /* * Beacon frame updates are signaled through calls to iv_update_beacon * with one of the IEEE80211_BEACON_* tokens defined below. For devices * that construct beacon frames on the host this can trigger a rebuild * or defer the processing. For devices that offload beacon frame * handling this callback can be used to signal a rebuild. The bo_flags * array in the ieee80211_beacon_offsets structure is intended to record * deferred processing requirements; ieee80211_beacon_update uses the * state to optimize work. Since this structure is owned by the driver * and not visible to the 802.11 layer drivers must supply an iv_update_beacon * callback that marks the flag bits and schedules (as necessary) an update. */ enum { IEEE80211_BEACON_CAPS = 0, /* capabilities */ IEEE80211_BEACON_TIM = 1, /* DTIM/ATIM */ IEEE80211_BEACON_WME = 2, IEEE80211_BEACON_ERP = 3, /* Extended Rate Phy */ IEEE80211_BEACON_HTINFO = 4, /* HT Information */ IEEE80211_BEACON_APPIE = 5, /* Application IE's */ IEEE80211_BEACON_CFP = 6, /* CFParms */ IEEE80211_BEACON_CSA = 7, /* Channel Switch Announcement */ IEEE80211_BEACON_TDMA = 9, /* TDMA Info */ IEEE80211_BEACON_ATH = 10, /* ATH parameters */ IEEE80211_BEACON_MESHCONF = 11, /* Mesh Configuration */ IEEE80211_BEACON_QUIET = 12, /* Quiet time IE */ IEEE80211_BEACON_VHTINFO = 13, /* VHT information */ }; int ieee80211_beacon_update(struct ieee80211_node *, struct mbuf *, int mcast); void ieee80211_csa_startswitch(struct ieee80211com *, struct ieee80211_channel *, int mode, int count); void ieee80211_csa_completeswitch(struct ieee80211com *); void ieee80211_csa_cancelswitch(struct ieee80211com *); void ieee80211_cac_completeswitch(struct ieee80211vap *); d268 7 a274 23 void ieee80211_notify_node_join(struct ieee80211_node *, int newassoc); void ieee80211_notify_node_leave(struct ieee80211_node *); void ieee80211_notify_scan_done(struct ieee80211vap *); void ieee80211_notify_wds_discover(struct ieee80211_node *); void ieee80211_notify_csa(struct ieee80211com *, const struct ieee80211_channel *, int mode, int count); void ieee80211_notify_radar(struct ieee80211com *, const struct ieee80211_channel *); enum ieee80211_notify_cac_event { IEEE80211_NOTIFY_CAC_START = 0, /* CAC timer started */ IEEE80211_NOTIFY_CAC_STOP = 1, /* CAC intentionally stopped */ IEEE80211_NOTIFY_CAC_RADAR = 2, /* CAC stopped due to radar detectio */ IEEE80211_NOTIFY_CAC_EXPIRE = 3, /* CAC expired w/o radar */ }; void ieee80211_notify_cac(struct ieee80211com *, const struct ieee80211_channel *, enum ieee80211_notify_cac_event); void ieee80211_notify_node_deauth(struct ieee80211_node *); void ieee80211_notify_node_auth(struct ieee80211_node *); void ieee80211_notify_country(struct ieee80211vap *, const uint8_t [], const uint8_t cc[2]); void ieee80211_notify_radio(struct ieee80211com *, int); #endif /* _NET80211_IEEE80211_PROTO_H_ */ @ 1.23.16.2 log @Add RCS ID at the top of all the files. @ text @a0 2 /* $NetBSD: $ */ @ 1.23.16.3 log @State save. New kernel config for this brach only. TESTWIFI does produce a kernel. It is not working. athn files not compiling yet and commented out of the TESTWIFI kernel, which only has urtwn 802.11 driver enabled. ieee80211_alq.c and ieee80211_ddb.c not compiling yet. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.23.16.2 2018/06/28 21:23:01 phil Exp $ */ a176 1 #if __FreeBSD__ a178 6 #elif __NetBSD__ FBSDKASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, ("%s: control frame", __func__)); #else #error #endif @ 1.23.16.4 log @State save. urtwn now can attach and shows up in the "ifconfig -a" list. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.23.16.3 2018/07/12 16:35:34 phil Exp $ */ a72 4 #if __NetBSD__ void ieee80211_auth_setup(void); #endif a98 1 #if __FreeBSD__ a100 4 #elif __NetBSD__ int ieee80211_output(struct ifnet *, struct mbuf *, const struct sockaddr *, const struct rtentry *ro); #endif a336 1 #if __FreeBSD__ a337 3 #elif __NetBSD__ int ieee80211_init(struct ifnet *); #endif @ 1.22 log @remove trailing whitespace @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.21 2013/03/30 01:06:37 christos Exp $ */ d88 7 @ 1.22.12.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.23 2017/01/04 03:05:24 nonaka Exp $ */ a87 7 u_int8_t *ieee80211_add_rates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_xrates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_ssid(u_int8_t *, const u_int8_t *, u_int); u_int8_t *ieee80211_add_wpa(u_int8_t *, struct ieee80211com *); struct ieee80211_wme_state; u_int8_t *ieee80211_add_wme_info(u_int8_t *, struct ieee80211_wme_state *); @ 1.22.16.1 log @Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.) @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.23 2017/01/04 03:05:24 nonaka Exp $ */ a87 7 u_int8_t *ieee80211_add_rates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_xrates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_ssid(u_int8_t *, const u_int8_t *, u_int); u_int8_t *ieee80211_add_wpa(u_int8_t *, struct ieee80211com *); struct ieee80211_wme_state; u_int8_t *ieee80211_add_wme_info(u_int8_t *, struct ieee80211_wme_state *); @ 1.21 log @remove trailing whitespace. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.20 2013/03/30 01:05:48 christos Exp $ */ d109 1 a109 1 if (IEEE80211_QOS_HAS_SEQ(wh)) @ 1.20 log @EDCA and QOS additions from OpenBSD @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.19 2013/01/10 17:40:10 christos Exp $ */ d85 1 a85 1 void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, @ 1.19 log @The IEEE80211_F_ flag prefix was used for both the flags in ieee80211_var.h and for the rates in ieee80211_proto.h; rename the rate bits as _R_ to avoid confusion. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.18 2011/02/21 23:50:08 jmcneill Exp $ */ d226 1 a226 1 extern int ieee80211_compute_duration(const struct ieee80211_frame_min *, d266 1 @ 1.18 log @add ieee80211_get_rts and ieee80211_get_cts_to_self from openbsd, ok dyoung@@ @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.17 2008/07/28 17:54:02 christos Exp $ */ d179 4 a182 4 #define IEEE80211_F_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_F_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_F_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_F_DODEL 0x00000008 /* delete ignore rate */ @ 1.18.14.1 log @resync with head @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.18 2011/02/21 23:50:08 jmcneill Exp $ */ d179 4 a182 4 #define IEEE80211_R_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_R_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_R_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_R_DODEL 0x00000008 /* delete ignore rate */ @ 1.18.14.2 log @resync from head @ text @d1 1 a1 1 /* $NetBSD$ */ d85 1 a85 1 void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, d109 1 a109 1 if (ieee80211_has_qos(wh)) d226 1 a226 1 int ieee80211_compute_duration(const struct ieee80211_frame_min *, a265 1 @ 1.18.14.3 log @update from HEAD @ text @a87 7 u_int8_t *ieee80211_add_rates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_xrates(u_int8_t *, const struct ieee80211_rateset *); u_int8_t *ieee80211_add_ssid(u_int8_t *, const u_int8_t *, u_int); u_int8_t *ieee80211_add_wpa(u_int8_t *, struct ieee80211com *); struct ieee80211_wme_state; u_int8_t *ieee80211_add_wme_info(u_int8_t *, struct ieee80211_wme_state *); @ 1.18.4.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.18 2011/02/21 23:50:08 jmcneill Exp $ */ d179 4 a182 4 #define IEEE80211_R_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_R_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_R_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_R_DODEL 0x00000008 /* delete ignore rate */ @ 1.18.4.2 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.18.4.1 2013/01/23 00:06:26 yamt Exp $ */ d85 1 a85 1 void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, d109 1 a109 1 if (ieee80211_has_qos(wh)) d226 1 a226 1 int ieee80211_compute_duration(const struct ieee80211_frame_min *, a265 1 @ 1.17 log @- trailing commas in enums - arithmetic on enums needs cast from Anon Ymous @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.16 2006/03/02 03:38:48 dyoung Exp $ */ d81 4 @ 1.17.22.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.18 2011/02/21 23:50:08 jmcneill Exp $ */ a80 4 struct mbuf *ieee80211_get_rts(struct ieee80211com *, const struct ieee80211_frame *, uint16_t); struct mbuf *ieee80211_get_cts_to_self(struct ieee80211com *, uint16_t); @ 1.17.16.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD$ */ a80 4 struct mbuf *ieee80211_get_rts(struct ieee80211com *, const struct ieee80211_frame *, uint16_t); struct mbuf *ieee80211_get_cts_to_self(struct ieee80211com *, uint16_t); @ 1.17.24.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD$ */ a80 4 struct mbuf *ieee80211_get_rts(struct ieee80211com *, const struct ieee80211_frame *, uint16_t); struct mbuf *ieee80211_get_cts_to_self(struct ieee80211com *, uint16_t); @ 1.16 log @Miscellaneous ath(4) and net80211 updates and bug-fixes coming from sam@@ and various open source repositories: ath(4): Ignore "phantom" beacon misses: should stabilize connections to access points (no more ceaseless link-UP/DOWN indications). Also, re-synchronize beacon timer using the TSF in the first beacon received after joining a BSS---this should also help suppress spurious beacon misses. I am hopeful that this will help ath(4) lossage reported by perry@@ and smb@@. Add new configuration through sysctl. Use a shorter calibration interval until IQ calibration finishes. Report antenna noise through radiotap. Rudiments of Radar Detection / Dynamic Frequency Selection. Update to HAL version 0.9.16.13. Update open sources for changes to the HAL API. Add HALs for additional architectures: add big-endian ELF HALs for sparc64 and for PowerPC. Also add a Alpha HAL. These new HALs are untested under NetBSD. ath(4) + net80211: Make the multicast transmit rate configurable by ioctl. Miscellaneous bug fixes. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.15 2005/12/29 21:08:26 dyoung Exp $ */ d47 1 a47 1 IEEE80211_S_RUN = 4, /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX (IEEE80211_S_RUN+1) @ 1.16.68.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.16 2006/03/02 03:38:48 dyoung Exp $ */ d47 1 a47 1 IEEE80211_S_RUN = 4 /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) @ 1.16.74.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.17 2008/07/28 17:54:02 christos Exp $ */ d47 1 a47 1 IEEE80211_S_RUN = 4 /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) @ 1.16.64.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD$ */ d47 1 a47 1 IEEE80211_S_RUN = 4 /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) @ 1.16.70.1 log @Sync with wrstuden-revivesa-base-2. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.16 2006/03/02 03:38:48 dyoung Exp $ */ d47 1 a47 1 IEEE80211_S_RUN = 4 /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) @ 1.16.72.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.17 2008/07/28 17:54:02 christos Exp $ */ d47 1 a47 1 IEEE80211_S_RUN = 4 /* associated */ d49 1 a49 1 #define IEEE80211_S_MAX ((int)IEEE80211_S_RUN + 1) @ 1.16.62.1 log @Beginning of a sync with net80211 from FreeBSD. Lots to do. Sources taken from 2008-02-22. @ text @d4 1 a4 1 * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting d15 6 d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.27 2007/11/02 05:22:25 sam Exp $ d47 1 a47 4 IEEE80211_S_CAC = 4, /* doing channel availability check */ IEEE80211_S_RUN = 5, /* operational (e.g. associated) */ IEEE80211_S_CSA = 6, /* channel switch announce pending */ IEEE80211_S_SLEEP = 7, /* power save */ d49 1 a49 1 #define IEEE80211_S_MAX (IEEE80211_S_SLEEP+1) a53 10 /* * The formation of some management frames requires guidance to * deal with legacy clients. When the client is identified as * "legacy 11b" this parameter can be passed in the arg param of a * IEEE80211_SEND_MGMT call. */ #define IEEE80211_SEND_LEGACY_11B 0x1 /* legacy 11b client */ #define IEEE80211_SEND_LEGACY_11 0x2 /* other legacy client */ #define IEEE80211_SEND_LEGACY 0x3 /* any legacy client */ d62 1 a62 4 struct ieee80211_node *, int, int, uint32_t); void ieee80211_deliver_data(struct ieee80211com *, struct ieee80211_node *, struct mbuf *); struct mbuf *ieee80211_decap1(struct mbuf *, int *); d64 2 a65 3 const uint8_t *rates, const uint8_t *xrates, int flags); void ieee80211_saveie(uint8_t **, const uint8_t *); void ieee80211_saveath(struct ieee80211_node *, uint8_t *); d67 1 a67 8 struct ieee80211_node *, int, int, int, uint32_t); int ieee80211_mgmt_output(struct ieee80211com *, struct ieee80211_node *, struct mbuf *, int type); struct ieee80211_bpf_params; int ieee80211_raw_xmit(struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *); int ieee80211_output(struct ifnet *, struct mbuf *, const struct sockaddr *, struct rtentry *); d69 6 a76 6 int ieee80211_send_probereq(struct ieee80211_node *ni, const uint8_t sa[IEEE80211_ADDR_LEN], const uint8_t da[IEEE80211_ADDR_LEN], const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); d81 2 d106 1 a106 1 size += sizeof(uint16_t); d111 1 a111 1 * Like ieee80211_hdrsize, but handles any type of frame. a122 2 case IEEE80211_FC0_SUBTYPE_BAR: return sizeof(struct ieee80211_frame_bar); d159 1 a159 1 const uint8_t mac[IEEE80211_ADDR_LEN]); d161 1 a161 1 const uint8_t mac[IEEE80211_ADDR_LEN]); d163 1 a163 1 const uint8_t mac[IEEE80211_ADDR_LEN]); d179 1 a179 4 #define IEEE80211_F_DOBRS 0x00000010 /* check basic rate set */ #define IEEE80211_F_JOIN 0x00000020 /* sta joining our bss */ int ieee80211_fix_rate(struct ieee80211_node *, struct ieee80211_rateset *, int); d185 6 a190 6 uint8_t wmep_acm; uint8_t wmep_aifsn; uint8_t wmep_logcwmin; /* log2(cwmin) */ uint8_t wmep_logcwmax; /* log2(cwmax) */ uint8_t wmep_txopLimit; uint8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */ d196 1 a196 1 uint8_t cap_info; /* version of the current set */ d222 4 a225 2 int ieee80211_init(struct ieee80211com *, int forcescan); void ieee80211_dturbo_switch(struct ieee80211com *, int newflags); d227 2 a228 7 void ieee80211_print_essid(const uint8_t *, int); void ieee80211_dump_pkt(struct ieee80211com *, const uint8_t *, int, int, int); int ieee80211_compute_duration(const struct ieee80211_frame_min *, const struct ieee80211_key *, int, uint32_t, int, int, struct ieee80211_duration *, struct ieee80211_duration *, int *, int); a229 2 extern const char *ieee80211_opmode_name[]; d239 6 a244 39 uint8_t bo_flags[4]; /* update/state flags */ uint16_t *bo_caps; /* capabilities */ uint8_t *bo_cfp; /* start of CFParms element */ uint8_t *bo_tim; /* start of atim/dtim */ uint8_t *bo_wme; /* start of WME parameters */ uint8_t *bo_tim_trailer;/* start of fixed-size trailer */ uint16_t bo_tim_len; /* atim/dtim length in bytes */ uint16_t bo_tim_trailer_len;/* tim trailer length in bytes */ uint8_t *bo_erp; /* start of ERP element */ uint8_t *bo_htinfo; /* start of HT info element */ uint8_t *bo_appie; /* start of AppIE element */ uint16_t bo_appie_len; /* AppIE length in bytes */ uint16_t bo_csa_trailer_len;; uint8_t *bo_csa; /* start of CSA element */ }; struct mbuf *ieee80211_beacon_alloc(struct ieee80211_node *, struct ieee80211_beacon_offsets *); /* * Beacon frame updates are signaled through calls to ic_update_beacon * with one of the IEEE80211_BEACON_* tokens defined below. For devices * that construct beacon frames on the host this can trigger a rebuild * or defer the processing. For devices that offload beacon frame * handling this callback can be used to signal a rebuild. The bo_flags * array in the ieee80211_beacon_offsets structure is intended to record * deferred processing requirements; ieee80211_beacon_update uses the * state to optimize work. Since this structure is owned by the driver * and not visible to the 802.11 layer drivers must supply an ic_update_beacon * callback that marks the flag bits and schedules (as necessary) an update. */ enum { IEEE80211_BEACON_CAPS = 0, /* capabilities */ IEEE80211_BEACON_TIM = 1, /* DTIM/ATIM */ IEEE80211_BEACON_WME = 2, IEEE80211_BEACON_ERP = 3, /* Extended Rate Phy */ IEEE80211_BEACON_HTINFO = 4, /* HT Information */ IEEE80211_BEACON_APPIE = 5, /* Application IE's */ IEEE80211_BEACON_CFP = 6, /* CFParms */ IEEE80211_BEACON_CSA = 7, /* Channel Switch Announcement */ d246 5 a250 2 int ieee80211_beacon_update(struct ieee80211_node *, struct ieee80211_beacon_offsets *, struct mbuf *, int mcast); @ 1.15 log @In atw(4), use ieee80211_compute_duration() to compute IEEE 802.11 Duration and PLCP Length fields, and delete the abominable atw_frame_setdurs() subroutine. Make rtw(4) use the new ieee80211_compute_duration() calling convention. Add an ieee80211_key argument to ieee80211_compute_duration() and lightly constify arguments. Get the crypto header length from the key argument instead of blithely assuming a WEP header. Add some inline documentation. Account for data padding (IEEE80211_F_DATAPAD). @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.14 2005/12/10 23:26:35 elad Exp $ */ d226 1 @ 1.15.4.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.16 2006/03/02 03:38:48 dyoung Exp $ */ a225 1 void ieee80211_beacon_miss(struct ieee80211com *); @ 1.15.6.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.16 2006/03/02 03:38:48 dyoung Exp $ */ a225 1 void ieee80211_beacon_miss(struct ieee80211com *); @ 1.14 log @Multiple inclusion protection, as suggested by christos@@ on tech-kern@@ few days ago. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.13 2005/11/18 16:40:09 skrll Exp $ */ d222 2 a223 1 extern int ieee80211_compute_duration(struct ieee80211_frame_min *, int, @ 1.13 log @Resolve conflicts and adapt to NetBSD. Thanks to dyoung@@, scw@@, and perry@@ for help testing. 2005-08-30 15:27 avatar Properly set ic_curchan before calling back to device driver to do channel switching(ifconfig devX channel Y). This fix should make channel changing works again in monitor mode. Submitted by: sam X-MFC-With: other ic_curchan changes 2005-08-13 18:50 sam revert 1.64: we cannot use the channel characteristics to decide when to do 11g erp sta accounting because b/g channels show up as false positives when operating in 11b. Noticed by: Michal Mertl 2005-08-13 18:31 sam Extend acl support to pass ioctl requests through and use this to add support for getting the current policy setting and collecting the list of mac addresses in the acl table. Submitted by: Michal Mertl (original version) MFC after: 2 weeks 2005-08-10 18:42 sam Don't use ic_curmode to decide when to do 11g station accounting, use the station channel properties. Fixes assert failure/bogus operation when an ap is operating in 11a and has associated stations then switches to 11g. Noticed by: Michal Mertl Reviewed by: avatar MFC after: 2 weeks 2005-08-10 17:22 sam Clarify/fix handling of the current channel: o add ic_curchan and use it uniformly for specifying the current channel instead of overloading ic->ic_bss->ni_chan (or in some drivers ic_ibss_chan) o add ieee80211_scanparams structure to encapsulate scanning-related state captured for rx frames o move rx beacon+probe response frame handling into separate routines o change beacon+probe response handling to treat the scan table more like a scan cache--look for an existing entry before adding a new one; this combined with ic_curchan use corrects handling of stations that were previously found at a different channel o move adhoc neighbor discovery by beacon+probe response frames to a new ieee80211_add_neighbor routine Reviewed by: avatar Tested by: avatar, Michal Mertl MFC after: 2 weeks 2005-08-09 11:19 rwatson Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days 2005-08-08 19:46 sam Split crypto tx+rx key indices and add a key index -> node mapping table: Crypto changes: o change driver/net80211 key_alloc api to return tx+rx key indices; a driver can leave the rx key index set to IEEE80211_KEYIX_NONE or set it to be the same as the tx key index (the former disables use of the key index in building the keyix->node mapping table and is the default setup for naive drivers by null_key_alloc) o add cs_max_keyid to crypto state to specify the max h/w key index a driver will return; this is used to allocate the key index mapping table and to bounds check table loookups o while here introduce ieee80211_keyix (finally) for the type of a h/w key index o change crypto notifiers for rx failures to pass the rx key index up as appropriate (michael failure, replay, etc.) Node table changes: o optionally allocate a h/w key index to node mapping table for the station table using the max key index setting supplied by drivers (note the scan table does not get a map) o defer node table allocation to lateattach so the driver has a chance to set the max key id to size the key index map o while here also defer the aid bitmap allocation o add new ieee80211_find_rxnode_withkey api to find a sta/node entry on frame receive with an optional h/w key index to use in checking mapping table; also updates the map if it does a hash lookup and the found node has a rx key index set in the unicast key; note this work is separated from the old ieee80211_find_rxnode call so drivers do not need to be aware of the new mechanism o move some node table manipulation under the node table lock to close a race on node delete o add ieee80211_node_delucastkey to do the dirty work of deleting unicast key state for a node (deletes any key and handles key map references) Ath driver: o nuke private sc_keyixmap mechansim in favor of net80211 support o update key alloc api These changes close several race conditions for the ath driver operating in ap mode. Other drivers should see no change. Station mode operation for ath no longer uses the key index map but performance tests show no noticeable change and this will be fixed when the scan table is eliminated with the new scanning support. Tested by: Michal Mertl, avatar, others Reviewed by: avatar, others MFC after: 2 weeks 2005-08-08 06:49 sam use ieee80211_iterate_nodes to retrieve station data; the previous code walked the list w/o locking MFC after: 1 week 2005-08-08 04:30 sam Cleanup beacon/listen interval handling: o separate configured beacon interval from listen interval; this avoids potential use of one value for the other (e.g. setting powersavesleep to 0 clobbers the beacon interval used in hostap or ibss mode) o bounds check the beacon interval received in probe response and beacon frames and drop frames with bogus settings; not clear if we should instead clamp the value as any alteration would result in mismatched sta+ap configuration and probably be more confusing (don't want to log to the console but perhaps ok with rate limiting) o while here up max beacon interval to reflect WiFi standard Noticed by: Martin MFC after: 1 week 2005-08-06 05:57 sam fix debug msg typo MFC after: 3 days 2005-08-06 05:56 sam Fix handling of frames sent prior to a station being authorized when operating in ap mode. Previously we allocated a node from the station table, sent the frame (using the node), then released the reference that "held the frame in the table". But while the frame was in flight the node might be reclaimed which could lead to problems. The solution is to add an ieee80211_tmp_node routine that crafts a node that does exist in a table and so isn't ever reclaimed; it exists only so long as the associated frame is in flight. MFC after: 5 days 2005-07-31 07:12 sam close a race between reclaiming a node when a station is inactive and sending the null data frame used to probe inactive stations MFC after: 5 days 2005-07-27 05:41 sam when bridging internally bypass the bss node as traffic to it must follow the normal input path Submitted by: Michal Mertl MFC after: 5 days 2005-07-27 03:53 sam bandaid ni_fails handling so ap's with association failures are reconsidered after a bit; a proper fix involves more changes to the scanning infrastructure Reviewed by: avatar, David Young MFC after: 5 days 2005-07-23 01:16 sam the AREF flag is only meaningful in ap mode; adhoc neighbors now are timed out of the sta/neighbor table 2005-07-23 00:25 sam o move inactivity-related debug msgs under IEEE80211_MSG_INACT o probe inactive neighbors in adhoc mode (they don't have an association id so previously were being timed out) MFC after: 3 days 2005-07-22 22:11 sam split xmit of probe request frame out into a separate routine that takes explicit parameters; this will be needed when scanning is decoupled from the state machine to do bg scanning MFC after: 3 days 2005-07-22 21:48 sam split 802.11 frame xmit setup code into ieee80211_send_setup MFC after: 3 days 2005-07-22 18:57 sam simplify ic_newassoc callback MFC after: 3 days 2005-07-22 18:54 sam simplify ieee80211_ibss_merge api MFC after: 3 days 2005-07-22 18:50 sam add stats we know we'll need soon and some spare fields for future expansion MFC after: 3 days 2005-07-22 18:45 sam simplify tim callback api MFC after: 3 days 2005-07-22 18:42 sam don't include 802.3 header in min frame length calculation as it may not be present for a frag; fixes problem with small (fragmented) frames being dropped Obtained from: Atheros MFC after: 3 days 2005-07-22 18:36 sam simplify ieee80211_node_authorize and ieee80211_node_unauthorize api's MFC after: 3 days 2005-07-22 18:31 sam simplifiy ieee80211_send_nulldata api MFC after: 3 days 2005-07-22 18:29 sam simplify rate set api's by removing ic parameter (implicit in node reference) MFC after: 3 days 2005-07-22 18:21 sam reject association requests with a wpa/rsn ie when wpa/rsn is not configured on the ap; previously we either ignored the ie or (possibly) failed an assertion Obtained from: Atheros MFC after: 3 days 2005-07-22 18:16 sam missed one in last commit; add device name to discard msgs 2005-07-22 18:13 sam include device name in discard msgs 2005-07-22 18:12 sam add diag msgs for frames discarded because the direction field is wrong 2005-07-22 18:08 sam split data frame delivery out to a new function ieee80211_deliver_data 2005-07-22 18:00 sam o add IEEE80211_IOC_FRAGTHRESHOLD for getting+setting the tx fragmentation threshold o fix bounds checking on IEEE80211_IOC_RTSTHRESHOLD MFC after: 3 days 2005-07-22 17:55 sam o add IEEE80211_FRAG_DEFAULT o move default settings for RTS and frag thresholds to ieee80211_var.h 2005-07-22 17:50 sam diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use it instead of -1 2005-07-22 17:37 sam add flags missed in last merge 2005-07-22 17:36 sam Diff reduction against p4: o add ic_flags_ext for eventual extention of ic_flags o define/reserve flag+capabilities bits for superg, bg scan, and roaming support o refactor debug msg macros MFC after: 3 days 2005-07-22 06:17 sam send a response when an auth request is denied due to an acl; might be better to silently ignore the frame but this way we give stations a chance of figuring out what's wrong 2005-07-22 06:15 sam remove excess whitespace 2005-07-22 05:55 sam use IF_HANDOFF when bridging frames internally so if_start gets called; fixes communication between associated sta's MFC after: 3 days 2005-07-11 04:06 sam Handle encrypt of arbitarily fragmented mbuf chains: previously we bailed if we couldn't collect the 16-bytes of data required for an aes block cipher in 2 mbufs; now we deal with it. While here make space accounting signed so a sanity check does the right thing for malformed mbuf chains. Approved by: re (scottl) 2005-07-11 04:00 sam nuke assert that duplicates real check Reviewed by: avatar Approved by: re (scottl) @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.12 2005/07/26 22:52:48 dyoung Exp $ */ d260 1 a260 1 #endif /* _NET80211_IEEE80211_PROTO_H_ */ @ 1.12 log @Resolve conflicts. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.10 2005/06/22 06:16:02 dyoung Exp $ */ d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.9 2005/01/24 20:38:26 sam Exp $ d63 3 d68 7 a74 1 int ieee80211_send_nulldata(struct ieee80211com *, struct ieee80211_node *); d148 1 d167 2 d179 1 a179 1 int ieee80211_fix_rate(struct ieee80211com *, struct ieee80211_node *, int); @ 1.12.6.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.12 2005/07/26 22:52:48 dyoung Exp $ */ d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.16 2005/08/13 17:31:48 sam Exp $ a62 3 int ieee80211_setup_rates(struct ieee80211_node *ni, const u_int8_t *rates, const u_int8_t *xrates, int flags); void ieee80211_saveie(u_int8_t **, const u_int8_t *); d65 1 a65 7 int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_send_probereq(struct ieee80211_node *ni, const u_int8_t sa[IEEE80211_ADDR_LEN], const u_int8_t da[IEEE80211_ADDR_LEN], const u_int8_t bssid[IEEE80211_ADDR_LEN], const u_int8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); a138 1 struct ieee80211req; a156 2 int (*iac_setioctl)(struct ieee80211com *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211com *, struct ieee80211req *); d167 1 a167 1 int ieee80211_fix_rate(struct ieee80211_node *, int); @ 1.11 log @rtw: Try to get hardware WEP to work. It seems to work in the RX direction, but not in the TX direction. The net80211 crypto framework doesn't seem to cope very well with the assymetry (I'm probably missing something), so I will use software WEP for now. net80211: In ieee80211_compute_duration, figure out whether to add the WEP header to the packet overhead by checking the WEP bit in the Frame Control field of the 802.11 header, instead of checking the IEEE80211_F_PRIVACY flag. Also, if the WEP bit is present, assume that the frame described by (wh, len) has already already been WEP encapsulated, and adjust the payload length accordingly. XXX that's a grotty hack that I will have to revisit, later. @ text @@ 1.11.2.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.11 2005/06/27 05:49:13 dyoung Exp $ */ d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.16 2005/08/13 17:31:48 sam Exp $ a62 3 int ieee80211_setup_rates(struct ieee80211_node *ni, const u_int8_t *rates, const u_int8_t *xrates, int flags); void ieee80211_saveie(u_int8_t **, const u_int8_t *); d65 1 a65 7 int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_send_probereq(struct ieee80211_node *ni, const u_int8_t sa[IEEE80211_ADDR_LEN], const u_int8_t da[IEEE80211_ADDR_LEN], const u_int8_t bssid[IEEE80211_ADDR_LEN], const u_int8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); a138 1 struct ieee80211req; a156 2 int (*iac_setioctl)(struct ieee80211com *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211com *, struct ieee80211req *); d167 1 a167 1 int ieee80211_fix_rate(struct ieee80211_node *, int); d210 1 a210 2 extern int ieee80211_compute_duration(const struct ieee80211_frame_min *, const struct ieee80211_key *, int, a212 1 void ieee80211_beacon_miss(struct ieee80211com *); d248 1 a248 1 #endif /* !_NET80211_IEEE80211_PROTO_H_ */ @ 1.10 log @Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9) from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch], sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw, awi, ipw, iwi, rtw, wi) for the new net80211(9) API. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.7 2004/12/23 06:08:52 dyoung Exp $ */ d210 1 a210 1 extern int ieee80211_compute_duration(struct ieee80211_frame *, int, @ 1.9 log @nuke trailing whitespace @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.8 2005/01/04 00:56:52 dyoung Exp $ */ d4 1 a4 1 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.4 2003/08/19 22:17:03 sam Exp $ d55 1 d57 2 a58 2 extern void ieee80211_proto_attach(struct ifnet *); extern void ieee80211_proto_detach(struct ifnet *); d61 1 a61 1 extern void ieee80211_input(struct ifnet *, struct mbuf *, d63 1 a63 1 extern void ieee80211_recv_mgmt(struct ieee80211com *, struct mbuf *, d65 2 a66 1 extern int ieee80211_send_mgmt(struct ieee80211com *, struct ieee80211_node *, d68 5 a72 3 extern struct mbuf *ieee80211_encap(struct ifnet *, struct mbuf *, struct ieee80211_node **); extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, d74 134 a207 3 extern struct mbuf *ieee80211_decap(struct ifnet *, struct mbuf *); extern u_int8_t *ieee80211_add_rates(u_int8_t *frm, const struct ieee80211_rateset *); a209 6 extern u_int8_t *ieee80211_add_xrates(u_int8_t *frm, const struct ieee80211_rateset *); extern void ieee80211_print_essid(u_int8_t *, int); extern void ieee80211_dump_pkt(u_int8_t *, int, int, int); extern int ieee80211_ibss_merge(struct ieee80211com *, struct ieee80211_node *); d213 2 d217 31 @ 1.8 log @IBSS-merge clean-up, inspired by some Linux patches from Jon Anderson (mail@@janderson.ca): remove ieee80211_ibss_merge's TSFT argument. Do the TSFT comparison in the drivers (ath, atw). Remove a lot of extraneous debug statements from ieee80211_ibss_merge. Set the ieee80211_node's state to IEEE80211_STA_BSS after it's been copied to the ic_bss, not before. In struct ieee80211_node, make the ni_tstamp field a union of a uint64_t and the 8 TSF octets so that it's easier to compare a neighbor's TSF with the local TSF. Log IBSS merges (Greg Troxel's suggestion). Also log IBSS creation. These are rare and important events that deserve to be logged. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.7 2004/12/23 06:08:52 dyoung Exp $ */ d68 1 a68 1 extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, @ 1.8.2.1 log @sync with -current @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.9 2005/02/26 22:45:09 perry Exp $ */ d68 1 a68 1 extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, @ 1.8.4.1 log @sync with head. xen and whitespace. xen part is not finished. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.8 2005/01/04 00:56:52 dyoung Exp $ */ d68 1 a68 1 extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, @ 1.7 log @Fix a bug in ieee80211_compute_duration: the 802.11 Duration field in an 802.11 unicast data packet is equal to the duration of the SIFS and Acknowledgement. That is, the amount of time reserved *after* the packet has finished transmitting. Change the arguments to ieee80211_compute_duration: pass the entire packet length, not just the payload length. Add a 'debug' argument to ieee80211_compute_duration and its helper subroutine, ieee80211_compute_duration1. If debug != 0, ieee80211_compute_duration printfs its arguments and several local variables. In rtw(4), load the 802.11 Duration field with the result from ieee80211_compute_duration. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.6 2004/12/19 08:08:06 dyoung Exp $ */ d80 1 a80 1 struct ieee80211_node *, u_int64_t); @ 1.6 log @Define for more bits in the Service field of the 802.11 PLCP Header. For use by the subroutine ieee80211_compute_duration, add struct ieee80211_duration, and #define a number of microsecond constants used for the transmit timing of 802.11 packets. Add the subroutine ieee80211_compute_duration, which computes for any packet the appropriate 802.11 Duration field, the PLCP Length field, as well as the Duration and Length fields for an RTS frame. atw(4), rtw(4), future drivers, and possibly ath(4) will share ieee80211_compute_duration. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5 2004/07/28 08:12:49 dyoung Exp $ */ d83 1 a83 1 struct ieee80211_duration *, int *); @ 1.5 log @Vastly simplify ieee80211_ibss_merge, eliminating the needless callbacks. Change the reference IBSS-merge implementation in atw to match. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.4 2004/07/24 23:53:49 dyoung Exp $ */ d81 3 @ 1.5.2.1 log @file ieee80211_proto.h was added on branch ktrace-lwp on 2004-08-03 10:54:21 +0000 @ text @d1 83 @ 1.5.2.2 log @Sync with HEAD @ text @a0 83 /* $NetBSD: ieee80211_proto.h,v 1.5.2.1 2004/08/03 10:54:21 skrll Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.4 2003/08/19 22:17:03 sam Exp $ */ #ifndef _NET80211_IEEE80211_PROTO_H_ #define _NET80211_IEEE80211_PROTO_H_ /* * 802.11 protocol implementation definitions. */ enum ieee80211_state { IEEE80211_S_INIT = 0, /* default state */ IEEE80211_S_SCAN = 1, /* scanning */ IEEE80211_S_AUTH = 2, /* try to authenticate */ IEEE80211_S_ASSOC = 3, /* try to assoc */ IEEE80211_S_RUN = 4, /* associated */ }; #define IEEE80211_S_MAX (IEEE80211_S_RUN+1) #define IEEE80211_SEND_MGMT(_ic,_ni,_type,_arg) \ ((*(_ic)->ic_send_mgmt)(_ic, _ni, _type, _arg)) extern const char *ieee80211_mgt_subtype_name[]; extern void ieee80211_proto_attach(struct ifnet *); extern void ieee80211_proto_detach(struct ifnet *); struct ieee80211_node; extern void ieee80211_input(struct ifnet *, struct mbuf *, struct ieee80211_node *, int, u_int32_t); extern void ieee80211_recv_mgmt(struct ieee80211com *, struct mbuf *, struct ieee80211_node *, int, int, u_int32_t); extern int ieee80211_send_mgmt(struct ieee80211com *, struct ieee80211_node *, int, int); extern struct mbuf *ieee80211_encap(struct ifnet *, struct mbuf *, struct ieee80211_node **); extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, struct mbuf *); extern struct mbuf *ieee80211_decap(struct ifnet *, struct mbuf *); extern u_int8_t *ieee80211_add_rates(u_int8_t *frm, const struct ieee80211_rateset *); #define ieee80211_new_state(_ic, _nstate, _arg) \ (((_ic)->ic_newstate)((_ic), (_nstate), (_arg))) extern u_int8_t *ieee80211_add_xrates(u_int8_t *frm, const struct ieee80211_rateset *); extern void ieee80211_print_essid(u_int8_t *, int); extern void ieee80211_dump_pkt(u_int8_t *, int, int, int); extern int ieee80211_ibss_merge(struct ieee80211com *, struct ieee80211_node *, u_int64_t); extern const char *ieee80211_state_name[IEEE80211_S_MAX]; #endif /* _NET80211_IEEE80211_PROTO_H_ */ @ 1.5.2.3 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.2 2004/09/18 14:54:39 skrll Exp $ */ @ 1.5.2.4 log @Fix the sync with head I botched. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.3 2004/09/21 13:36:55 skrll Exp $ */ @ 1.5.2.5 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.4 2005/01/17 19:32:39 skrll Exp $ */ d80 1 a80 4 struct ieee80211_node *); extern int ieee80211_compute_duration(struct ieee80211_frame *, int, uint32_t, int, int, struct ieee80211_duration *, struct ieee80211_duration *, int *, int); @ 1.5.2.6 log @Sync with HEAD. Hi Perry! @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.5 2005/03/04 16:53:17 skrll Exp $ */ d68 1 a68 1 extern void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, @ 1.5.2.7 log @Sync with HEAD. Here we go again... @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.6 2005/11/10 14:10:51 skrll Exp $ */ d4 1 a4 1 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.9 2005/01/24 20:38:26 sam Exp $ a54 1 extern const char *ieee80211_phymode_name[]; d56 2 a57 2 void ieee80211_proto_attach(struct ieee80211com *); void ieee80211_proto_detach(struct ieee80211com *); d60 1 a60 1 int ieee80211_input(struct ieee80211com *, struct mbuf *, d62 1 a62 1 void ieee80211_recv_mgmt(struct ieee80211com *, struct mbuf *, d64 1 a64 2 int ieee80211_send_nulldata(struct ieee80211com *, struct ieee80211_node *); int ieee80211_send_mgmt(struct ieee80211com *, struct ieee80211_node *, d66 3 a68 5 int ieee80211_classify(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); struct mbuf *ieee80211_encap(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, d70 3 a72 134 void ieee80211_reset_erp(struct ieee80211com *); void ieee80211_set_shortslottime(struct ieee80211com *, int onoff); int ieee80211_iserp_rateset(struct ieee80211com *, struct ieee80211_rateset *); void ieee80211_set11gbasicrates(struct ieee80211_rateset *, enum ieee80211_phymode); /* * Return the size of the 802.11 header for a management or data frame. */ static __inline int ieee80211_hdrsize(const void *data) { const struct ieee80211_frame *wh = data; int size = sizeof(struct ieee80211_frame); /* NB: we don't handle control frames */ IASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, ("%s: control frame", __func__)); if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) size += IEEE80211_ADDR_LEN; if (IEEE80211_QOS_HAS_SEQ(wh)) size += sizeof(u_int16_t); return size; } /* * Return the size of the 802.11 header; handles any type of frame. */ static __inline int ieee80211_anyhdrsize(const void *data) { const struct ieee80211_frame *wh = data; if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { case IEEE80211_FC0_SUBTYPE_CTS: case IEEE80211_FC0_SUBTYPE_ACK: return sizeof(struct ieee80211_frame_ack); } return sizeof(struct ieee80211_frame_min); } else return ieee80211_hdrsize(data); } /* * Template for an in-kernel authenticator. Authenticators * register with the protocol code and are typically loaded * as separate modules as needed. */ struct ieee80211_authenticator { const char *ia_name; /* printable name */ int (*ia_attach)(struct ieee80211com *); void (*ia_detach)(struct ieee80211com *); void (*ia_node_join)(struct ieee80211com *, struct ieee80211_node *); void (*ia_node_leave)(struct ieee80211com *, struct ieee80211_node *); }; void ieee80211_authenticator_register(int type, const struct ieee80211_authenticator *); void ieee80211_authenticator_unregister(int type); const struct ieee80211_authenticator *ieee80211_authenticator_get(int auth); /* * Template for an MAC ACL policy module. Such modules * register with the protocol code and are passed the sender's * address of each received frame for validation. */ struct ieee80211_aclator { const char *iac_name; /* printable name */ int (*iac_attach)(struct ieee80211com *); void (*iac_detach)(struct ieee80211com *); int (*iac_check)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_add)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_remove)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_flush)(struct ieee80211com *); int (*iac_setpolicy)(struct ieee80211com *, int); int (*iac_getpolicy)(struct ieee80211com *); }; void ieee80211_aclator_register(const struct ieee80211_aclator *); void ieee80211_aclator_unregister(const struct ieee80211_aclator *); const struct ieee80211_aclator *ieee80211_aclator_get(const char *name); /* flags for ieee80211_fix_rate() */ #define IEEE80211_F_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_F_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_F_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_F_DODEL 0x00000008 /* delete ignore rate */ int ieee80211_fix_rate(struct ieee80211com *, struct ieee80211_node *, int); /* * WME/WMM support. */ struct wmeParams { u_int8_t wmep_acm; u_int8_t wmep_aifsn; u_int8_t wmep_logcwmin; /* log2(cwmin) */ u_int8_t wmep_logcwmax; /* log2(cwmax) */ u_int8_t wmep_txopLimit; u_int8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */ }; #define IEEE80211_TXOP_TO_US(_txop) ((_txop)<<5) #define IEEE80211_US_TO_TXOP(_us) ((_us)>>5) struct chanAccParams { u_int8_t cap_info; /* version of the current set */ struct wmeParams cap_wmeParams[WME_NUM_AC]; }; struct ieee80211_wme_state { u_int wme_flags; #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME agressive mode */ u_int wme_hipri_traffic; /* VI/VO frames in beacon interval */ u_int wme_hipri_switch_thresh;/* agressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* agressive mode switch hysteresis */ struct wmeParams wme_params[4]; /* from assoc resp for each AC*/ struct chanAccParams wme_wmeChanParams; /* WME params applied to self */ struct chanAccParams wme_wmeBssChanParams;/* WME params bcast to stations */ struct chanAccParams wme_chanParams; /* params applied to self */ struct chanAccParams wme_bssChanParams; /* params bcast to stations */ int (*wme_update)(struct ieee80211com *); }; void ieee80211_wme_initparams(struct ieee80211com *); void ieee80211_wme_updateparams(struct ieee80211com *); void ieee80211_wme_updateparams_locked(struct ieee80211com *); d75 7 a81 1 extern int ieee80211_compute_duration(struct ieee80211_frame_min *, int, a83 2 void ieee80211_print_essid(const u_int8_t *, int); void ieee80211_dump_pkt(const u_int8_t *, int, int, int); a85 31 extern const char *ieee80211_wme_acnames[]; /* * Beacon frames constructed by ieee80211_beacon_alloc * have the following structure filled in so drivers * can update the frame later w/ minimal overhead. */ struct ieee80211_beacon_offsets { u_int16_t *bo_caps; /* capabilities */ u_int8_t *bo_tim; /* start of atim/dtim */ u_int8_t *bo_wme; /* start of WME parameters */ u_int8_t *bo_trailer; /* start of fixed-size trailer */ u_int16_t bo_tim_len; /* atim/dtim length in bytes */ u_int16_t bo_trailer_len; /* trailer length in bytes */ }; struct mbuf *ieee80211_beacon_alloc(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *); int ieee80211_beacon_update(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *, struct mbuf *, int broadcast); /* * Notification methods called from the 802.11 state machine. * Note that while these are defined here, their implementation * is OS-specific. */ void ieee80211_notify_node_join(struct ieee80211com *, struct ieee80211_node *, int newassoc); void ieee80211_notify_node_leave(struct ieee80211com *, struct ieee80211_node *); void ieee80211_notify_scan_done(struct ieee80211com *); @ 1.5.2.8 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.5.2.7 2005/12/11 10:29:22 christos Exp $ */ d33 1 a33 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.16 2005/08/13 17:31:48 sam Exp $ a62 3 int ieee80211_setup_rates(struct ieee80211_node *ni, const u_int8_t *rates, const u_int8_t *xrates, int flags); void ieee80211_saveie(u_int8_t **, const u_int8_t *); d65 1 a65 7 int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_send_probereq(struct ieee80211_node *ni, const u_int8_t sa[IEEE80211_ADDR_LEN], const u_int8_t da[IEEE80211_ADDR_LEN], const u_int8_t bssid[IEEE80211_ADDR_LEN], const u_int8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); a138 1 struct ieee80211req; a156 2 int (*iac_setioctl)(struct ieee80211com *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211com *, struct ieee80211req *); d167 1 a167 1 int ieee80211_fix_rate(struct ieee80211_node *, int); d248 1 a248 1 #endif /* !_NET80211_IEEE80211_PROTO_H_ */ @ 1.4 log @Pull the IBSS merge logic out of atw and into net80211, since ath will eventually share it. In the IBSS merge logic, check conditions in a different order so that they run faster in the common case---no merge. Fix the rate-limiting on the debug outputs (enabled by IFF_LINK0). @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.3 2003/10/13 04:23:56 dyoung Exp $ */ d79 2 a80 4 extern void ieee80211_ibss_merge(struct ieee80211com *, void (*)(struct ieee80211com *, struct mbuf *, struct ieee80211_node *, int, int, u_int32_t), struct mbuf *, struct ieee80211_node *, int, int, u_int32_t); @ 1.3 log @Add Kevin Lahey's power-saving support from the old 802.11 layer @ text @d1 1 a1 1 /* $NetBSD: ieee80211_proto.h,v 1.2 2003/09/14 01:14:55 dyoung Exp $ */ d79 4 @ 1.2 log @Insert RCSIDs. @ text @d1 1 a1 1 /* $NetBSD$ */ d68 2 @ 1.1 log @Initial revision @ text @d1 1 @ 1.1.1.1 log @Pull in net80211/ from FreeBSD. This contains Sam Leffler's enhancements to the 802.11 layer, which are necessary for ath(4), the Atheros-chipset driver. @ text @@ 1.1.1.2 log @Import FreeBSD's net80211(9) of 2005-05-18 @ text @d3 1 a3 1 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting d32 1 a32 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.11 2005/04/04 04:27:20 sam Exp $ a53 1 extern const char *ieee80211_phymode_name[]; d55 2 a56 2 void ieee80211_proto_attach(struct ieee80211com *); void ieee80211_proto_detach(struct ieee80211com *); d59 1 a59 1 int ieee80211_input(struct ieee80211com *, struct mbuf *, d61 1 a61 1 void ieee80211_recv_mgmt(struct ieee80211com *, struct mbuf *, d63 1 a63 2 int ieee80211_send_nulldata(struct ieee80211com *, struct ieee80211_node *); int ieee80211_send_mgmt(struct ieee80211com *, struct ieee80211_node *, d65 5 a69 140 int ieee80211_classify(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); struct mbuf *ieee80211_encap(struct ieee80211com *, struct mbuf *, struct ieee80211_node *); void ieee80211_pwrsave(struct ieee80211com *, struct ieee80211_node *, struct mbuf *); void ieee80211_reset_erp(struct ieee80211com *); void ieee80211_set_shortslottime(struct ieee80211com *, int onoff); int ieee80211_iserp_rateset(struct ieee80211com *, struct ieee80211_rateset *); void ieee80211_set11gbasicrates(struct ieee80211_rateset *, enum ieee80211_phymode); /* * Return the size of the 802.11 header for a management or data frame. */ static __inline int ieee80211_hdrsize(const void *data) { const struct ieee80211_frame *wh = data; int size = sizeof(struct ieee80211_frame); /* NB: we don't handle control frames */ KASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, ("%s: control frame", __func__)); if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) size += IEEE80211_ADDR_LEN; if (IEEE80211_QOS_HAS_SEQ(wh)) size += sizeof(u_int16_t); return size; } /* * Return the size of the 802.11 header; handles any type of frame. */ static __inline int ieee80211_anyhdrsize(const void *data) { const struct ieee80211_frame *wh = data; if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { case IEEE80211_FC0_SUBTYPE_CTS: case IEEE80211_FC0_SUBTYPE_ACK: return sizeof(struct ieee80211_frame_ack); } return sizeof(struct ieee80211_frame_min); } else return ieee80211_hdrsize(data); } /* * Template for an in-kernel authenticator. Authenticators * register with the protocol code and are typically loaded * as separate modules as needed. */ struct ieee80211_authenticator { const char *ia_name; /* printable name */ int (*ia_attach)(struct ieee80211com *); void (*ia_detach)(struct ieee80211com *); void (*ia_node_join)(struct ieee80211com *, struct ieee80211_node *); void (*ia_node_leave)(struct ieee80211com *, struct ieee80211_node *); }; void ieee80211_authenticator_register(int type, const struct ieee80211_authenticator *); void ieee80211_authenticator_unregister(int type); const struct ieee80211_authenticator *ieee80211_authenticator_get(int auth); /* * Template for an MAC ACL policy module. Such modules * register with the protocol code and are passed the sender's * address of each received frame for validation. */ struct ieee80211_aclator { const char *iac_name; /* printable name */ int (*iac_attach)(struct ieee80211com *); void (*iac_detach)(struct ieee80211com *); int (*iac_check)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_add)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_remove)(struct ieee80211com *, const u_int8_t mac[IEEE80211_ADDR_LEN]); int (*iac_flush)(struct ieee80211com *); int (*iac_setpolicy)(struct ieee80211com *, int); int (*iac_getpolicy)(struct ieee80211com *); }; void ieee80211_aclator_register(const struct ieee80211_aclator *); void ieee80211_aclator_unregister(const struct ieee80211_aclator *); const struct ieee80211_aclator *ieee80211_aclator_get(const char *name); /* flags for ieee80211_fix_rate() */ #define IEEE80211_F_DOSORT 0x00000001 /* sort rate list */ #define IEEE80211_F_DOFRATE 0x00000002 /* use fixed rate */ #define IEEE80211_F_DONEGO 0x00000004 /* calc negotiated rate */ #define IEEE80211_F_DODEL 0x00000008 /* delete ignore rate */ int ieee80211_fix_rate(struct ieee80211com *, struct ieee80211_node *, int); /* * WME/WMM support. */ struct wmeParams { u_int8_t wmep_acm; u_int8_t wmep_aifsn; u_int8_t wmep_logcwmin; /* log2(cwmin) */ u_int8_t wmep_logcwmax; /* log2(cwmax) */ u_int8_t wmep_txopLimit; u_int8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */ }; #define IEEE80211_TXOP_TO_US(_txop) ((_txop)<<5) #define IEEE80211_US_TO_TXOP(_us) ((_us)>>5) struct chanAccParams { u_int8_t cap_info; /* version of the current set */ struct wmeParams cap_wmeParams[WME_NUM_AC]; }; struct ieee80211_wme_state { u_int wme_flags; #define WME_F_AGGRMODE 0x00000001 /* STATUS: WME agressive mode */ u_int wme_hipri_traffic; /* VI/VO frames in beacon interval */ u_int wme_hipri_switch_thresh;/* agressive mode switch thresh */ u_int wme_hipri_switch_hysteresis;/* agressive mode switch hysteresis */ struct wmeParams wme_params[4]; /* from assoc resp for each AC*/ struct chanAccParams wme_wmeChanParams; /* WME params applied to self */ struct chanAccParams wme_wmeBssChanParams;/* WME params bcast to stations */ struct chanAccParams wme_chanParams; /* params applied to self */ struct chanAccParams wme_bssChanParams; /* params bcast to stations */ int (*wme_update)(struct ieee80211com *); }; void ieee80211_wme_initparams(struct ieee80211com *); void ieee80211_wme_updateparams(struct ieee80211com *); void ieee80211_wme_updateparams_locked(struct ieee80211com *); d72 4 a75 2 void ieee80211_print_essid(const u_int8_t *, int); void ieee80211_dump_pkt(const u_int8_t *, int, int, int); a77 31 extern const char *ieee80211_wme_acnames[]; /* * Beacon frames constructed by ieee80211_beacon_alloc * have the following structure filled in so drivers * can update the frame later w/ minimal overhead. */ struct ieee80211_beacon_offsets { u_int16_t *bo_caps; /* capabilities */ u_int8_t *bo_tim; /* start of atim/dtim */ u_int8_t *bo_wme; /* start of WME parameters */ u_int8_t *bo_trailer; /* start of fixed-size trailer */ u_int16_t bo_tim_len; /* atim/dtim length in bytes */ u_int16_t bo_trailer_len; /* trailer length in bytes */ }; struct mbuf *ieee80211_beacon_alloc(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *); int ieee80211_beacon_update(struct ieee80211com *, struct ieee80211_node *, struct ieee80211_beacon_offsets *, struct mbuf *, int broadcast); /* * Notification methods called from the 802.11 state machine. * Note that while these are defined here, their implementation * is OS-specific. */ void ieee80211_notify_node_join(struct ieee80211com *, struct ieee80211_node *, int newassoc); void ieee80211_notify_node_leave(struct ieee80211com *, struct ieee80211_node *); void ieee80211_notify_scan_done(struct ieee80211com *); @ 1.1.1.3 log @Import FreeBSD's net80211(9) of 1-nov-2005 @ text @d32 1 a32 1 * $FreeBSD: src/sys/net80211/ieee80211_proto.h,v 1.16 2005/08/13 17:31:48 sam Exp $ a61 3 int ieee80211_setup_rates(struct ieee80211_node *ni, const u_int8_t *rates, const u_int8_t *xrates, int flags); void ieee80211_saveie(u_int8_t **, const u_int8_t *); d64 1 a64 7 int ieee80211_send_nulldata(struct ieee80211_node *); int ieee80211_send_probereq(struct ieee80211_node *ni, const u_int8_t sa[IEEE80211_ADDR_LEN], const u_int8_t da[IEEE80211_ADDR_LEN], const u_int8_t bssid[IEEE80211_ADDR_LEN], const u_int8_t *ssid, size_t ssidlen, const void *optie, size_t optielen); a137 1 struct ieee80211req; a155 2 int (*iac_setioctl)(struct ieee80211com *, struct ieee80211req *); int (*iac_getioctl)(struct ieee80211com *, struct ieee80211req *); d166 1 a166 1 int ieee80211_fix_rate(struct ieee80211_node *, int); @