git: d9801e9a8c9f - stable/13 - net80211: ratectl header guard against multiple inclusions

Bjoern A. Zeeb bz at FreeBSD.org
Sun Jul 18 00:35:46 UTC 2021


The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=d9801e9a8c9f9c572b8dad87b3c5c5485d88b995

commit d9801e9a8c9f9c572b8dad87b3c5c5485d88b995
Author:     Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-03-07 17:35:58 +0000
Commit:     Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-18 00:34:57 +0000

    net80211: ratectl header guard against multiple inclusions
    
    Add missing #ifndef/#define/#endif guards against multiple inclusions
    to ieee80211_ratectl.h as they are missing.
    
    (cherry picked from commit 3fca90af438ac4232d6b33ee4874297089997dd6)
---
 sys/net80211/ieee80211_ratectl.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/net80211/ieee80211_ratectl.h b/sys/net80211/ieee80211_ratectl.h
index d147421a0364..6890e74bf518 100644
--- a/sys/net80211/ieee80211_ratectl.h
+++ b/sys/net80211/ieee80211_ratectl.h
@@ -27,6 +27,9 @@
  * $FreeBSD$
  */
 
+#ifndef _NET80211_IEEE80211_RATECTL_H_
+#define _NET80211_IEEE80211_RATECTL_H_
+
 enum ieee80211_ratealgs {
 	IEEE80211_RATECTL_AMRR		= 0,
 	IEEE80211_RATECTL_RSSADAPT	= 1,
@@ -169,3 +172,5 @@ ieee80211_ratectl_node_stats(struct ieee80211_node *ni, struct sbuf *s)
 		return;
 	vap->iv_rate->ir_node_stats(ni, s);
 }
+
+#endif	/* _NET80211_IEEE80211_RATECTL_H_ */


More information about the dev-commits-src-all mailing list