Deleted Added
full compact
ifieee80211.c (227336) ifieee80211.c (229778)
1/*
2 * Copyright 2001 The Aerospace Corporation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright 2001 The Aerospace Corporation. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 227336 2011-11-08 14:22:40Z adrian $
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 229778 2012-01-07 16:09:33Z uqs $
28 */
29
30/*-
31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
32 * All rights reserved.
33 *
34 * This code is derived from software contributed to The NetBSD Foundation
35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,

--- 843 unchanged lines hidden (view full) ---

879 bzero(data, sizeof(data));
880 len = sizeof(data);
881 get_string(val, NULL, data, &len);
882
883 set80211(s, IEEE80211_IOC_WEPKEY, key, len, data);
884}
885
886/*
28 */
29
30/*-
31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
32 * All rights reserved.
33 *
34 * This code is derived from software contributed to The NetBSD Foundation
35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,

--- 843 unchanged lines hidden (view full) ---

879 bzero(data, sizeof(data));
880 len = sizeof(data);
881 get_string(val, NULL, data, &len);
882
883 set80211(s, IEEE80211_IOC_WEPKEY, key, len, data);
884}
885
886/*
887 * This function is purely a NetBSD compatability interface. The NetBSD
887 * This function is purely a NetBSD compatibility interface. The NetBSD
888 * interface is too inflexible, but it's there so we'll support it since
889 * it's not all that hard.
890 */
891static void
892set80211nwkey(const char *val, int d, int s, const struct afswtch *rafp)
893{
894 int txkey;
895 int i, len;

--- 4421 unchanged lines hidden ---
888 * interface is too inflexible, but it's there so we'll support it since
889 * it's not all that hard.
890 */
891static void
892set80211nwkey(const char *val, int d, int s, const struct afswtch *rafp)
893{
894 int txkey;
895 int i, len;

--- 4421 unchanged lines hidden ---