5,814,633 Members 53,176 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Kernel building with ath9k support

Tip us?
 
SnZ
Old
#1  
SnZ's Avatar
Senior Member - OP
Thanks Meter 39
Posts: 299
Join Date: Aug 2011
Question [Q] Kernel building with ath9k support

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
 
Entropy512
Old
#2  
Senior Recognized Developer
Thanks Meter 24,378
Posts: 13,278
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Why in the world are you trying to build a kernel with support for hardware that is not in the device?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
SnZ
Old
(Last edited by SnZ; 31st August 2014 at 06:42 PM.) Reason: solved
#3  
SnZ's Avatar
Senior Member - OP
Thanks Meter 39
Posts: 299
Join Date: Aug 2011
Quote:
Originally Posted by Entropy512 View Post
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.
 
mithun46
Old
#4  
mithun46's Avatar
Recognized Contributor
Thanks Meter 1,662
Posts: 1,232
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by EsEnZeT View Post
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.
If you consider my efforts worthwhile then Donate or Thank me
The Following User Says Thank You to mithun46 For This Useful Post: [ Click to Expand ]
 
SnZ
Old
#5  
SnZ's Avatar
Senior Member - OP
Thanks Meter 39
Posts: 299
Join Date: Aug 2011
Quote:
Originally Posted by mithun46 View Post
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
 
Entropy512
Old
#6  
Senior Recognized Developer
Thanks Meter 24,378
Posts: 13,278
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by EsEnZeT View Post
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?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
SnZ
Old
#7  
SnZ's Avatar
Senior Member - OP
Thanks Meter 39
Posts: 299
Join Date: Aug 2011
Quote:
Originally Posted by Entropy512 View Post
I thought ath9k was a PCI chipset - they have USB versions now?
sed 's/ath9k/ath9k_htc/g'
 
Infidel01
Old
#8  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Jan 2010
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.
SGH-I337M : [OFFICIAL] PAC-ROM Weekly on Koodo

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

Advanced Search
Display Modes


Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more