Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Backout link state change, needs to be do...
details: https://anonhg.NetBSD.org/src-all/rev/98e71b59c109
branches: trunk
changeset: 941172:98e71b59c109
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Thu Oct 08 21:11:04 2020 +0200
description:
Backout link state change, needs to be done differently.
diffstat:
sys/net80211/ieee80211.c | 31 ++-----------------------------
1 files changed, 2 insertions(+), 29 deletions(-)
diffs (66 lines):
diff -r c7e9e71ab20b -r 98e71b59c109 sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c Tue Oct 20 13:47:30 2020 +0000
+++ b/sys/net80211/ieee80211.c Thu Oct 08 21:11:04 2020 +0200
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211.c,v 1.60 2020/10/06 23:51:05 roy Exp $ */
+/* $NetBSD: ieee80211.c,v 1.59 2020/03/15 23:04:51 thorpej Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -36,7 +36,7 @@
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211.c,v 1.22 2005/08/10 16:22:29 sam Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.60 2020/10/06 23:51:05 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.59 2020/03/15 23:04:51 thorpej Exp $");
#endif
/*
@@ -150,30 +150,6 @@
return ENETRESET;
}
-static void
-ieee80211_init_link_state(struct ieee80211com *ic)
-{
- struct ifnet *ifp = ic->ic_ifp;
-
- /*
- * Link state does not make sense in IBSS or HOSTAP modes.
- * We know that the link in MONITOR mode is DOWN as we cannot
- * transmit, only monitor.
- * That leaves BSS mode, which starts off DOWN and will
- * transition to UP when it joins a node.
- */
- switch (ic->ic_opmode) {
- case IEEE80211_M_AHDEMO:
- case IEEE80211_M_HOSTAP:
- case IEEE80211_M_IBSS:
- if_link_state_change(ifp, LINK_STATE_UNKNOWN);
- break;
- default:
- if_link_state_change(ifp, LINK_STATE_DOWN);
- break;
- }
-}
-
void
ieee80211_ifattach(struct ieee80211com *ic)
{
@@ -270,8 +246,6 @@
*/
if (ic->ic_reset == NULL)
ic->ic_reset = ieee80211_default_reset;
-
- ieee80211_init_link_state(ic);
}
void
@@ -729,7 +703,6 @@
*/
ieee80211_reset_erp(ic);
ieee80211_wme_initparams(ic); /* after opmode change */
- ieee80211_init_link_state(ic); /* after opmode change */
error = ENETRESET;
}
#ifdef notdef
Home |
Main Index |
Thread Index |
Old Index