Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2402 (new defect)

Opened 12 years ago

Last modified 11 years ago

MADWIFI including svn r4128 won't compile in Linux 2.6.33.2

Reported by: wartstew@yahoo.com Assigned to:
Priority: minor Milestone:
Component: madwifi: driver Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending: 0

Description

The madwifi driver used to work so well on my Ubuntu laptop's AR5212 chip, Now I can't even get it to compile with current kernels.

I get a "copy_from_user() buffer size is provably not correct" error when I try to compile for Linux 2.6.33.2 I got from kernel.org (complete with the spelling error!)

I understand that is because of strict copy_from_user checking that is now in effect on the kernel. Am I right in assuming that this points to an existing error in the MADWIFI code?

I just tried it with SVN version r4128.

I was able to compile MADWIFI to Linux version 2.6.32.11 however.

Change History

06/21/10 14:24:15 changed by Jacki

net80211/ieee80211_wireless.c

I have changed line 1939 from: if (copy_from_user(s, wri->pointer, wri->length)) to: if (copy_from_user(s, wri->pointer, sizeof(s)))

It seems to work on 2.6.33.4.