Broadcom 43xx first results
Subsystems (2)
Quoted 7 lines · Jiri Benc
Quoted 3 lines · Jeff Garzik
Use the stack that's already in the kernel.
Encouraging otherwise hinders continued wireless progress under Linux.
There is nothing like a "802.11 stack" currently in the kernel, regardless what James Ketrenos is saying. Sorry.
Hi,
Sorry to intrude in your happy flamefest ;-)
I take offense to what your are saying. There has been many
"802.11 stacks" floating over the years (check my web page). However, only James went through the pain of getting one in the kernel. That's not something that should be underestimated.
Now, with respect to the "best" stacks. Some will argue that
the linux-wlan-ng has the most maturity. Some will argue that the MadWifi stack is used by *BSD. Some will argue that the devicescape has most features. All this arguing leads to nowhere...
Personally, I'm a pragmatic a heart. The most important thing
to me is end-user support. 99% of our users don't care about advanced features, they just want their hardware to work out of the box (and the people who want the advanced features are usually willing to patch their kernels). They don't care how we do the plumbing internally.
Therefore, for me, a stack is only as good as the number of
drivers that support it. And this is where the devicescape stack is lacking.
IPW stack :
drivers using it : ipw2100, ipw2200 drivers in progress : rt2x000, bcm430x potential drivers : r8180, adm8211, hostap
MadWifi stack :
drivers using it : MadWifi (non GPL)
drivers in progress : FreeHAL Atheros, Prism54 softMAC, ural-ralink
DeviceScape stack :
drivers using it : ?
potential drivers : hostap, ipw2100, ipw2200, r8180, adm8211
If you want to use the DeviceScape stack instead of the IPW
stack, my first question is how do you plan to migrate the drivers using it to the new stack. Currently, people are hard at work targetting the IPW stack (see above), I don't want them to have to throw away all their work.
In particular, iwp2*00 are working today in the kernel, and I
expect that they would be migrated to the new stack at the stack switchover. As both the IPW and the DeviceScape stacks are derived from the HostAP stack, that should not be too hard.
Also, what puzzle me is that Jouni doesn't seem to have
anounced any plan to port his HostAP driver to his DeviceScape stack. If there is one driver that should use it, that's HostAP.
Have fun... Jean
Quoted 3 lines · Jean Tourrilhes
DeviceScape stack :
drivers using it : ? potential drivers : hostap, ipw2100, ipw2200, r8180, adm8211
It's mainly used with Atheros chipsets nowadays, but it has been used with couple of other chipsets, too, including Prism2/2.5/3 and parts of Host AP driver.
Quoted 5 lines
If you want to use the DeviceScape stack instead of the IPW
stack, my first question is how do you plan to migrate the drivers using it to the new stack. Currently, people are hard at work targetting the IPW stack (see above), I don't want them to have to throw away all their work.
No matter how this is done, I think it is quite likely that lot of work has to be thrown away in the sense that it does not end up being in the kernel. Having n+1 implementations for generic 802.11 functionality is a good proof of this already being the case. I wouldn't say all work is thrown away, though, even if lots of code will get thrown away. It is good to get understanding on what kind of specific requirements each chipset has in order to be able to accommodate them in the 802.11 design for Linux.
Quoted 4 lines
In particular, iwp2*00 are working today in the kernel, and I
expect that they would be migrated to the new stack at the stack switchover. As both the IPW and the DeviceScape stacks are derived from the HostAP stack, that should not be too hard.
Devicescape code is not actually derived from Host AP code. The user space component is same (hostapd), but the kernel side is completely new implementation. As far as IPW is concerned, some parts of it is indeed derived from Host AP (I can never remember which one, but either TX or RX; while the other side was new design for some reason).
Quoted 3 lines
Also, what puzzle me is that Jouni doesn't seem to have
anounced any plan to port his HostAP driver to his DeviceScape stack. If there is one driver that should use it, that's HostAP.
Prism2/2.5/3 is getting somewhat old nowadays and I certainly prefer other chipset designs that do not have a large firmware component preventing driver/802.11 stack from doing things. Anyway, I have actually used Devicescape code with Prism2/2.5/3 cards by taking the low-level parts of the Host AP driver. This just happened to be two-three years ago and that code has found no use after that, so it has not been maintained.
I would certainly like to get rid of maintaining many parts of Host AP driver by getting it to use shared IEEE 802.11 code. I have been quite occupied with other projects lately which has made it more difficult to get much progress done here. Anyway, the current goal is to free up my time by end of this year so that I could start concentrating on the open source IEEE 802.11 stack for Linux 2.6.
One of the things I would like to do is to make sure that there is somewhat more complete setup available for testing the Devicescape code as part of open source development. I'm most familiar with Atheros chipset nowadays, so I would probably prefer to work with that and maybe Prism2 (i.e., support from Host AP driver) would be a good example of a firmware-based design, so those could be the easiest low-level drivers to get available using Devicescape 802.11 code. Getting ipw2x00 working with some kind of mix of the 802.11 stacks would be good think to do in order to make it easier to maintain existing functionality if larger changes for net/ieee80211 code is desired.
My goal is to get something into kernel tree that allows all types of chipset designs to benefit from the same implementation of 802.11 functionality. I'm not sure what would be the best way to achieve this quickly, but I have to admit that I would prefer the design used in Devicescape implementation over the code that is currently in Linux 2.6 tree.
I need to take a closer look at what could be done to merge the 802.11 code in a way that would not break existing in-tree drivers that are using net/ieee80211 (i.e., mainly ipw2x00). I'm afraid quite large changes will be needed to make the current in-tree code more usable for devices that use very minimal firmware or no firmware at all. In addition, the issue of dropping AP code from Host AP when merging in the version that ipw2x00 was using needs more attention when deciding what kind of design would allow all drivers to work with shared IEEE 802.11 stack.
Signature · 1 line
Jouni Malinen PGP id EFC895FA
Quoted 9 lines · Jouni Malinen
Quoted 3 lines · Jean Tourrilhes
DeviceScape stack :
drivers using it : ? potential drivers : hostap, ipw2100, ipw2200, r8180, adm8211It's mainly used with Atheros chipsets nowadays, but it has been used with couple of other chipsets, too, including Prism2/2.5/3 and parts of Host AP driver.
Well, the burning question is : Is it possible to include your
Atheros driver in the Linux kernel ? Meaning, will it be released, and will it contain a binary blob ?
If we can't put it in the kernel, it does not bring any thing
new comapre to MadWifi.
Quoted 6 lines
Quoted 5 lines
If you want to use the DeviceScape stack instead of the IPW
stack, my first question is how do you plan to migrate the drivers using it to the new stack. Currently, people are hard at work targetting the IPW stack (see above), I don't want them to have to throw away all their work.
Quoted 8 lines
No matter how this is done, I think it is quite likely that lot of work has to be thrown away in the sense that it does not end up being in the kernel. Having n+1 implementations for generic 802.11 functionality is a good proof of this already being the case. I wouldn't say all work is thrown away, though, even if lots of code will get thrown away. It is good to get understanding on what kind of specific requirements each chipset has in order to be able to accommodate them in the 802.11 design for Linux.
Precisely, which is why I've been pushing as many driver as I
can in the kernel, so that the need is clear and obvious.
Quoted 5 lines
Devicescape code is not actually derived from Host AP code. The user space component is same (hostapd), but the kernel side is completely new implementation. As far as IPW is concerned, some parts of it is indeed derived from Host AP (I can never remember which one, but either TX or RX; while the other side was new design for some reason).
Not cool. I usually don't like wrapper, but would it be
possible to wrap the IPW API around DeviceScape ?
Quoted 11 lines
Quoted 3 lines
Also, what puzzle me is that Jouni doesn't seem to have
anounced any plan to port his HostAP driver to his DeviceScape stack. If there is one driver that should use it, that's HostAP.Prism2/2.5/3 is getting somewhat old nowadays and I certainly prefer other chipset designs that do not have a large firmware component preventing driver/802.11 stack from doing things. Anyway, I have actually used Devicescape code with Prism2/2.5/3 cards by taking the low-level parts of the Host AP driver. This just happened to be two-three years ago and that code has found no use after that, so it has not been maintained.
It's old, but because it's the only current card properly
supported under Linux, most people are still using it. And you have many original Prism2 designs that you can't find with other chipset, such as the high power version and the CF cards.
Quoted 9 lines
I need to take a closer look at what could be done to merge the 802.11 code in a way that would not break existing in-tree drivers that are using net/ieee80211 (i.e., mainly ipw2x00). I'm afraid quite large changes will be needed to make the current in-tree code more usable for devices that use very minimal firmware or no firmware at all. In addition, the issue of dropping AP code from Host AP when merging in the version that ipw2x00 was using needs more attention when deciding what kind of design would allow all drivers to work with shared IEEE 802.11 stack.
Well, the problem is that the more we wait, the more people
are going in other directions. Driver authors are voting with their feets. I personally welcome your contribution, and I must admit I don't really know what is the best course of action.
Quoted 1 line
Jouni Malinen
Jean
Quoted 3 lines · Jean Tourrilhes
Well, the burning question is : Is it possible to include your
Atheros driver in the Linux kernel ? Meaning, will it be released, and will it contain a binary blob ?
If that were possible, it would have been released with the IEEE 802.11 code. It has the same issue as madwifi in the sense of depending on Atheros hal code.
Quoted 2 lines
Not cool. I usually don't like wrapper, but would it be
possible to wrap the IPW API around DeviceScape ?
I would not even like to think about that.. ;-) I think we are in a position where we are way more willing to change things than try to maintain current interfaces in backwards compatible ways.
Quoted 6 lines
Quoted 1 line
Prism2/2.5/3 is getting somewhat old nowadays and I certainly prefer
It's old, but because it's the only current card properly
supported under Linux, most people are still using it. And you have many original Prism2 designs that you can't find with other chipset, such as the high power version and the CF cards.
Agreed and as such, it is still on my list of things to maintain. However, this certainly means that it is likely to be of lower priority than some of the newer chipsets.
Signature · 1 line
Jouni Malinen PGP id EFC895FA
Quoted 4 lines · jt
MadWifi stack :
drivers using it : MadWifi (non GPL)
drivers in progress : FreeHAL Atheros, Prism54 softMAC, ural-ralink
Sam kindly pointed out that my statement above may be
confusing. It should read :
MadWifi stack :
drivers using it : Atheros (binary blob)
drivers in progress : FreeHAL Atheros, Prism54 softMAC, ural-ralink
Accept my apologies for the error.
Jean