Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using kernel 3.2.0-24-generic. I need to modify source files of ath9k and mac80211. One of the files in mac80211 refers to a few linux header files such as linux/slab.h, linux/skbuff.h, linux/etherdevice.h, linux/if_arp.h and so on. I have installed the latest headers but still these are missing. Where can I download these header files?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Maybe you just need to point things to the right place?

$ find /usr/src/ -iname slab.h
/usr/src/linux-headers-3.2.0-24-generic/include/linux/slab.h
/usr/src/linux-headers-3.2.0-24/include/linux/slab.h

$ dpkg -S /usr/src/linux-headers-3.2.0-24/include/linux/slab.h
linux-headers-3.2.0-24: /usr/src/linux-headers-3.2.0-24/include/linux/slab.h

So as long as you have the linux-headers-3.2.0-24 package, you should be good to go.

Also, if you update your question with the command you're running to compile the module you're modifying it may be helpful, because modules need to be compiled a specific way (I'm no expert, I'm hoping someone notices it and tells us how it's done).

share|improve this answer
    
Thank you for the response. I needed to include the folder under directories to be searched. –  user592748 Jun 16 '12 at 11:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.