Deleted Added
full compact
ieee80211_node.c (297728) ieee80211_node.c (297731)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2009 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>
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2009 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_node.c 297728 2016-04-09 00:55:55Z adrian $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_node.c 297731 2016-04-09 04:57:25Z adrian $");
29
30#include "opt_wlan.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/mbuf.h>
35#include <sys/malloc.h>
36#include <sys/kernel.h>

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

325
326void
327ieee80211_create_ibss(struct ieee80211vap* vap, struct ieee80211_channel *chan)
328{
329 struct ieee80211com *ic = vap->iv_ic;
330 struct ieee80211_node *ni;
331
332 IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
29
30#include "opt_wlan.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/mbuf.h>
35#include <sys/malloc.h>
36#include <sys/kernel.h>

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

325
326void
327ieee80211_create_ibss(struct ieee80211vap* vap, struct ieee80211_channel *chan)
328{
329 struct ieee80211com *ic = vap->iv_ic;
330 struct ieee80211_node *ni;
331
332 IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
333 "%s: creating %s on channel %u\n", __func__,
333 "%s: creating %s on channel %u%c\n", __func__,
334 ieee80211_opmode_name[vap->iv_opmode],
334 ieee80211_opmode_name[vap->iv_opmode],
335 ieee80211_chan2ieee(ic, chan));
335 ieee80211_chan2ieee(ic, chan),
336 ieee80211_channel_type_char(chan));
336
337 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr);
338 if (ni == NULL) {
339 /* XXX recovery? */
340 return;
341 }
342 IEEE80211_ADDR_COPY(ni->ni_bssid, vap->iv_myaddr);
343 ni->ni_esslen = vap->iv_des_ssid[0].len;

--- 2499 unchanged lines hidden ---
337
338 ni = ieee80211_alloc_node(&ic->ic_sta, vap, vap->iv_myaddr);
339 if (ni == NULL) {
340 /* XXX recovery? */
341 return;
342 }
343 IEEE80211_ADDR_COPY(ni->ni_bssid, vap->iv_myaddr);
344 ni->ni_esslen = vap->iv_des_ssid[0].len;

--- 2499 unchanged lines hidden ---