1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 11 unchanged lines hidden (view full) ---
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_proto.c 184210 2008-10-23 19:57:13Z des $");
29
30/*
31 * IEEE 802.11 protocol support.
32 */
33
34#include "opt_inet.h"
35#include "opt_wlan.h"
36
--- 172 unchanged lines hidden (view full) ---
209 ic->ic_vattach[vap->iv_opmode](vap);
210}
211
212void
213ieee80211_proto_vdetach(struct ieee80211vap *vap)
214{
215#define FREEAPPIE(ie) do { \
216 if (ie != NULL) \
217 FREE(ie, M_80211_NODE_IE); \
218} while (0)
219 /*
220 * Detach operating mode module.
221 */
222 if (vap->iv_opdetach != NULL)
223 vap->iv_opdetach(vap);
224 /*
225 * This should not be needed as we detach when reseting
--- 1528 unchanged lines hidden ---
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 11 unchanged lines hidden (view full) ---
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_proto.c 184210 2008-10-23 19:57:13Z des $");
29
30/*
31 * IEEE 802.11 protocol support.
32 */
33
34#include "opt_inet.h"
35#include "opt_wlan.h"
36
--- 172 unchanged lines hidden (view full) ---
209 ic->ic_vattach[vap->iv_opmode](vap);
210}
211
212void
213ieee80211_proto_vdetach(struct ieee80211vap *vap)
214{
215#define FREEAPPIE(ie) do { \
216 if (ie != NULL) \
217 FREE(ie, M_80211_NODE_IE); \
218} while (0)
219 /*
220 * Detach operating mode module.
221 */
222 if (vap->iv_opdetach != NULL)
223 vap->iv_opdetach(vap);
224 /*
225 * This should not be needed as we detach when reseting
--- 1528 unchanged lines hidden ---