| To: | Jouni Malinen <jkmaline@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] ieee80211 subsystem |
| From: | James Ketrenos <jketreno@xxxxxxxxxxxxxxx> |
| Date: | Tue, 08 Feb 2005 03:26:14 -0600 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20050208042950.GD8366@jm.kir.nu> |
| References: | <4203C32A.70402@linux.intel.com> <20050208042950.GD8366@jm.kir.nu> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041207 |
Jouni Malinen wrote: I don't have any detailed planning on this currently. I agree it should be done in a way to support as much hardware as possible -- the most difficult will likely be support of adapters that require 802.3 frames since all thinking to this point has been to make the stack such that wireless drivers never need to know about 802.3.On Fri, Feb 04, 2005 at 12:47:06PM -0600, James Ketrenos wrote: Is it only for the data Tx/Rx that the 802.11/802.3 transform is handled by the device? Or does the device internalize all 802.11 features such that 802.11 frames are never exposed externally? The ipw2100 is similar in some regard to this -- although it doesn't take either 802.3 or 802.11; it takes a raw data payload and a data structure that contains the dest addr, etc. Agreed. Hopefully as more folks start seeing these patches others will be encouraged to try and help out, pulling the best of all the existing drivers together.When you look through the patch you'll likely notice the #ifdef NOTYET/#endif sequences surrounding portions of code from the hostap project. Portions of this subsystem were based on an earlier version of the hostap project. Those areas that weren't directly supported by the ipw* projects weren't ported to be completely hardware independent (since I don't have the hardware to test it), and so are still wrapped in the ifdefs. These sections mainly cover support for MASTER and WDS modes. I'll rework it into net/ieee80211. This was an oversite when last I updated the Kconfig for the ieee80211 components. The debug level for ieee80211 is configured in /proc/net/ieee80211/debug_level.+config IEEE80211_DEBUG Currently there is a script provided in the ipw2100 and ipw2200 projects that greps the various debug levels supported for ieee80211 and dumps them to the console so the user doesn't have to manually look in ieee80211.h to try and figure out what bit masks in the debug_level correspond to what aspects. That script should be provided in a utility pacakge for the ieee80211 stack -- a question is if it should simply grep on the running kernel's ieee80211.h to find the debug levels, or if the ieee80211 subsystem should contain in it the strings to export to the utility its internal debug levels via sysfs. Having the debug flexibility in the module has been extremely useful in tracking issues and resolving bugs, while not flooding everyone's kernel logs with unneeded messages. + For a list of values you can assign to debug_level, simply + perform: Same oversite as above -- it should change to: ---- For a list of values you can assign to debug_level, you can need to use the ieee80211 utility package available at <URL>. Once installed, you can then run: % ieee80211_dvals To obtain a list of supported debug masks. You can also read/write the debug mask via /proc/net/ieee80211/debug_level If you are not trying to debug or develop the ieee80211 subsystem, you most likely want to say N here. --- and then I need to put up an ieee80211 utility package somewhere... 802.11i should be provided by default (it currently isn't). If we provide the option for selecting the cipher suites, any issues with this text?:+config IEEE80211_WPA CONFIG_IEEE80211_WEP Include software based cipher suites in support of IEEE 802.11's WEP. This is needed for WEP as well as 802.1x. This selects ARC4 under kernel crypto libraries, and CRC32 under kernel libraries. CONFIG_IEEE80211_CCMP Include software based cipher suites in support of IEEE 802.11i (aka TGi, WPA, WPA2, WPA-PSK, etc.) for use with CCMP enabled networks. This selects AES support under kernel crypto libraries. CONFIG_IEEE80211_TKIP Include software based cipher suites in support of IEEE 802.11i (aka TGi, WPA, WPA2, WPA-PSK, etc.) for use with TKIP enabled networks. This selects Michael Mic support under kernel crypto libraries. ...
+config IEEE80211_CRYPT_CCMP How do you set up a dependency to be "one of"? depends on CRYPTO_AES or CRYPTO_AES_586 ? +++ netdev-2.6-ipw/drivers/net/wireless/ieee80211/ieee80211_crypt.c 2005-02-04 10:20:03 -06:00 Will do. +++ netdev-2.6-ipw/drivers/net/wireless/ieee80211/ieee80211_crypt_ccmp.c 2005-02-04 10:20:03 -06:00 Removed. The handler that loads the crypto module performs a try_module_get(). Currently that code isn't contained in ieee80211_wx.c and is in drivers loading the ciphers for WPA -- it needs to be moved to the ieee80211_wx.+static void * ieee80211_ccmp_init(int key_idx) Which raises the question -- should we continue to support dynamically loading cipher suite handlers, or just statically compile them in if the user has requested them to be included? Originally, the cipher suites contained all the crypto code within them, which increased their size and complexity. Now, however, the suites are essentially shims that wrap the kernel crypto libraries. There is the obvious aspect of flexibility that arises from supporting arbitrary and dynamic loading of crypto shims, but it does complicate the code somewhat. Thoughts? That's for the first 1840 lines of the patch and enough for today.. I'll Thanks, James |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Linux-ATM-General] [RFC][PATCH] Very basic sysfs support for ATM devices (updated), chas williams - CONTRACTOR |
|---|---|
| Next by Date: | Re: [PATCH] ieee80211 subsystem, James Ketrenos |
| Previous by Thread: | Re: [PATCH] ieee80211 subsystem, Jouni Malinen |
| Next by Thread: | Re: [PATCH] ieee80211 subsystem, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |