
Originally Posted by
secowu
Code:
CC [M] /media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.o
/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.c: In function 'ath_tx_complete_buf':
/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.c:1880: error: too many arguments to function 'ath_debug_stat_tx'
make[5]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k/xmit.o] Error 1
make[4]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless/ath] Error 2
make[2]: *** [/media/disk/compat-wireless-2010-04-05/drivers/net/wireless] Error 2
make[1]: *** [_module_/media/disk/compat-wireless-2010-04-05] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.30.9'
make: *** [modules] Error 2
The aforementioned build error is a bug in drivers/net/wireless/ath/ath9k/debug.h. I am not sure if it is a known bug, but I am pretty confident that somebody from compat-wireless is going to notice very soon :-) In order to get around this, you need to modify debug.h, and replace
Code:
static inline void ath_debug_stat_tx(struct ath_softc *sc,
struct ath_txq *txq,
struct ath_buf *bf)
with
Code:
static inline void ath_debug_stat_tx(struct ath_softc *sc,
struct ath_txq *txq,
struct ath_buf *bf,
struct ath_tx_status *ts)
After this change you will be able to compile the bleeding edge compat drivers just fine (tested on 2010-04-06). However, you probably will still run into the second problem:

Originally Posted by
khianhui
Similar problem with this one.Problem to locate ar9271.fw while I put it in both /lib/firmware and also /lib/firmware-2.6.30.9/ .
I think this is similar to what I experienced when trying to use the bleeding edge drivers for my Intel 5100 AGN, which also needs to load firmware. For future reference, the error I was getting was:
Code:
iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-2.ucode
iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-5000-2.ucode' failed.
iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-1.ucode
iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-5000-1.ucode' failed.
iwlagn 0000:03:00.0: no suitable firmware found!
After hours of debugging I discovered the most likely root cause. I believe that the problem only happens with the bleeding edge. Some of the drivers in the package have been rendered unusable, probably due to this change described by one of the developers of the package:
firmware loading vs. initrd
I *think* (but I am not completely confident) that the patch described in the aforementioned thread is also officially described here:
https://patchwork.kernel.org/patch/89007/
I have never tested the patch, did not want to rebuild the kernel. Instead, I simply switched to the most recent *stable* (not bleeding edge) compat-wireless drivers for my kernel (using the BT4 default kernel, 2.6.30), and support for my card started to work just fine.
Hope this helps.