summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_ddb.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-09-21 23:16:19 +0000
committersam <sam@FreeBSD.org>2008-09-21 23:16:19 +0000
commitbc3be4b34c9820a6ba945fe7d2329575084c3529 (patch)
tree596588786c3d6b60a71ec05655fea2114da6fa84 /sys/net80211/ieee80211_ddb.c
parent7a8139bec34979455320162a624d9f5762a864d0 (diff)
downloadFreeBSD-src-bc3be4b34c9820a6ba945fe7d2329575084c3529.zip
FreeBSD-src-bc3be4b34c9820a6ba945fe7d2329575084c3529.tar.gz
Crypto api changes:
o don't use the key index to identify when the driver has been asked to allocate a key slot, use an explicit flag; allows drivers to force s/w fallback for entries in the global table o change callback api to allocate driver resources for a crypto key: - de-const the key parameter so drivers can muck with the flags - on callback failure don't automatically try to setup s/w crypto; instead the driver must now mark the key entry for s/w crypto and the caller will re-attach the cipher module NB: api change permits drivers more control over fallback to s/w crypto (e.g. based on a limited number of h/w key slots)
Diffstat (limited to 'sys/net80211/ieee80211_ddb.c')
-rw-r--r--sys/net80211/ieee80211_ddb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c
index 7f5aea6..9dcb7ed 100644
--- a/sys/net80211/ieee80211_ddb.c
+++ b/sys/net80211/ieee80211_ddb.c
@@ -685,7 +685,7 @@ _db_show_key(const char *tag, int ix, const struct ieee80211_key *wk)
const struct ieee80211_cipher *cip = wk->wk_cipher;
int keylen = wk->wk_keylen;
- if (wk->wk_keyix == IEEE80211_KEYIX_NONE)
+ if ((wk->wk_flags & IEEE80211_KEY_DEVKEY) == 0)
return;
db_printf(tag, ix);
switch (cip->ic_cipher) {
OpenPOWER on IntegriCloud