Source-Changes-HG archive

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

[src/trunk]: src/sys/net80211 Do not associate with with any access point if ...



details:   https://anonhg.NetBSD.org/src/rev/ff49baf81b4d
branches:  trunk
changeset: 967716:ff49baf81b4d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Dec 19 15:27:07 2019 +0000

description:
Do not associate with with any access point if no SSID has been configured.

diffstat:

 sys/net80211/ieee80211_node.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 228e1f316e2d -r ff49baf81b4d sys/net80211/ieee80211_node.c
--- a/sys/net80211/ieee80211_node.c     Thu Dec 19 15:17:30 2019 +0000
+++ b/sys/net80211/ieee80211_node.c     Thu Dec 19 15:27:07 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_node.c,v 1.76 2019/11/10 21:16:38 chs Exp $  */
+/*     $NetBSD: ieee80211_node.c,v 1.77 2019/12/19 15:27:07 jakllsch Exp $     */
 
 /*
  * Copyright (c) 2001 Atsushi Onoe
@@ -37,7 +37,7 @@
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_node.c,v 1.65 2005/08/13 17:50:21 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.76 2019/11/10 21:16:38 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.77 2019/12/19 15:27:07 jakllsch Exp $");
 #endif
 
 #ifdef _KERNEL_OPT
@@ -543,6 +543,9 @@
        if (ni->ni_fails >= STA_FAILS_MAX)
                fail |= 0x40;
 
+       if (ic->ic_des_esslen == 0)
+               fail |= 0x80;
+
 #ifdef IEEE80211_DEBUG
        if (ieee80211_msg_scan(ic)) {
                printf(" %c %s",



Home | Main Index | Thread Index | Old Index