From owner-cvs-all@FreeBSD.ORG Tue Apr 12 17:55:14 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85EA316A4CE; Tue, 12 Apr 2005 17:55:14 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36AC043D54; Tue, 12 Apr 2005 17:55:14 +0000 (GMT) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3CHtETZ056404; Tue, 12 Apr 2005 17:55:14 GMT (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3CHtDIP056403; Tue, 12 Apr 2005 17:55:13 GMT (envelope-from sam) Message-Id: <200504121755.j3CHtDIP056403@repoman.freebsd.org> From: Sam Leffler Date: Tue, 12 Apr 2005 17:55:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net80211 ieee80211_crypto.c ieee80211_crypto.h ieee80211_ioctl.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 17:55:14 -0000 sam 2005-04-12 17:55:13 UTC FreeBSD src repository Modified files: sys/net80211 ieee80211_crypto.c ieee80211_crypto.h ieee80211_ioctl.c Log: Revise crypto api lightly to improve group key handling: o don't pre-assign key index to the global key table entries so device has a chance to decide what to use o make ieee80211_crypto_newkey take the desired flags as an argument instead of wacking the key structure directly; this eliminates a bunch of code warts o add a new flag IEEE80211_KEY_GROUP to indicate a key is a WPA Group key so devices don't need to guess (temporarily add this flag in the ioctl code until we can get wpa_supplicant+hostapd updated) o shuffle IEEE80211_KEY_* bits to move flags used internally to the high nibble of the flags word Reviewed by: Tai-hwa Liang Revision Changes Path 1.8 +31 -24 src/sys/net80211/ieee80211_crypto.c 1.7 +6 -3 src/sys/net80211/ieee80211_crypto.h 1.20 +7 -6 src/sys/net80211/ieee80211_ioctl.c