diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-02-15 15:40:57 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-02-15 15:40:57 +0000 |
commit | 431ac2ff253ce14c942a52c320ccda9f8e69a607 (patch) | |
tree | 38f5a063da82e3c7e6cc1c618f24182154ca1678 | |
parent | 263d401427878f42bf9a0c1f4b567f5246b23f2f (diff) |
fix wrong ifmedia macro used to check for IFM_AUTO
ok claudio@
-rw-r--r-- | sys/net80211/ieee80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index d2e876c03a1..d5a15b33bf2 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.88 2022/03/19 10:25:09 stsp Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.89 2024/02/15 15:40:56 stsp Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -1125,7 +1125,7 @@ ieee80211_next_mode(struct ifnet *ifp) * Indicate a wrap-around if we're running in a fixed, user-specified * phy mode. */ - if (IFM_MODE(ic->ic_media.ifm_cur->ifm_media) != IFM_AUTO) + if (IFM_SUBTYPE(ic->ic_media.ifm_cur->ifm_media) != IFM_AUTO) return (IEEE80211_MODE_AUTO); /* |