Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254610 - Hostap does not work with kernel 2.6.27
Summary: Hostap does not work with kernel 2.6.27
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 09:01 UTC by Paul
Modified: 2009-01-16 05:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2009-01-12 09:01:27 UTC
When using kernel 2.6.26 wpa_supplicant works fine. But when using kernel 2.6.27, wpa_cli status forever says ASSOCIATING the wireless device will not get an ip address. Also there are a bunch of "wifi0: invalid skb->cb magic (0x000002d2, expected 0xf08a36a2)" in dmesg. This happens with both the vanilla kernel and gentoo-sources. My wireless card is a Netgear MA311 802.11b wireless adapter.

Reproducible: Always
Comment 1 Paul 2009-01-12 09:56:27 UTC
http://bugzilla.kernel.org/show_bug.cgi?id=11802

Shows the problem and has a fix for it, albeit a "HORRIBLE HACK"
Comment 2 Paul 2009-01-12 09:57:09 UTC
Here's the fix listed on the kernel.org bugzilla:

--- everything.orig/drivers/net/wireless/hostap/hostap_wlan.h   2008-10-24
16:27:46.000000000 +0200
+++ everything/drivers/net/wireless/hostap/hostap_wlan.h        2008-10-24
16:29:17.000000000 +0200
@@ -918,9 +918,12 @@ struct hostap_interface {

 /*
  * TX meta data - stored in skb->cb buffer, so this must not be increased over
- * the 40-byte limit
+ * the 48-byte limit.
+ * THE PADDING THIS STARTS WITH IS A HORRIBLE HACK THAT SHOULD NOT LIVE
+ * TO SEE THE DAY.
  */
 struct hostap_skb_tx_data {
+       unsigned int __padding_for_default_qdiscs;
        u32 magic; /* HOSTAP_SKB_TX_DATA_MAGIC */
        u8 rate; /* transmit rate */
 #define HOSTAP_TX_FLAGS_WDS BIT(0)

Comment 3 Mike Pagano gentoo-dev 2009-01-16 02:01:51 UTC
This patch is included in linux-2.6.27.7[1] which has been in genpatches since 2.6.27-6 [2] and used in gentoo-sources since gentoo-sources-2.6.27-r4.

[1] http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.27.7
[2] http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/tags/2.6.27-6/

link to patch in stable:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=commitdiff;h=2b233b842dfb434bfc946bbd97ec475a01b89000
Comment 4 Paul 2009-01-16 05:13:46 UTC
Ah, hadn't quite gotten that far. Still on 2.6.27-gentoo-r2. Sorry