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_proto.c 148291 2005-07-22 16:55:27Z sam $"); |
35 36/* 37 * IEEE 802.11 protocol support. 38 */ 39 40#include "opt_inet.h" 41 42#include <sys/param.h> --- 46 unchanged lines hidden (view full) --- 89void 90ieee80211_proto_attach(struct ieee80211com *ic) 91{ 92 struct ifnet *ifp = ic->ic_ifp; 93 94 /* XXX room for crypto */ 95 ifp->if_hdrlen = sizeof(struct ieee80211_qosframe_addr4); 96 |
97 ic->ic_rtsthreshold = IEEE80211_RTS_DEFAULT; |
98 ic->ic_fragthreshold = IEEE80211_FRAG_DEFAULT; |
99 ic->ic_fixed_rate = IEEE80211_FIXED_RATE_NONE; 100 ic->ic_protmode = IEEE80211_PROT_CTSONLY; 101 ic->ic_roaming = IEEE80211_ROAMING_AUTO; 102 103 ic->ic_wme.wme_hipri_switch_hysteresis = 104 AGGRESSIVE_MODE_SWITCH_HYSTERESIS; 105 106 mtx_init(&ic->ic_mgtq.ifq_mtx, ifp->if_xname, "mgmt send q", MTX_DEF); --- 974 unchanged lines hidden --- |