[Android Apps and Games] osd_daedalus:
From my side... and *bummer*!

About my usb wifi, I was following instructions at this website:

https://z4ziggy.wordpress.com/2014/03/21/how-to-run-aircrack-ng-on-your-android/

Looks like perfect for it! Wohoo!!

So, I have downloaded the kernel sources (author uses Omni, I took the CM 10.1 sources for my N7000 which should use SMDK4210 board) and followed suggestions.

I used also these instructions to set correctly toolchain (for example, to me is not arm-eabi- but arm-linux-androidarmeabi- ...)

http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source

Bummer... looks like the Atheros wifi kernel sources are bugged! I can build modules for every other device, but not Atheros! I get errors...

I have tried also other branches, and to do same for the SMDK4412... for which there is no choice of ath9k or ath9k_htc!

The errors I get are various but looks like they derive from this:

~/Coding/cyanogenmod_kernel/android_kernel_samsung_smdk4210 $ make ARCH=arm CROSS_COMPILE=arm-linux-androideabi- modules
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CC [M] drivers/net/wireless/ath/ath9k/beacon.o
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109:10: error: 'struct ath_common' has no member named 'tx_chainmask'
common->tx_chainmask, series[0].Rate);
^
In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
from drivers/net/wireless/ath/ath9k/hw.h:26,
from drivers/net/wireless/ath/ath9k/debug.h:20,
from drivers/net/wireless/ath/ath9k/ath9k.h:25,
from drivers/net/wireless/ath/ath9k/beacon.c:17:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_tx_cabq':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_XMIT' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:124:2: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_XMIT,
^
drivers/net/wireless/ath/ath9k/../ath.h:273:19: note: each undeclared identifier is reported only once for each function it appears in
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:124:2: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_XMIT,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_generate':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BEACON' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:211:4: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BEACON,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_alloc':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BEACON' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:304:3: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BEACON,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_tasklet':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BSTUCK' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:377:4: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BSTUCK,
^
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BEACON' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:412:3: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BEACON,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_config_sta':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BEACON' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:540:3: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BEACON,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_config_adhoc':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_BEACON' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:672:2: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_BEACON,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath9k_allow_beacon_config':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_CONFIG' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:714:3: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_CONFIG,
^
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_set_beacon':
drivers/net/wireless/ath/ath9k/../ath.h:273:19: error: 'ATH_DBG_ATH_DBG_CONFIG' undeclared (first use in this function)
_ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
^
drivers/net/wireless/ath/ath9k/beacon.c:817:3: note: in expansion of macro 'ath_dbg'
ath_dbg(common, ATH_DBG_CONFIG,
^
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Errore 1
make[4]: *** [drivers/net/wireless/ath/ath9k] Errore 2
make[3]: *** [drivers/net/wireless/ath] Errore 2
make[2]: *** [drivers/net/wireless] Errore 2
make[1]: *** [drivers/net] Errore 2
make: *** [drivers] Errore 2

Looks like there is a ATH_DBG more... so I removed that part in ATH_DBG_##dbg_mask leaving only ##dbg_mask but then the compiler complains on other things.

Bummer..... so close :(

What I am trying to do now is to compile from Omni sources and if works, if there are differencies between Omni and CM kernel about the Atheros wireless source code and if I can fix the latter.

PROGRESSES: Stupid is me!!! Is even written to check Makefile and Kconfig!

Anyway, even when I compile the Ath modules from Omni source, I get another kind of error... I wonder if I miss something or there is something wrong with toolchain (4.9, from ndk10b)

CC [M] drivers/net/wireless/ath/main.o
In file included from include/linux/dmaengine.h:24:0,
from include/linux/skbuff.h:30,
from include/linux/if_ether.h:126,
from include/linux/netdevice.h:29,
from /home/deda/Coding/omnirom/android_kernel_samsung_smdk4412/include/compat/linux/compat-2.6.29.h:5,
from /home/deda/Coding/omnirom/android_kernel_samsung_smdk4412/include/compat/linux/compat-2.6.h:26,
from <command-line>:0:
include/linux/device.h: In function 'root_device_register':
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
return __root_device_register(name, THIS_MODULE);
^
include/linux/device.h:722:38: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/wireless/ath/main.c: At top level:
drivers/net/wireless/ath/main.c:58:1: warning: data definition has no type or storage class
EXPORT_SYMBOL(ath_rxbuf_alloc);
^
drivers/net/wireless/ath/main.c:58:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' [-Wimplicit-int]
drivers/net/wireless/ath/main.c:58:1: warning: parameter names (without types) in function declaration
drivers/net/wireless/ath/main.c:81:1: warning: data definition has no type or storage class
EXPORT_SYMBOL(ath_printk);
^
drivers/net/wireless/ath/main.c:81:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' [-Wimplicit-int]
drivers/net/wireless/ath/main.c:81:1: warning: parameter names (without types) in function declaration
make[4]: *** [drivers/net/wireless/ath/main.o] Errore 1
make[3]: *** [drivers/net/wireless/ath] Errore 2
make[2]: *** [drivers/net/wireless] Errore 2
make[1]: *** [drivers/net] Errore 2
make: *** [drivers] Errore 2