From mboxrd@z Thu Jan 1 00:00:00 1970 From: xpkdb Date: Mon, 16 Mar 2015 10:13:15 +0800 Subject: [ath9k-devel] =?utf-8?b?5Zue5aSNOiBSZTogIGluaXQgYXRoOWtfaHRjIGRl?= =?utf-8?q?vice_fails?= References: , <82BAAE499C1FCC499D6E0F5DEB09AF5B53EB90@EX02.corp.qihoo.net> Message-ID: <201503161013145933120@163.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org ???????????????????????????????????????From:????Date:?2015-03-16?10:03To:?seb xper; ath9k-devel at lists.ath9k.orgSubject:?Re: [ath9k-devel] init ath9k_htc device fails Maybe the phone?s kernel had been modified,? it didn?t export ?ath9k_hw_set_txpowerlimit symbol. ?You?d better use the same kernel source tree code as your phone to compile this module. ? ? ? From: ath9k-devel-bounces@lists.ath9k.org [mailto:ath9k-devel-bounces at lists.ath9k.org] On Behalf Of seb xper Sent: Sunday, March 15, 2015 11:51 PM To: ath9k-devel at lists.ath9k.org Subject: [ath9k-devel] init ath9k_htc device fails ? Hi, ? I'm trying to get an external usb wireless stick working on my android phone using linux deploy. I've managed to compile the needed kernel module but initialising the device fails. ? Could someone please point me in the right direction? ? Thanks a lot. sebastian ? lsusb output: Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ? dmesg output: [ 1230.872528] ath9k_common: Unknown symbol ath9k_hw_set_txpowerlimit (err 0) [ 1266.442230] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272 [ 1266.679565] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits [ 1266.934692] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3 [ 1266.936035] ath: EEPROM regdomain: 0x809c [ 1266.936096] ath: EEPROM indicates we should expect a country code [ 1266.936157] ath: doing EEPROM country->regdmn map search [ 1266.936218] ath: country maps to regdmn code: 0x52 [ 1266.936309] ath: Country alpha2 being used: CN [ 1266.936370] ath: Regpair used: 0x52 [ 1266.936798] ------------[ cut here ]------------ [ 1266.937683] WARNING: at /home/seb/android/system/out/target/product/haida/obj/KERNEL_OBJ/modules/compat_wl12xx/net/wireless/reg.c:1279 wiphy_apply_custom_regulatory+0x130/0x188 [cfg80211]() [ 1266.939605] Modules linked in: ath9k_htc(+) ath9k_common ath9k_hw ath wl12xx_sdio(O) wl12xx(O) mac80211(O) cfg80211(O) compat(O) [last unloaded: wl12xx_sdio] [ 1266.940002] [] (unwind_backtrace+0x0/0xe0) from [] (warn_slowpath_common+0x4c/0x64) [ 1266.940185] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x18/0x1c) [ 1266.940399] [] (warn_slowpath_null+0x18/0x1c) from [] (wiphy_apply_custom_regulatory+0x130/0x188 [cfg80211]) [ 1266.940673] [] (wiphy_apply_custom_regulatory+0x130/0x188 [cfg80211]) from [] (ath_regd_init+0x334/0x3c8 [ath]) [ 1266.940979] [] (ath_regd_init+0x334/0x3c8 [ath]) from [] (ath9k_htc_probe_device+0x5fc/0x83c [ath9k_htc]) [ 1266.941284] [] (ath9k_htc_probe_device+0x5fc/0x83c [ath9k_htc]) from [] (ath9k_htc_hw_init+0x10/0x2c [ath9k_htc]) [ 1266.941589] [] (ath9k_htc_hw_init+0x10/0x2c [ath9k_htc]) from [] (ath9k_hif_usb_probe+0x338/0x374 [ath9k_htc]) [ 1266.941833] [] (ath9k_hif_usb_probe+0x338/0x374 [ath9k_htc]) from [] (usb_probe_interface+0x11c/0x198) [ 1266.942016] [] (usb_probe_interface+0x11c/0x198) from [] (driver_probe_device+0xb8/0x1fc) [ 1266.942443] [] (driver_probe_device+0xb8/0x1fc) from [] (__driver_attach+0x68/0x8c) [ 1266.942596] [] (__driver_attach+0x68/0x8c) from [] (bus_for_each_dev+0x48/0x80) [ 1266.942749] [] (bus_for_each_dev+0x48/0x80) from [] (bus_add_driver+0xd8/0x23c) [ 1266.942901] [] (bus_add_driver+0xd8/0x23c) from [] (driver_register+0x9c/0x120) [ 1266.943054] [] (driver_register+0x9c/0x120) from [] (usb_register_driver+0x60/0x124) [ 1266.943298] [] (usb_register_driver+0x60/0x124) from [] (init_module+0x8/0x2c [ath9k_htc]) [ 1266.943511] [] (init_module+0x8/0x2c [ath9k_htc]) from [] (do_one_initcall+0x90/0x160) [ 1266.943695] [] (do_one_initcall+0x90/0x160) from [] (sys_init_module+0x1508/0x1694) [ 1266.943878] [] (sys_init_module+0x1508/0x1694) from [] (ret_fast_syscall+0x0/0x30) [ 1266.943969] ---[ end trace 0a7e2aee22e460a5 ]--- [ 1266.951690] ------------[ cut here ]------------ [ 1266.952575] WARNING: at /home/seb/android/system/out/target/product/haida/obj/KERNEL_OBJ/modules/compat_wl12xx/net/wireless/core.c:579 wiphy_register+0x4a8/0x518 [cfg80211]() [ 1266.954437] Modules linked in: ath9k_htc(+) ath9k_common ath9k_hw ath wl12xx_sdio(O) wl12xx(O) mac80211(O) cfg80211(O) compat(O) [last unloaded: wl12xx_sdio] [ 1266.954833] [] (unwind_backtrace+0x0/0xe0) from [] (warn_slowpath_common+0x4c/0x64) [ 1266.954986] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x18/0x1c) [ 1266.955200] [] (warn_slowpath_null+0x18/0x1c) from [] (wiphy_register+0x4a8/0x518 [cfg80211]) [ 1266.955596] [] (wiphy_register+0x4a8/0x518 [cfg80211]) from [] (ieee80211_register_hw+0x430/0x654 [mac80211]) [ 1266.955993] [] (ieee80211_register_hw+0x430/0x654 [mac80211]) from [] (ath9k_htc_probe_device+0x66c/0x83c [ath9k_htc]) [ 1266.956298] [] (ath9k_htc_probe_device+0x66c/0x83c [ath9k_htc]) from [] (ath9k_htc_hw_init+0x10/0x2c [ath9k_htc]) [ 1266.956756] [] (ath9k_htc_hw_init+0x10/0x2c [ath9k_htc]) from [] (ath9k_hif_usb_probe+0x338/0x374 [ath9k_htc]) [ 1266.957000] [] (ath9k_hif_usb_probe+0x338/0x374 [ath9k_htc]) from [] (usb_probe_interface+0x11c/0x198) [ 1266.957183] [] (usb_probe_interface+0x11c/0x198) from [] (driver_probe_device+0xb8/0x1fc) [ 1266.957366] [] (driver_probe_device+0xb8/0x1fc) from [] (__driver_attach+0x68/0x8c) [ 1266.957519] [] (__driver_attach+0x68/0x8c) from [] (bus_for_each_dev+0x48/0x80) [ 1266.957672] [] (bus_for_each_dev+0x48/0x80) from [] (bus_add_driver+0xd8/0x23c) [ 1266.957824] [] (bus_add_driver+0xd8/0x23c) from [] (driver_register+0x9c/0x120) [ 1266.957977] [] (driver_register+0x9c/0x120) from [] (usb_register_driver+0x60/0x124) [ 1266.958190] [] (usb_register_driver+0x60/0x124) from [] (init_module+0x8/0x2c [ath9k_htc]) [ 1266.958435] [] (init_module+0x8/0x2c [ath9k_htc]) from [] (do_one_initcall+0x90/0x160) [ 1266.958587] [] (do_one_initcall+0x90/0x160) from [] (sys_init_module+0x1508/0x1694) [ 1266.958770] [] (sys_init_module+0x1508/0x1694) from [] (ret_fast_syscall+0x0/0x30) [ 1266.958862] ---[ end trace 0a7e2aee22e460a6 ]--- [ 1266.962249] Failed to initialize the device [ 1266.970794] ath9k_htc: probe of 1-1:1.0 failed with error -22 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20150316/ff88afe2/attachment-0001.htm