diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-10 19:25:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-10 19:25:08 +0000 |
commit | 7d8407636ab5ee7ef4acfe299c5e457c341ebd75 (patch) | |
tree | 8df758554b11e1fc571733ccce11379cf753c2f4 /sys/net | |
parent | 6d12dca7ea8c77ca97a8a0488412c9ff8fd4f27a (diff) |
o Add ibss and ibss-master mediaopt for ifconfig
o Map port type 4 to ibss regardless of firmware type. This gives
us a consistent way to set ibss mode.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_media.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h index 8726a19fb66..3d766e1df76 100644 --- a/sys/net/if_media.h +++ b/sys/net/if_media.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_media.h,v 1.9 2002/03/28 18:23:07 mickey Exp $ */ +/* $OpenBSD: if_media.h,v 1.10 2002/04/10 19:25:07 millert Exp $ */ /* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */ /*- @@ -214,6 +214,8 @@ int ifmedia_baudrate(int); #define IFM_IEEE80211_DS1 8 /* Direct Sequence 1Mbps*/ #define IFM_IEEE80211_ADHOC 0x100 /* Operate in Adhoc mode */ #define IFM_IEEE80211_HOSTAP 0x200 /* Operate in Host AP mode */ +#define IFM_IEEE80211_IBSS 0x400 /* Operate in IBSS mode */ +#define IFM_IEEE80211_IBSSMASTER 0x800 /* Operate as an IBSS master */ /* * Shared media sub-types @@ -404,6 +406,8 @@ struct ifmedia_description { \ { IFM_IEEE80211|IFM_IEEE80211_ADHOC, "adhoc" }, \ { IFM_IEEE80211|IFM_IEEE80211_HOSTAP, "hostap" }, \ + { IFM_IEEE80211|IFM_IEEE80211_IBSS, "ibss" }, \ + { IFM_IEEE80211|IFM_IEEE80211_IBSSMASTER, "ibss-master" }, \ \ { 0, NULL }, \ } |