ieee80211_crypto.c (54a95d0d6860637065aeaf589e3268ad5ff231f3) ieee80211_crypto.c (d0155f67a39a9d5aca483358024c29757d69cd0c)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

529int
530ieee80211_crypto_get_key_wepidx(const struct ieee80211vap *vap,
531 const struct ieee80211_key *k)
532{
533
534 if (k >= &vap->iv_nw_keys[0] &&
535 k < &vap->iv_nw_keys[IEEE80211_WEP_NKID])
536 return (k - vap->iv_nw_keys);
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

529int
530ieee80211_crypto_get_key_wepidx(const struct ieee80211vap *vap,
531 const struct ieee80211_key *k)
532{
533
534 if (k >= &vap->iv_nw_keys[0] &&
535 k < &vap->iv_nw_keys[IEEE80211_WEP_NKID])
536 return (k - vap->iv_nw_keys);
537 return (-1):
537 return (-1);
538}
539
540/*
541 * Note: only supports a single unicast key (0).
542 */
543uint8_t
544ieee80211_crypto_get_keyid(struct ieee80211vap *vap, struct ieee80211_key *k)
545{

--- 244 unchanged lines hidden ---
538}
539
540/*
541 * Note: only supports a single unicast key (0).
542 */
543uint8_t
544ieee80211_crypto_get_keyid(struct ieee80211vap *vap, struct ieee80211_key *k)
545{

--- 244 unchanged lines hidden ---