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 update SSID by beacon, because hidden SS...



details:   https://anonhg.NetBSD.org/src/rev/c1a80f5d95f1
branches:  trunk
changeset: 553512:c1a80f5d95f1
user:      onoe <onoe%NetBSD.org@localhost>
date:      Sat Oct 18 03:33:51 2003 +0000

description:
Do not update SSID by beacon, because hidden SSID implementation is vary.
ex. 0-length, single space, 0x00 with correct length.
So, we don't update SSID in node table by beacon, but always update by
Probe Response.

diffstat:

 sys/net80211/ieee80211_input.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d0b9acc876ea -r c1a80f5d95f1 sys/net80211/ieee80211_input.c
--- a/sys/net80211/ieee80211_input.c    Sat Oct 18 03:03:20 2003 +0000
+++ b/sys/net80211/ieee80211_input.c    Sat Oct 18 03:33:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_input.c,v 1.7 2003/10/15 11:43:51 dyoung Exp $       */
+/*     $NetBSD: ieee80211_input.c,v 1.8 2003/10/18 03:33:51 onoe Exp $ */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -35,7 +35,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.8 2003/08/19 22:17:03 sam Exp $");
 #else
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.7 2003/10/15 11:43:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.8 2003/10/18 03:33:51 onoe Exp $");
 #endif
 
 #include "opt_inet.h"
@@ -964,7 +964,7 @@
                        ni->ni_esslen = ssid[1];
                        memset(ni->ni_essid, 0, sizeof(ni->ni_essid));
                        memcpy(ni->ni_essid, ssid + 2, ssid[1]);
-               } else if (ssid[1] != 0) {
+               } else if (subtype == IEEE80211_FC0_SUBTYPE_PROBE_RESP) {
                        /*
                         * Update ESSID at probe response to adopt hidden AP by
                         * Lucent/Cisco, which announces null ESSID in beacon.



Home | Main Index | Thread Index | Old Index