summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-07-07 22:47:09 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-07-07 22:47:09 +0000
commit832c4abf6f856d5ad03a9228db1db6d9e659df6c (patch)
treea9e6f1e6aff595e811331cf9c50b2a44d8987cba /sys/dev/usb
parent6fb2eddb8f3f64886c1e5af28d9ce141f683c154 (diff)
extend what jcs did a bit further by removing atus storage for the ssid.
now there is no confusion since it is only provided by net80211.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_atu.c10
-rw-r--r--sys/dev/usb/if_atureg.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c
index 5f5d99d0837..fedaa908087 100644
--- a/sys/dev/usb/if_atu.c
+++ b/sys/dev/usb/if_atu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atu.c,v 1.62 2005/07/07 15:14:56 jcs Exp $ */
+/* $OpenBSD: if_atu.c,v 1.63 2005/07/07 22:47:08 dlg Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
@@ -694,9 +694,9 @@ atu_initial_config(struct atu_softc *sc)
}
/* Setting the SSID here doesn't seem to do anything */
- memset(cmd.SSID, 0, sizeof(cmd.SSID));
- memcpy(cmd.SSID, sc->atu_ssid, sc->atu_ssidlen);
- cmd.SSID_Len = sc->atu_ssidlen;
+ memset(cmd.SSID, 0x00, sizeof(cmd.SSID));
+ memcpy(cmd.SSID, ic->ic_des_essid, ic->ic_des_esslen);
+ cmd.SSID_Len = ic->ic_des_esslen;
cmd.ShortPreamble = 0;
USETW(cmd.BeaconPeriod, 100);
@@ -1420,8 +1420,6 @@ atu_complete_attach(struct atu_softc *sc)
sc->atu_cdata.atu_tx_inuse = 0;
bzero(sc->atu_bssid, ETHER_ADDR_LEN);
- sc->atu_ssidlen = strlen(ATU_DEFAULT_SSID);
- memcpy(sc->atu_ssid, ATU_DEFAULT_SSID, sc->atu_ssidlen);
sc->atu_channel = ATU_DEFAULT_CHANNEL;
sc->atu_desired_channel = IEEE80211_CHAN_ANY;
sc->atu_mode = INFRASTRUCTURE_MODE;
diff --git a/sys/dev/usb/if_atureg.h b/sys/dev/usb/if_atureg.h
index a0eafb3fa07..d94d5f7a832 100644
--- a/sys/dev/usb/if_atureg.h
+++ b/sys/dev/usb/if_atureg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atureg.h,v 1.24 2005/05/23 20:09:31 jsg Exp $ */
+/* $OpenBSD: if_atureg.h,v 1.25 2005/07/07 22:47:08 dlg Exp $ */
/*
* Copyright (c) 2003
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
@@ -198,8 +198,6 @@ struct atu_softc {
enum atu_radio_type atu_radio;
u_int16_t atu_quirk;
- u_int8_t atu_ssid[MAX_SSID_LEN];
- u_int8_t atu_ssidlen;
u_int8_t atu_channel;
u_int16_t atu_desired_channel;
u_int8_t atu_mode;