From: Hauke Mehrtens <hauke@hauke-m.de>
To: Alfonso Fiore <alfonso.fiore@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: can't compile latest compat-wireless under kernel 3.2 even using git
Date: Thu, 02 Feb 2012 22:42:54 +0100 [thread overview]
Message-ID: <4F2B035E.6000401@hauke-m.de> (raw)
In-Reply-To: <CAO=xpBF29QocL3fnvophm9gO4ATKFhBCCGiPe9mka0mXAuPbfA@mail.gmail.com>
On 02/02/2012 07:22 PM, Alfonso Fiore wrote:
> On Wed, Feb 1, 2012 at 9:16 PM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>>
>> What kernel are you compiling against? skb_complete_wifi_ack() is not
>> declared in linux kernel 3.2.2, just in 3.3-rc2. It looks like the
>> kernel you are compiling against has some modifications conflicting with
>> compat-wireless.
>
> With some tricks I managed to compile compat-wireless against my
> custom kernel, but that didn't solve my problem. Apparently when I
> thought the latest compat-wireless fixed my problem I was wrong, it
> was just a random glitch.
> Or most probably I completely screwed up my drivers by juggling two kernels.
> Anyway, I booted with 3.0.0-15, recompiled (with make clean) both
> (rebooting each time) compat-wireless-3.3-rc1-2 and
> compat-wireless-2012-01-26 and I still get a very limited performance
> over wireless (max 300 KB/sec).
>
> *** Is there a chance to activate some logging that could give you an idea
> on why my wireless is not performing? ***
Most drivers and the wireless subsystem itself have some config otpions
to activate debug output. Search in the config.mk in compat-wirless for
the debug options for your devicve and activate them by editing
config.mk and rebuilding compat-wireless
> Twice, randomly, I've seen it going as fast as wired (accessing the
> internet) so I imagine it's something than can be fixed.
> I also test both speedtest.net and wget from a local mirror, so it's
> not a fluctuating link.
Now it is interestingly to know what Wifi device you are using and what
Access point.
>
> In case you wonder how I compiled the git version of compat-wireless
> for my custom kernel, here is how (and it works, but with the same
> sub-standard performances as compat-wireless-2012-01-26 under 3.0.0):
>
> Ok so first I compiled linux-next:
>
> cd linux-next/
> cp /boot/config-3.0.0-15-generic-pae .config
> yes '' | make oldconfig
> make-kpkg clean
> CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg
> --initrd --append-to-version=-linux-next kernel_image kernel_headers
>
> then I went into my current kernel and changed links:
>
> cd /lib/modules/3.2.0-interlaced2+
> sudo mv source source_true
> sudo mv build build_true
> sudo ln -s /storage/wireless/linux-next source
> sudo ln -s /storage/wireless/linux-next build
>
> then I compiled compat-wireless
>
> cd /storage/wireless/compat-wireless/
> make clean
> make (compilation went well)
>
> then put back the links:
>
> cd /lib/modules/3.2.0-interlaced2+
> sudo mv build_true build
> sudo mv source_true source
>
> and installed compat-wireless:
> cd /storage/wireless/compat-wireless/
> sudo make install
That looks bad.
The easiest and safest ways would be to remove the skb_complete_wifi_ack
backport from include/linux/compat-3.3.h in compat-wireless.
Hauke
prev parent reply other threads:[~2012-02-02 21:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 19:32 can't compile latest compat-wireless under kernel 3.2 even using git Alfonso Fiore
2012-02-01 20:16 ` Hauke Mehrtens
2012-02-02 18:22 ` Alfonso Fiore
2012-02-02 21:42 ` Hauke Mehrtens [this message]
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=4F2B035E.6000401@hauke-m.de \
--to=hauke@hauke-m.de \
--cc=alfonso.fiore@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/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).