svn commit: r283566 - head/sys/net80211

Gleb Smirnoff glebius at FreeBSD.org
Tue May 26 12:40:28 UTC 2015


Author: glebius
Date: Tue May 26 12:40:27 2015
New Revision: 283566
URL: https://svnweb.freebsd.org/changeset/base/283566

Log:
  Make ieee80211broadcastaddr global, so that drivers or other
  code may use it and not paste.

Modified:
  head/sys/net80211/ieee80211.c
  head/sys/net80211/ieee80211.h

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c	Tue May 26 12:06:36 2015	(r283565)
+++ head/sys/net80211/ieee80211.c	Tue May 26 12:40:27 2015	(r283566)
@@ -82,7 +82,7 @@ const int ieee80211_opcap[IEEE80211_OPMO
 #endif
 };
 
-static const uint8_t ieee80211broadcastaddr[IEEE80211_ADDR_LEN] =
+const uint8_t ieee80211broadcastaddr[IEEE80211_ADDR_LEN] =
 	{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
 
 static	void ieee80211_syncflag_locked(struct ieee80211com *ic, int flag);

Modified: head/sys/net80211/ieee80211.h
==============================================================================
--- head/sys/net80211/ieee80211.h	Tue May 26 12:06:36 2015	(r283565)
+++ head/sys/net80211/ieee80211.h	Tue May 26 12:40:27 2015	(r283566)
@@ -36,6 +36,10 @@
 /* is 802.11 address multicast/broadcast? */
 #define	IEEE80211_IS_MULTICAST(_a)	(*(_a) & 0x01)
 
+#ifdef _KERNEL
+extern const uint8_t ieee80211broadcastaddr[];
+#endif
+
 typedef uint16_t ieee80211_seq;
 
 /* IEEE 802.11 PLCP header */


More information about the svn-src-head mailing list