Date: Tue, 26 May 2015 12:40:28 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283566 - head/sys/net80211 Message-ID: <201505261240.t4QCeS1s026987@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505261240.t4QCeS1s026987>