[Android Q&A, Help & Troubleshooting] magdawikia:
Hello everyone!

I am trying to compile a WiFi driver (ath6kl) for my Sony Xperia E (Android version: 4.1.1, compilation: 11.3.A.0.47). I have downloaded the source code for compilation 11.3.A.0.47 from here:

developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-11-3-a-0-47

I have compiled required kernel modules (cfg80211 and ath6kl_sdio), but I have encountered some problems during this proccess. I don't understand why on my android device (in /system/lib/modules/ath6kl) there are two modules: ath6kl_sdio.ko and cfg80211.ko (first one depends on the second one). But when I look at my

sources, I see the following module dependencies for ath6kl: ath6kl_sdio -> ath6kl_core -> cfg80211. So there are 3 modules instead of 2. Anyway, after some modification (I merged ath6kl_core and ath6kl_sdio into one module) I managed to compile ath6kl.

I have replaced compiled modules in /system/lib/modules/ath6kl on my android device, then rebooted and I got the following error:

<4>[ 23.055226] ath6kl_sdio: disagrees about version of symbol cfg80211_sched_scan_results

<4>[ 23.055251] ath6kl_sdio: Unknown symbol cfg80211_sched_scan_results (err -22)

<4>[ 23.055281] ath6kl_sdio: no symbol version for cfg80211_cqm_txe_notify

<4>[ 23.055291] ath6kl_sdio: Unknown symbol cfg80211_cqm_txe_notify (err -22)

<4>[ 23.055391] ath6kl_sdio: disagrees about version of symbol cfg80211_scan_done

<4>[ 23.055401] ath6kl_sdio: Unknown symbol cfg80211_scan_done (err -22)

<4>[ 23.055434] ath6kl_sdio: disagrees about version of symbol cfg80211_sched_scan_stopped

<4>[ 23.055446] ath6kl_sdio: Unknown symbol cfg80211_sched_scan_stopped (err -22)

<4>[ 23.055528] ath6kl_sdio: disagrees about version of symbol cfg80211_remain_on_channel_expired

<4>[ 23.055539] ath6kl_sdio: Unknown symbol cfg80211_remain_on_channel_expired (err -22)

<4>[ 23.055618] ath6kl_sdio: disagrees about version of symbol regulatory_hint

<4>[ 23.055628] ath6kl_sdio: Unknown symbol regulatory_hint (err -22)

<4>[ 23.055651] ath6kl_sdio: disagrees about version of symbol cfg80211_roamed_bss

<4>[ 23.055661] ath6kl_sdio: Unknown symbol cfg80211_roamed_bss (err -22)

<4>[ 23.055689] ath6kl_sdio: disagrees about version of symbol cfg80211_new_sta

<4>[ 23.055699] ath6kl_sdio: Unknown symbol cfg80211_new_sta (err -22)

<4>[ 23.055731] ath6kl_sdio: disagrees about version of symbol cfg80211_disconnected

<4>[ 23.055743] ath6kl_sdio: Unknown symbol cfg80211_disconnected (err -22)

<4>[ 23.055783] ath6kl_sdio: disagrees about version of symbol cfg80211_ready_on_channel

<4>[ 23.055793] ath6kl_sdio: Unknown symbol cfg80211_ready_on_channel (err -22)

<4>[ 23.055856] ath6kl_sdio: disagrees about version of symbol wiphy_register

<4>[ 23.055866] ath6kl_sdio: Unknown symbol wiphy_register (err -22)

<4>[ 23.055878] ath6kl_sdio: disagrees about version of symbol wiphy_new

<4>[ 23.055888] ath6kl_sdio: Unknown symbol wiphy_new (err -22)

<4>[ 23.055903] ath6kl_sdio: disagrees about version of symbol cfg80211_put_bss

<4>[ 23.055913] ath6kl_sdio: Unknown symbol cfg80211_put_bss (err -22)

<4>[ 23.055931] ath6kl_sdio: no symbol version for cfg80211_ch_switch_notify

<4>[ 23.055941] ath6kl_sdio: Unknown symbol cfg80211_ch_switch_notify (err -22)

<4>[ 23.055956] ath6kl_sdio: disagrees about version of symbol cfg80211_inform_bss

<4>[ 23.055968] ath6kl_sdio: Unknown symbol cfg80211_inform_bss (err -22)

<4>[ 23.056019] ath6kl_sdio: disagrees about version of symbol cfg80211_ibss_joined

<4>[ 23.056029] ath6kl_sdio: Unknown symbol cfg80211_ibss_joined (err -22)

<4>[ 23.056061] ath6kl_sdio: disagrees about version of symbol cfg80211_michael_mic_failure

<4>[ 23.056073] ath6kl_sdio: Unknown symbol cfg80211_michael_mic_failure (err -22)

<4>[ 23.056099] ath6kl_sdio: disagrees about version of symbol cfg80211_connect_result

<4>[ 23.056109] ath6kl_sdio: Unknown symbol cfg80211_connect_result (err -22)

<4>[ 23.056153] ath6kl_sdio: disagrees about version of symbol wiphy_unregister

<4>[ 23.056164] ath6kl_sdio: Unknown symbol wiphy_unregister (err -22)

<4>[ 23.056199] ath6kl_sdio: disagrees about version of symbol cfg80211_get_bss

<4>[ 23.056209] ath6kl_sdio: Unknown symbol cfg80211_get_bss (err -22)

<4>[ 23.056231] ath6kl_sdio: disagrees about version of symbol __ieee80211_get_channel

<4>[ 23.056243] ath6kl_sdio: Unknown symbol __ieee80211_get_channel (err -22)

<4>[ 23.056264] ath6kl_sdio: disagrees about version of symbol cfg80211_pmksa_candidate_notify

<4>[ 23.056276] ath6kl_sdio: Unknown symbol cfg80211_pmksa_candidate_notify (err -22)

<4>[ 23.056319] ath6kl_sdio: disagrees about version of symbol cfg80211_mgmt_tx_status

<4>[ 23.056331] ath6kl_sdio: Unknown symbol cfg80211_mgmt_tx_status (err -22)

<4>[ 23.056374] ath6kl_sdio: disagrees about version of symbol cfg80211_del_sta

<4>[ 23.056384] ath6kl_sdio: Unknown symbol cfg80211_del_sta (err -22)

<4>[ 23.056418] ath6kl_sdio: disagrees about version of symbol cfg80211_rx_mgmt

<4>[ 23.056428] ath6kl_sdio: Unknown symbol cfg80211_rx_mgmt (err -22)

<4>[ 23.056494] ath6kl_sdio: disagrees about version of symbol cfg80211_inform_bss_frame

<4>[ 23.056504] ath6kl_sdio: Unknown symbol cfg80211_inform_bss_frame (err -22)

<4>[ 23.056531] ath6kl_sdio: no symbol version for cfg80211_conn_failed

<4>[ 23.056541] ath6kl_sdio: Unknown symbol cfg80211_conn_failed (err -22)

<4>[ 23.056586] ath6kl_sdio: disagrees about version of symbol wiphy_free

<4>[ 23.056596] ath6kl_sdio: Unknown symbol wiphy_free (err -22)

Please, tell me what I am doing wrong? I am very desperate cause I want to modify this driver (to be able to calculate some network statistics) but I cannot load modules at all so I am stuck.

Thanks in advance!