Lollipop Leak for Sprint Galaxy S5, TWRP for Micromax Canvas Magnus – XDA TV

Android 5.0 Lollipop has been leaked for the Sprint … more

Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Android 5.0 Lollipop in 3D–EVO 3D, That Is!

It is that time of the year once again. Flowers bloom (or snow falls, depending on which … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Kernel building with ath9k support

OP SnZ

29th August 2014, 07:44 PM   |  #1  
SnZ's Avatar
OP Senior Member
Thanks Meter: 40
 
307 posts
Join Date:Joined: Aug 2011
I'm trying to build kernel for pollux_windy with ath9k support, but my build fails with the following errors:

Code:
drivers/net/wireless/ath/ath9k/init.c: In function ‘ath9k_init_txpower_limits’:
drivers/net/wireless/ath/ath9k/init.c:627:26: error: ‘struct ath_common’ has no member named ‘tx_chainmask’
  ah->txchainmask = common->tx_chainmask;
does anybody have idea how i can fix this? I didn't had such problems with other devices.

Using this as a source: https://github.com/omnirom/android_kernel_sony_apq8064
30th August 2014, 08:10 PM   |  #2  
Senior Recognized Developer
Flag Owego, NY
Thanks Meter: 24,638
 
13,460 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Why in the world are you trying to build a kernel with support for hardware that is not in the device?
31st August 2014, 06:09 PM   |  #3  
SnZ's Avatar
OP Senior Member
Thanks Meter: 40
 
307 posts
Join Date:Joined: Aug 2011
Location
Quote:
Originally Posted by Entropy512

Why in the world are you trying to build a kernel with support for hardware that is not in the device?

Because of OTG and USB support

//EDIT

Big up for @mithun46 who pointed me in the right direction . Anyone interested read about git blame and reverse changes to files.
Last edited by SnZ; 31st August 2014 at 07:42 PM. Reason: solved
31st August 2014, 08:06 PM   |  #4  
mithun46's Avatar
Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by EsEnZeT

Because of OTG and USB support

//EDIT

Big up for @mithun46 who pointed me in the right direction . Anyone interested read about git blame and reverse changes to files.

Use the mention system instead of PMs from now as I'm sure there will be others with the same doubt as well. And for me answering it here will help more I think.
The Following User Says Thank You to mithun46 For This Useful Post: [ View ]
31st August 2014, 10:55 PM   |  #5  
SnZ's Avatar
OP Senior Member
Thanks Meter: 40
 
307 posts
Join Date:Joined: Aug 2011
Quote:
Originally Posted by mithun46

Use the mention system instead of PMs from now as I'm sure there will be others with the same doubt as well. And for me answering it here will help more I think.

sure thing
2nd September 2014, 06:14 PM   |  #6  
Senior Recognized Developer
Flag Owego, NY
Thanks Meter: 24,638
 
13,460 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Quote:
Originally Posted by EsEnZeT

Because of OTG and USB support

//EDIT

Big up for @mithun46 who pointed me in the right direction . Anyone interested read about git blame and reverse changes to files.

I thought ath9k was a PCI chipset - they have USB versions now?
5th September 2014, 10:11 PM   |  #7  
SnZ's Avatar
OP Senior Member
Thanks Meter: 40
 
307 posts
Join Date:Joined: Aug 2011
Quote:
Originally Posted by Entropy512

I thought ath9k was a PCI chipset - they have USB versions now?

sed 's/ath9k/ath9k_htc/g'
20th September 2014, 01:50 AM   |  #8  
Junior Member
Thanks Meter: 0
 
13 posts
Join Date:Joined: Jan 2010
More
I am also in the process of trying to compile a kernel module ath9k.


I also receive the error
Code:
drivers/net/wireless/ath/ath9k/init.c: In function ‘ath9k_init_txpower_limits’:
drivers/net/wireless/ath/ath9k/init.c:627:26: error: ‘struct ath_common’ has no member named ‘tx_chainmask’
  ah->txchainmask = common->tx_chainmask;
When attempting to enable

<*> Atheros Wireless Cards --->
<m> Atheros 802.11n wireless cards support (NEW)
<M> Atheros 802.11n wireless cards [*] Atheros ath9k AHB bus [*] Atheros ath9k [*] Atheros DFS support for certified [*] Atheros MAC statistics
[ ] Atheros ath9k rate control (NEW)


I have no idea whats up but i will peck away at it and see what happens. It is nice to know others are working on this as well.
I have a feeling it could be a required other driver or library that we are missing or failing to enable in menuconfig but i have no idea how legitimate an idea this is.
3rd October 2014, 10:48 AM   |  #9  
Junior Member
Thanks Meter: 2
 
6 posts
Join Date:Joined: Oct 2012
Quote:
Originally Posted by Infidel01

I am also in the process of trying to compile a kernel module ath9k.


I also receive the error

Code:
drivers/net/wireless/ath/ath9k/init.c: In function ‘ath9k_init_txpower_limits’:
drivers/net/wireless/ath/ath9k/init.c:627:26: error: ‘struct ath_common’ has no member named ‘tx_chainmask’
  ah->txchainmask = common->tx_chainmask;
When attempting to enable

<*> Atheros Wireless Cards --->
<m> Atheros 802.11n wireless cards support (NEW)
<M> Atheros 802.11n wireless cards [*] Atheros ath9k AHB bus [*] Atheros ath9k [*] Atheros DFS support for certified [*] Atheros MAC statistics
[ ] Atheros ath9k rate control (NEW)


I have no idea whats up but i will peck away at it and see what happens. It is nice to know others are working on this as well.
I have a feeling it could be a required other driver or library that we are missing or failing to enable in menuconfig but i have no idea how legitimate an idea this is.

Got exactly the same problem when trying to build 3.0.101 kernel.. would be very thanfull to get some hints how to solve that

Post Reply Subscribe to Thread

Tags
ath9k, compile, kernel, pollux_windy
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes