diff options
author | 2005-07-07 22:47:08 +0000 | |
---|---|---|
committer | 2005-07-07 22:47:08 +0000 | |
commit | 1f7bcc8d3b912fe805e6736545e2c8c05f4532a2 (patch) | |
tree | 366ce850b5008b9228df574ddfef67bfda453813 | |
parent | set flow type (use, require, etc.) when a rule is created. Up to now this was (diff) | |
download | wireguard-openbsd-1f7bcc8d3b912fe805e6736545e2c8c05f4532a2.tar.xz wireguard-openbsd-1f7bcc8d3b912fe805e6736545e2c8c05f4532a2.zip |
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.
-rw-r--r-- | sys/dev/usb/if_atu.c | 10 | ||||
-rw-r--r-- | sys/dev/usb/if_atureg.h | 4 |
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; |