Deleted Added
full compact
ieee80211_output.c (147789) ieee80211_output.c (148301)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2005 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:

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

26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2005 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:

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

26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_output.c 147789 2005-07-06 01:55:17Z sam $");
34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_output.c 148301 2005-07-22 17:31:18Z sam $");
35
36#include "opt_inet.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/mbuf.h>
41#include <sys/kernel.h>
42#include <sys/endian.h>

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

161 if_start(ifp);
162 return 0;
163}
164
165/*
166 * Send a null data frame to the specified node.
167 */
168int
35
36#include "opt_inet.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/mbuf.h>
41#include <sys/kernel.h>
42#include <sys/endian.h>

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

161 if_start(ifp);
162 return 0;
163}
164
165/*
166 * Send a null data frame to the specified node.
167 */
168int
169ieee80211_send_nulldata(struct ieee80211com *ic, struct ieee80211_node *ni)
169ieee80211_send_nulldata(struct ieee80211_node *ni)
170{
170{
171 struct ieee80211com *ic = ni->ni_ic;
171 struct ifnet *ifp = ic->ic_ifp;
172 struct mbuf *m;
173 struct ieee80211_frame *wh;
174
175 MGETHDR(m, M_NOWAIT, MT_HEADER);
176 if (m == NULL) {
177 /* XXX debug msg */
178 ic->ic_stats.is_tx_nobuf++;

--- 1427 unchanged lines hidden ---
172 struct ifnet *ifp = ic->ic_ifp;
173 struct mbuf *m;
174 struct ieee80211_frame *wh;
175
176 MGETHDR(m, M_NOWAIT, MT_HEADER);
177 if (m == NULL) {
178 /* XXX debug msg */
179 ic->ic_stats.is_tx_nobuf++;

--- 1427 unchanged lines hidden ---