(readded cc) Hello Peter, On Wednesday, December 04, 2013 07:10:01 PM p2p@xxxxxxxxx wrote: > >> I don't know yet if I have the time to take part. But as I wrote I > >> have a good book which describes in detail driver development for > >> 2.6 kernel. > >> > >> What do you think how many LOC have to been written? > > Ok?! > > > > rtl8192cu has around 8600 LOCs, rtl8192se has around 10700. That > > said, > > realtek's own 8190n driver comes in at 90 000+ LOCs driver [of > > course, > > that driver comes with its own stack, sme and maybe a few other bells > > and whiles]. I guess the answer here is really: take what ever number > > you prefer :-D. > > > > What do you think how many percent can be written by copy and paste? I think this problem has to be approached from two sides. 1. In theory (as in CS theory) everything you need is basically a carefully selected string of 0 and 1s. [That said: it is very hard to develop this way. but it would be cool - certainly a "one of a kind" approach in these days. It would be familiar with those who ever had to use punch cards and a "one-shot" hole puncher]. => need to copy & paste just 2 bits 2. rtlwifi should already provide a decent framework/foundation for such a driver. So no need to copy anything, you just have to use the API that's already in place. If you need a function from rtl8192se or rtl8192cu, you shouldn't copy it, but move it to the shared library code instead. => no copy & paste at all. Summary: "A driver can be copied & pasted together from just two bits (that would a cool "best case")... or it could be: every single line needs to be written by hand (is this the "worst case"? or is it the other way around)." [I think these "statistics" only work, if the project is already "done", or at least at the "almost nearly done" milestone.] Regards, Christian -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html