Deleted Added
full compact
ieee80211_vap.9 (210933) ieee80211_vap.9 (233648)
1.\"
2.\" Copyright (c) 2009 Sam Leffler, Errno Consulting
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (c) 2009 Sam Leffler, Errno Consulting
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man9/ieee80211_vap.9 210933 2010-08-06 14:33:42Z joel $
26.\" $FreeBSD: head/share/man/man9/ieee80211_vap.9 233648 2012-03-29 05:02:12Z eadler $
27.\"
28.Dd August 4, 2009
29.Dt IEEE8021_VAP 9
30.Os
31.Sh NAME
32.Nm net80211_vap
33.Nd 802.11 network layer virtual radio support
34.Sh SYNOPSIS

--- 53 unchanged lines hidden (view full) ---

88The vap creation process is done in three steps.
89First the driver allocates the data structure with
90.Xr malloc 9 .
91This data structure must have an
92.Vt ieee80211vap
93structure at the front but is usually extended with driver-private state.
94Next the vap is setup with a call to
95.Fn ieee80211_vap_setup .
27.\"
28.Dd August 4, 2009
29.Dt IEEE8021_VAP 9
30.Os
31.Sh NAME
32.Nm net80211_vap
33.Nd 802.11 network layer virtual radio support
34.Sh SYNOPSIS

--- 53 unchanged lines hidden (view full) ---

88The vap creation process is done in three steps.
89First the driver allocates the data structure with
90.Xr malloc 9 .
91This data structure must have an
92.Vt ieee80211vap
93structure at the front but is usually extended with driver-private state.
94Next the vap is setup with a call to
95.Fn ieee80211_vap_setup .
96This request initializes
96This request initializes
97.Nm net80211
98state but does not activate the interface.
99The driver can then override methods setup by
100.Nm net80211
101and setup driver resources before finally calling
102.Fn ieee80211_vap_attach
103to complete the process.
104Both these calls must be done without holding any driver locks as
105work may require the process block/sleep.
106.Pp
107A vap is deleted when an
108.Dv SIOCIFDESTROY
109ioctl request is made or when the device detaches (causing all
110associated vaps to automatically be deleted).
97.Nm net80211
98state but does not activate the interface.
99The driver can then override methods setup by
100.Nm net80211
101and setup driver resources before finally calling
102.Fn ieee80211_vap_attach
103to complete the process.
104Both these calls must be done without holding any driver locks as
105work may require the process block/sleep.
106.Pp
107A vap is deleted when an
108.Dv SIOCIFDESTROY
109ioctl request is made or when the device detaches (causing all
110associated vaps to automatically be deleted).
111Delete requests cause the
111Delete requests cause the
112.Vt ic_vap_delete
113method to be called.
114Drivers must quiesce the device before calling
115.Fn ieee80211_vap_detach
116to deactivate the vap and isolate it from activities such as requests
117from user applications.
118The driver can then reclaim resources held by the vap and re-enable
119device operation.

--- 35 unchanged lines hidden ---
112.Vt ic_vap_delete
113method to be called.
114Drivers must quiesce the device before calling
115.Fn ieee80211_vap_detach
116to deactivate the vap and isolate it from activities such as requests
117from user applications.
118The driver can then reclaim resources held by the vap and re-enable
119device operation.

--- 35 unchanged lines hidden ---