Add hostap 802.11 media type.

From wi_hostap stuff by Thomas Skibo
This commit is contained in:
Warner Losh 2002-04-12 06:10:37 +00:00
parent 4edac09c3e
commit 73ce5fac0e

View file

@ -178,6 +178,7 @@ int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
#define IFM_IEEE80211_DS11 8 /* Direct Sequence 11Mbps */
#define IFM_IEEE80211_DS22 9 /* Direct Sequence 22Mbps */
#define IFM_IEEE80211_ADHOC 0x00000100 /* Operate in Adhoc mode */
#define IFM_IEEE80211_HOSTAP 0x00000200 /* Operate in Host AP mode */
/*
* Shared media sub-types
@ -375,6 +376,7 @@ struct ifmedia_description {
#define IFM_SUBTYPE_IEEE80211_OPTION_DESCRIPTIONS { \
{ IFM_IEEE80211_ADHOC, "adhoc" }, \
{ IFM_IEEE80211_HOSTAP, "hostap" }, \
{ 0, NULL }, \
}