summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-11-26 01:58:50 +0000
committeradrian <adrian@FreeBSD.org>2015-11-26 01:58:50 +0000
commitd49983563a7ec480cddcd213c6f0c5774c2a838f (patch)
treef5c7013d1753284a9e3af3bdcf2e7611563c701f /sbin/ifconfig
parent87db22d33baaf5754a420900b2620aeed546e46d (diff)
downloadFreeBSD-src-d49983563a7ec480cddcd213c6f0c5774c2a838f.zip
FreeBSD-src-d49983563a7ec480cddcd213c6f0c5774c2a838f.tar.gz
[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.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifieee80211.c2
1 files changed, 2 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud