Page 1 of 1

at76c503a: URB_ASYNC_UNLINK undeclared

Posted: Mon Dec 26, 2005 11:26 am
by ^rooker
[PROBLEM]
When compiling the berlios USB-driver for the atmel "at76c403a" wlan chipset with kernel version 2.6.14.x, the following error appears:

Code: Select all

/mnt/storage/sources/at76c503a/at76c503.c: In function `ieee80211_to_eth':
/mnt/storage/sources/at76c503a/at76c503.c:3948: warning: assignment from incompatible pointer type
/mnt/storage/sources/at76c503a/at76c503.c: In function `at76c503_tx_timeout':
/mnt/storage/sources/at76c503a/at76c503.c:4820: error: `URB_ASYNC_UNLINK' undeclared (first use in this function)
/mnt/storage/sources/at76c503a/at76c503.c:4820: error: (Each undeclared identifier is reported only once
/mnt/storage/sources/at76c503a/at76c503.c:4820: error: for each function it appears in.)

[SOLUTION]
URB_ASYNC_UNLINK seems to have been removed from the kernel, so declare it manually in "at76c503.h":

Code: Select all

#define URB_ASYNC_UNLINK 0


unfortunately, this produces another error which should be fixed in a version patched for Debian:
http://packages.debian.org/testing/net/at76c503a-source