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
http://bugzilla.kernel.org/show_bug.cgi?id=11802 Shows the problem and has a fix for it, albeit a "HORRIBLE HACK"
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)
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
Ah, hadn't quite gotten that far. Still on 2.6.27-gentoo-r2. Sorry