diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2015-11-26 01:58:50 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2015-11-26 01:58:50 +0000 |
commit | db4eb9fec2f99f2d9591a46c301db684c54130e2 (patch) | |
tree | f5c7013d1753284a9e3af3bdcf2e7611563c701f /sbin | |
parent | 913565851cdba85ddaa5f92926d098fe81619a5a (diff) | |
download | src-db4eb9fec2f99f2d9591a46c301db684c54130e2.tar.gz src-db4eb9fec2f99f2d9591a46c301db684c54130e2.zip |
[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.
Notes
Notes:
svn path=/head/; revision=291352
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifieee80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 69ffe698ffed..628eb1901a0f 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) |