From: Tilman Schmidt <tilman@imap.cc>
To: me@felipebalbi.com
Cc: Greg KH <greg@kroah.com>,
linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org
Subject: Re: Q: support for AVM Fritz! WLAN USB in kernel 2.6.25+
Date: Fri, 01 Aug 2008 10:45:00 +0200 [thread overview]
Message-ID: <4892CD0C.7040403@imap.cc> (raw)
In-Reply-To: <20080731232640.GB10436@frodo>
[-- Attachment #1: Type: text/plain, Size: 3192 bytes --]
Felipe, Greg,
Please accept that I am not interested in discussing the merits of
commit 782e70c6fc2290a0395850e8e02583b8b62264d8. You seem to have
a great urge to explain these, and you are of course free to do so
whenever you want, but it is completely irrelevant to my question.
My only concern is to evaluate my options for using this device
with recent Linux releases, and I'll therefore limit my reply to
those of your statements which appear pertinent to that.
On Fri, 1 Aug 2008 02:26:41 +0300, Felipe Balbi wrote:
> And after all, that driver isn't even closed source. I can see in the
> files' header the driver is lgpl (that's actually the first lgpl driver
> i see :-p)
I think you are mistaken. Only the glue code to recompile for the
target kernel is LGPLed, the binary file which gets linked to it
obviously isn't. Consequently, line 49 of fritz/src/main.c says,
in no unclear words:
MODULE_LICENSE ("Proprietary");
But even if you were right it wouldn't help, because LGPL drivers
aren't permitted to use the USB API either.
> With a few changes to the source file, I could make it build. Don't have
> the device to test, but I assure you it's pretty simple changes.
Sure thing. In fact, that's what I did before posting my question.
For reference, here's the complete minimal patch needed to make
AVM's fwlanusb-1.00.00.tar.gz driver work on an openSUSE 11.0
system with kernel 2.6.25.11:
diff -rup fritz/src/defs.h fritz.patched/src/defs.h
--- fritz/src/defs.h 2007-07-05 15:00:00.000000000 +0200
+++ fritz.patched/src/defs.h 2008-07-11 17:47:08.000000000 +0200
@@ -60,7 +60,7 @@
#define UNUSED_ARG(x) (x)=(x)
-typedef unsigned long uintptr_t;
+//typedef unsigned long uintptr_t;
/*---------------------------------------------------------------------------*\
\*---------------------------------------------------------------------------*/
diff -rup fritz/src/main.c fritz.patched/src/main.c
--- fritz/src/main.c 2007-07-05 15:00:00.000000000 +0200
+++ fritz.patched/src/main.c 2008-07-11 17:48:45.000000000 +0200
@@ -46,7 +46,7 @@
/*---------------------------------------------------------------------------*\
\*---------------------------------------------------------------------------*/
-MODULE_LICENSE ("Proprietary");
+MODULE_LICENSE ("GPL");
MODULE_DESCRIPTION ("Driver for " PRODUCT_LOGO);
/*---------------------------------------------------------------------------*\
diff -rup fritz/src/wext.c fritz.patched/src/wext.c
--- fritz/src/wext.c 2007-07-05 15:00:00.000000000 +0200
+++ fritz.patched/src/wext.c 2008-07-28 02:37:10.000000000 +0200
@@ -68,7 +68,7 @@ static int fwlanusb_get_name (
struct net_device *dev, struct iw_request_info *info,
union iwreq_data *wrqu, char *extra) {
- strcpy(wrqu->name, "IEEE 802.11b/g");
+ snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11b/g");
return 0;
}
I guess you can spot the problematic part.
Thanks,
Tilman
--
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2008-08-01 8:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 14:52 Q: support for AVM Fritz! WLAN USB in kernel 2.6.25+ Tilman Schmidt
2008-07-31 15:25 ` Johannes Berg
2008-07-31 16:34 ` Tilman Schmidt
2008-07-31 16:50 ` John W. Linville
2008-07-31 22:13 ` Tilman Schmidt
2008-07-31 22:43 ` Eugeniy Meshcheryakov
2008-08-01 23:30 ` Tilman Schmidt
2008-08-02 8:28 ` Felipe Balbi
2008-08-02 21:58 ` Tilman Schmidt
2008-08-02 23:12 ` Felipe Balbi
2008-08-03 0:45 ` Tilman Schmidt
2008-08-03 0:57 ` Felipe Balbi
2008-08-03 3:43 ` Greg KH
2008-08-03 9:11 ` Felipe Balbi
2008-08-03 21:10 ` Kamil Dzida
2008-08-01 19:04 ` Daniel Gimpelevich
2008-07-31 16:38 ` Greg KH
2008-07-31 21:34 ` Tilman Schmidt
2008-07-31 21:50 ` Greg KH
2008-07-31 22:55 ` Tilman Schmidt
2008-07-31 23:26 ` Felipe Balbi
2008-08-01 8:45 ` Tilman Schmidt [this message]
2008-08-01 8:50 ` Felipe Balbi
2008-08-01 8:58 ` Tilman Schmidt
2008-08-01 9:05 ` Felipe Balbi
2008-08-01 9:25 ` Tilman Schmidt
2008-08-01 8:45 ` Felipe Balbi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4892CD0C.7040403@imap.cc \
--to=tilman@imap.cc \
--cc=greg@kroah.com \
--cc=linux-usb@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=me@felipebalbi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).