Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Make ostate reflect the updated state.



details:   https://anonhg.NetBSD.org/src-all/rev/58c5a751c242
branches:  trunk
changeset: 940771:58c5a751c242
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Apr 27 07:40:50 2020 +0000

description:
Make ostate reflect the updated state.

diffstat:

 sys/net80211/ieee80211_sta.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 6536dce70018 -r 58c5a751c242 sys/net80211/ieee80211_sta.c
--- a/sys/net80211/ieee80211_sta.c      Mon Apr 27 07:45:57 2020 +0000
+++ b/sys/net80211/ieee80211_sta.c      Mon Apr 27 07:40:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_sta.c,v 1.1.2.6 2019/06/10 22:09:46 christos Exp $ */
+/*     $NetBSD: ieee80211_sta.c,v 1.1.2.7 2020/04/27 07:40:50 nat Exp $ */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -32,7 +32,7 @@
 __FBSDID("$FreeBSD: head/sys/net80211/ieee80211_sta.c 326272 2017-11-27 15:23:17Z pfg $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_sta.c,v 1.1.2.6 2019/06/10 22:09:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_sta.c,v 1.1.2.7 2020/04/27 07:40:50 nat Exp $");
 #endif
 
 
@@ -301,6 +301,7 @@
                default:
                        break;
                }
+               ostate = vap->iv_state;
                if (ostate != IEEE80211_S_INIT) {
                        /* NB: optimize INIT -> INIT case */
                        ieee80211_reset_bss(vap);
@@ -467,6 +468,7 @@
                        goto invalid;
                }
                ieee80211_sync_curchan(ic);
+               ostate = vap->iv_state;
                if (ostate != IEEE80211_S_RUN)
                        sta_swbmiss_start(vap);
                /*



Home | Main Index | Thread Index | Old Index