summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/net80211/net80211_output.c
diff options
context:
space:
mode:
authorff224033 <none@none>2008-08-01 03:27:13 -0700
committerff224033 <none@none>2008-08-01 03:27:13 -0700
commitff3124eff995e6cd8ebd8c6543648e0670920034 (patch)
tree2705dcb9221ab4f43e5043fd02ecfdccac95a529 /usr/src/uts/common/io/net80211/net80211_output.c
parent8956b8c2028bb15c1e7010a67b1c8b36ec8f47a8 (diff)
downloadillumos-gate-ff3124eff995e6cd8ebd8c6543648e0670920034.tar.gz
6732010 ral driver needs lint clean-up
6732012 wpa needs the E_BAD_PTR_CAST_ALIGN lint tags to be removed from Makefile 6732019 ath driver needs lint clean-up 6732027 iwk needs to remove lint tags from Makfile 6732028 pcan needs lint tags E_PTRDIFF_OVERFLOW to be removed from Makefile 6732031 net80211 module needs lint tags E_PTRDIFF_OVERFLOW to be removed from Makfile
Diffstat (limited to 'usr/src/uts/common/io/net80211/net80211_output.c')
-rw-r--r--usr/src/uts/common/io/net80211/net80211_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/net80211/net80211_output.c b/usr/src/uts/common/io/net80211/net80211_output.c
index 0a3ab5647f..abd42cfdb5 100644
--- a/usr/src/uts/common/io/net80211/net80211_output.c
+++ b/usr/src/uts/common/io/net80211/net80211_output.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -711,7 +711,7 @@ ieee80211_beacon_alloc(ieee80211com_t *ic, ieee80211_node_t *in,
frm = ieee80211_add_erp(frm, ic);
}
efrm = ieee80211_add_xrates(frm, rs);
- bo->bo_trailer_len = efrm - bo->bo_trailer;
+ bo->bo_trailer_len = _PTRDIFF(efrm, bo->bo_trailer);
m->b_wptr = efrm;
wh = (struct ieee80211_frame *)m->b_rptr;