From 8a2efe191810309337ff05036b425b29ebacd3ba Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 30 Nov 2018 09:26:07 +0000 Subject: MH_ALIGN -> m_align and make the spacing look the same in all three places. OK bluhm@ --- sys/net80211/ieee80211_output.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/net80211') diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 33e03633c0b..2f6e0e77d2e 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.122 2017/12/14 18:52:17 stsp Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.123 2018/11/30 09:26:06 claudio Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -1262,7 +1262,7 @@ ieee80211_get_auth(struct ieee80211com *ic, struct ieee80211_node *ni, MGETHDR(m, M_DONTWAIT, MT_DATA); if (m == NULL) return NULL; - MH_ALIGN(m, 2 * 3); + m_align(m, 2 * 3); m->m_pkthdr.len = m->m_len = 2 * 3; frm = mtod(m, u_int8_t *); @@ -1286,9 +1286,9 @@ ieee80211_get_deauth(struct ieee80211com *ic, struct ieee80211_node *ni, MGETHDR(m, M_DONTWAIT, MT_DATA); if (m == NULL) return NULL; - MH_ALIGN(m, 2); - + m_align(m, 2); m->m_pkthdr.len = m->m_len = 2; + *mtod(m, u_int16_t *) = htole16(reason); return m; @@ -1446,9 +1446,9 @@ ieee80211_get_disassoc(struct ieee80211com *ic, struct ieee80211_node *ni, MGETHDR(m, M_DONTWAIT, MT_DATA); if (m == NULL) return NULL; - MH_ALIGN(m, 2); - + m_align(m, 2); m->m_pkthdr.len = m->m_len = 2; + *mtod(m, u_int16_t *) = htole16(reason); return m; -- cgit v1.2.3