Deleted Added
full compact
if_ath.c (227356) if_ath.c (227357)
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 227356 2011-11-08 19:18:34Z adrian $");
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 227357 2011-11-08 19:25:52Z adrian $");
32
33/*
34 * Driver for the Atheros Wireless LAN controller.
35 *
36 * This software is derived from work of Atsushi Onoe; his contribution
37 * is greatly appreciated.
38 */
39

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

5160 } else {
5161 /* XXX locking? */
5162 ni->ni_ucastkey.wk_keyix = keyix;
5163 ni->ni_ucastkey.wk_rxkeyix = rxkeyix;
5164 /* NB: must mark device key to get called back on delete */
5165 ni->ni_ucastkey.wk_flags |= IEEE80211_KEY_DEVKEY;
5166 IEEE80211_ADDR_COPY(ni->ni_ucastkey.wk_macaddr, ni->ni_macaddr);
5167 /* NB: this will create a pass-thru key entry */
32
33/*
34 * Driver for the Atheros Wireless LAN controller.
35 *
36 * This software is derived from work of Atsushi Onoe; his contribution
37 * is greatly appreciated.
38 */
39

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

5160 } else {
5161 /* XXX locking? */
5162 ni->ni_ucastkey.wk_keyix = keyix;
5163 ni->ni_ucastkey.wk_rxkeyix = rxkeyix;
5164 /* NB: must mark device key to get called back on delete */
5165 ni->ni_ucastkey.wk_flags |= IEEE80211_KEY_DEVKEY;
5166 IEEE80211_ADDR_COPY(ni->ni_ucastkey.wk_macaddr, ni->ni_macaddr);
5167 /* NB: this will create a pass-thru key entry */
5168 ath_keyset(sc, &ni->ni_ucastkey, vap->iv_bss);
5168 ath_keyset(sc, vap, &ni->ni_ucastkey, vap->iv_bss);
5169 }
5170}
5171
5172/*
5173 * Setup driver-specific state for a newly associated node.
5174 * Note that we're called also on a re-associate, the isnew
5175 * param tells us if this is the first time or not.
5176 */

--- 835 unchanged lines hidden ---
5169 }
5170}
5171
5172/*
5173 * Setup driver-specific state for a newly associated node.
5174 * Note that we're called also on a re-associate, the isnew
5175 * param tells us if this is the first time or not.
5176 */

--- 835 unchanged lines hidden ---