From d49983563a7ec480cddcd213c6f0c5774c2a838f Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 26 Nov 2015 01:58:50 +0000 Subject: [ifconfig] handle IBSS mediatype correctly. Right now net80211 is configured as type IBSS but then treats it as mediatype ADHOC. This doesn't change that; it just correctly handles being given a mediatype of IBSS. --- sbin/ifconfig/ifieee80211.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sbin') diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 69ffe69..628eb190 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -4085,6 +4085,8 @@ get80211opmode(int s) } if (ifmr.ifm_current & IFM_IEEE80211_HOSTAP) return IEEE80211_M_HOSTAP; + if (ifmr.ifm_current & IFM_IEEE80211_IBSS) + return IEEE80211_M_IBSS; if (ifmr.ifm_current & IFM_IEEE80211_MONITOR) return IEEE80211_M_MONITOR; if (ifmr.ifm_current & IFM_IEEE80211_MBSS) -- cgit v1.1