Re: Strange wireless card?

From: Roel Kluin
Date: Sat Aug 08 2009 - 11:38:05 EST


Op 05-08-09 05:06, Gene Heskett schreef:
> Greetings;
>
> Can anyone tell me if this pci wireless card is supported, or what its
> status is?
>
>>From lspci -v:
> 01:06.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)
> Subsystem: Netgear WG311v3 802.11g Wireless PCI Adapter
>
> I have built a 2.6.31-rc5 kernel with the Marvel stuffs all enabled, but
> even a modprobe mwl8k, while apparently loading the driver, doesn't create
> any wireless devices in /dev.
>
> Thanks for any pointers.
>

It could be due to a regression I caused, see this thread,

http://lkml.org/lkml/2009/8/8/77

Could you test it with this?

diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
index d699737..49fceb9 100644
--- a/drivers/net/wireless/libertas/assoc.c
+++ b/drivers/net/wireless/libertas/assoc.c
@@ -45,7 +45,7 @@ static int get_common_rates(struct lbs_private *priv,
{
u8 *card_rates = lbs_bg_rates;
int ret = 0, i, j;
- u8 tmp[(ARRAY_SIZE(lbs_bg_rates) - 1) * (*rates_size - 1)];
+ u8 tmp[*rates_size * ARRAY_SIZE(lbs_bg_rates) - 1];
size_t tmp_size = 0;

/* For each rate in card_rates that exists in rate1, copy to tmp */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/