ieee80211_output.c (148936) | ieee80211_output.c (151967) |
---|---|
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 148936 2005-08-10 16:22:30Z sam $"); | 34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_output.c 151967 2005-11-02 13:46:32Z andre $"); |
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> --- 164 unchanged lines hidden (view full) --- 207int 208ieee80211_send_nulldata(struct ieee80211_node *ni) 209{ 210 struct ieee80211com *ic = ni->ni_ic; 211 struct ifnet *ifp = ic->ic_ifp; 212 struct mbuf *m; 213 struct ieee80211_frame *wh; 214 | 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> --- 164 unchanged lines hidden (view full) --- 207int 208ieee80211_send_nulldata(struct ieee80211_node *ni) 209{ 210 struct ieee80211com *ic = ni->ni_ic; 211 struct ifnet *ifp = ic->ic_ifp; 212 struct mbuf *m; 213 struct ieee80211_frame *wh; 214 |
215 MGETHDR(m, M_NOWAIT, MT_HEADER); | 215 MGETHDR(m, M_NOWAIT, MT_DATA); |
216 if (m == NULL) { 217 /* XXX debug msg */ 218 ic->ic_stats.is_tx_nobuf++; 219 ieee80211_unref_node(&ni); 220 return ENOMEM; 221 } 222 m->m_pkthdr.rcvif = (void *) ni; 223 --- 1476 unchanged lines hidden --- | 216 if (m == NULL) { 217 /* XXX debug msg */ 218 ic->ic_stats.is_tx_nobuf++; 219 ieee80211_unref_node(&ni); 220 return ENOMEM; 221 } 222 m->m_pkthdr.rcvif = (void *) ni; 223 --- 1476 unchanged lines hidden --- |