From 4abb89be7dcc04298130fc3c9262f77389c640c7 Mon Sep 17 00:00:00 2001 From: stsp Date: Thu, 15 Feb 2024 15:40:56 +0000 Subject: [PATCH] fix wrong ifmedia macro used to check for IFM_AUTO ok claudio@ --- sys/net80211/ieee80211.c | 4 ++-- 1 file 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); /* -- 2.20.1