summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-06-25 15:03:05 +0000
committersam <sam@FreeBSD.org>2003-06-25 15:03:05 +0000
commit9d829495776976ffe508763ed0df80b0e1174178 (patch)
treeaa1b30cda6fd0d5a0c0ce3f9591765eed8aacba8 /sys/net/if_media.h
parentdbdf93a4c355e9cd81812ae7de8680be2bbe128f (diff)
downloadFreeBSD-src-9d829495776976ffe508763ed0df80b0e1174178.zip
FreeBSD-src-9d829495776976ffe508763ed0df80b0e1174178.tar.gz
add "autoselect" mode and "auto" alias: these let you reset the
"phy mode" to an auto-selecting mode, as opposed to one where you're locked to a particular one (e.g. 11a for 802.11)
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r--sys/net/if_media.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index a97fc77..49a41b0 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -447,12 +447,18 @@ struct ifmedia_description {
}
#define IFM_SUBTYPE_IEEE80211_MODE_DESCRIPTIONS { \
+ { IFM_AUTO, "autoselect" }, \
{ IFM_IEEE80211_11A, "11a" }, \
{ IFM_IEEE80211_11B, "11b" }, \
{ IFM_IEEE80211_11G, "11g" }, \
{ 0, NULL }, \
}
+#define IFM_SUBTYPE_IEEE80211_MODE_ALIASES { \
+ { IFM_AUTO, "auto" }, \
+ { 0, NULL }, \
+}
+
# define IFM_SUBTYPE_ATM_DESCRIPTIONS { \
{ IFM_ATM_UNKNOWN, "Unknown" }, \
{ IFM_ATM_UTP_25, "UTP/25.6MBit" }, \
OpenPOWER on IntegriCloud