Date: Thu, 26 Nov 2015 01:58:50 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291352 - head/sbin/ifconfig Message-ID: <201511260158.tAQ1woSo014274@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Thu Nov 26 01:58:50 2015 New Revision: 291352 URL: https://svnweb.freebsd.org/changeset/base/291352 Log: [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. Modified: head/sbin/ifconfig/ifieee80211.c Modified: head/sbin/ifconfig/ifieee80211.c ============================================================================== --- head/sbin/ifconfig/ifieee80211.c Thu Nov 26 01:54:58 2015 (r291351) +++ head/sbin/ifconfig/ifieee80211.c Thu Nov 26 01:58:50 2015 (r291352) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511260158.tAQ1woSo014274>
