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/1de74c1ef6fe
branches:  trunk
changeset: 986662:1de74c1ef6fe
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 |  27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)

diffs (51 lines):

diff -r 9c5fd1dd72c0 -r 1de74c1ef6fe sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c  Wed Sep 15 19:46:37 2021 +0200
+++ b/sys/net80211/ieee80211.c  Thu Oct 08 21:11:04 2020 +0200
@@ -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