Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: [Question] Patching the ath5k driver for injection

  1. #1
    Join Date
    May 2009
    Beans
    2

    [Question] Patching the ath5k driver for injection

    Well First time posting.

    Well, I just got myself a new netbook today. It's an Acer Aspire AOA150-1555 and have installed Ubuntu 9.04 on to it. Basically what I want to do is patch my wireless card for better injection, But that's where I'm hitting a wall.

    Code:
    owner@ubuntu:~$ lsmod
    Module                  Size  Used by
    i915                   65540  2 
    drm                    96296  3 i915
    binfmt_misc            16776  1 
    ppdev                  15620  0 
    bridge                 56340  0 
    stp                    10500  1 bridge
    bnep                   20224  2 
    input_polldev          11912  0 
    joydev                 18368  0 
    lp                     17156  0 
    parport                42220  2 ppdev,lp
    snd_hda_intel         435636  3 
    snd_pcm_oss            46336  0 
    snd_mixer_oss          22656  1 snd_pcm_oss
    snd_pcm                82948  2 snd_hda_intel,snd_pcm_oss
    arc4                    9856  2 
    ecb                    10752  2 
    snd_seq_dummy          10756  0 
    uvcvideo               63240  0 
    snd_seq_oss            37760  0 
    compat_ioctl32          9344  1 uvcvideo
    snd_seq_midi           14336  0 
    ath5k                 107008  0 
    snd_rawmidi            29696  1 snd_seq_midi
    videodev               41600  1 uvcvideo
    psmouse                61972  0 
    snd_seq_midi_event     15104  2 snd_seq_oss,snd_seq_midi
    v4l1_compat            21764  2 uvcvideo,videodev
    serio_raw              13316  0 
    mac80211              217208  1 ath5k
    acer_wmi               24260  0 
    pcspkr                 10496  0 
    snd_seq                56880  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    led_class              12036  2 ath5k,acer_wmi
    snd_timer              29704  2 snd_pcm,snd_seq
    snd_seq_device         14988  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    iTCO_wdt               19108  0 
    iTCO_vendor_support    11652  1 iTCO_wdt
    cfg80211               38032  2 ath5k,mac80211
    video                  25360  0 
    intel_agp              34108  1 
    snd                    62628  15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    output                 11008  1 video
    agpgart                42696  3 drm,intel_agp
    soundcore              15200  1 snd
    snd_page_alloc         16904  2 snd_hda_intel,snd_pcm
    r8169                  40836  0 
    mii                    13312  1 r8169
    fbcon                  46112  0 
    tileblit               10752  1 fbcon
    font                   16384  1 fbcon
    bitblit                13824  1 fbcon
    softcursor              9984  1 bitblit
    owner@ubuntu:~$
    I have downloaded the driver to patch it from the aircrack-ng site. (ath5k-injection-2.6.27-rc2.patch), but now I'm stuck as I'm not sure where the Ath5k sources are at on the system. This was easier on my old sylvania g netbook as there were a lot of tutorials on how to patch the r8187 driver. but running ls -a /usr/src/linux-headers-2.6.28-11/drivers/net/wireless/ath5k/ I get

    Code:
    owner@ubuntu:~$ ls -a /usr/src/linux-headers-2.6.28-11/drivers/net/wireless/ath5k/ 
    .  ..  Kconfig  Makefile
    I was wondering were the sources are or better yet if a tutorial was avaiable about how to patch the ath5k drivers on ubuntu 9.04.

    Thanks in advance to anyone who can help me with this issue

  2. #2
    Join Date
    May 2009
    Beans
    11

    Re: [Question] Patching the ath5k driver for injection

    I have a very similar problem. Did you find a solution so far?

  3. #3

    Re: [Question] Patching the ath5k driver for injection

    did anyone solve how to patch this driver??

  4. #4
    Join Date
    Mar 2008
    Beans
    917

    Re: [Question] Patching the ath5k driver for injection

    Well I have not posted on these forums for a minute, but felt I should help you out since I figured this one out for myself after much head scratching


    You will need to get source code for a package called compat-wireless - Just google compat-wireless and the first hit is it.

    Get the latest stable release of that and then you must get the proper aircrack patch for ath5k injection rates, ath5k-injection-2.6.27-rc2.patch seems to work fine. So google aircrack patches and get that one.

    Once you untar the source for compat-wireless you will find the ath5k source in compat-wireless-2.6.30/drivers/net/wireless/ath5k . Before compileing the compat-wireless code you must patch the ath5k driver source with the aircrack patch mentioned above.

    To do that you use the patch command like so in a terminal

    patch -Np0 -i <name of the patch file>

    Now the patch file will point to a different location than the source is in so it will ask you for what file you want to patch, you need to give it the full path to the source code as well as the source code filename

    Example from a terminal prompt with patch in same folder as prompt is.
    patch -Np0 -i ath5k-injection-2.6.27-rc2.patch

    This returns that it cant find the file to be patched and prompts for file name & location

    So I enter the following for source file location ( via paste )
    /home/tech/CUSTOM-SOFT/compat-wireless-2.6.30/drivers/net/wireless/ath5k/base.c

    where base.c is the source code to patch and the rest is the path to where I have placed the source, you can put your source code to compile in any directory you want etc. I am no Ubuntu expert at doing it the right way - I am good at makin it work though as that is all I care about.

    Once you patch the driver its just these commands in the compat-wireless source directory.

    make
    sudo make install

    Then you will also need to deal with blacklisting any unwanted atheros madwifi modules previously in use etc. So if you don't know how to do that just search here on the forums as it is well covered.

    I also remove Jockey & Network Manager while installing WICD as a GUI replacement that seems to cause less interference than network manager can


    GOOD LUCK ALL AND POST IF YOU GET YOURS TO WORK

  5. #5

    Re: [Question] Patching the ath5k driver for injection

    If you have jaunty and ath5k comes working out the box, do you have to get compact wireless still or just patch the one thats with the system?

    Quote Originally Posted by nicedude View Post
    Well I have not posted on these forums for a minute, but felt I should help you out since I figured this one out for myself after much head scratching


    You will need to get source code for a package called compat-wireless - Just google compat-wireless and the first hit is it.

    Get the latest stable release of that and then you must get the proper aircrack patch for ath5k injection rates, ath5k-injection-2.6.27-rc2.patch seems to work fine. So google aircrack patches and get that one.

    Once you untar the source for compat-wireless you will find the ath5k source in compat-wireless-2.6.30/drivers/net/wireless/ath5k . Before compileing the compat-wireless code you must patch the ath5k driver source with the aircrack patch mentioned above.

    To do that you use the patch command like so in a terminal

    patch -Np0 -i <name of the patch file>

    Now the patch file will point to a different location than the source is in so it will ask you for what file you want to patch, you need to give it the full path to the source code as well as the source code filename

    Example from a terminal prompt with patch in same folder as prompt is.
    patch -Np0 -i ath5k-injection-2.6.27-rc2.patch

    This returns that it cant find the file to be patched and prompts for file name & location

    So I enter the following for source file location ( via paste )
    /home/tech/CUSTOM-SOFT/compat-wireless-2.6.30/drivers/net/wireless/ath5k/base.c

    where base.c is the source code to patch and the rest is the path to where I have placed the source, you can put your source code to compile in any directory you want etc. I am no Ubuntu expert at doing it the right way - I am good at makin it work though as that is all I care about.

    Once you patch the driver its just these commands in the compat-wireless source directory.

    make
    sudo make install

    Then you will also need to deal with blacklisting any unwanted atheros madwifi modules previously in use etc. So if you don't know how to do that just search here on the forums as it is well covered.

    I also remove Jockey & Network Manager while installing WICD as a GUI replacement that seems to cause less interference than network manager can


    GOOD LUCK ALL AND POST IF YOU GET YOURS TO WORK

  6. #6
    Join Date
    Nov 2006
    Location
    Bucharest, Romania
    Beans
    72
    Distro
    Ubuntu UNR

    Re: [Question] Patching the ath5k driver for injection

    Since the default install does not include the wireless driver sources, yes you need to get compat-wireless.

    I have followed the guide and it worked for me.
    Ubuntu XP Professional - Shameless Integration (tm)

  7. #7
    Join Date
    Jul 2009
    Beans
    8

    Re: [Question] Patching the ath5k driver for injection

    Ok I got some specific questions to throw at you nicedude, great info thus far, it has helped me learn more about Linux.

    Quote Originally Posted by nicedude View Post
    Once you untar the source for compat-wireless you will find the ath5k source in compat-wireless-2.6.30/drivers/net/wireless/ath5k.
    Does it have to be 2.6.30?

    Quote Originally Posted by nicedude View Post
    Then you will also need to deal with blacklisting any unwanted atheros madwifi modules previously in use etc. So if you don't know how to do that just search here on the forums as it is well covered.
    Ive searched around but I cant seem to find a thread that explains it in depth. Can you please point me to a good one?

    Quote Originally Posted by nicedude View Post
    I also remove Jockey & Network Manager while installing WICD as a GUI replacement
    How can you make sure that Network Manager is uninstalled?


    Thats it from me, thanks for all the help thus far regarding patching these drivers.

  8. #8
    Join Date
    Aug 2009
    Beans
    2

    Re: [Question] Patching the ath5k driver for injection

    Well, I completed the patch and compiled the patched compat install, then made the install to kernel 2.6.28-14-generic. Now, for whatever reason it does not load. I was able to boot using 2.6.28-11-generic however. The new kernel just hangs after the ubuntu splash screen.

    I am not sure what happened. It all seemed to run smoothly, no errors. I saved the log information of the install. It seems that I have killed that kernel.

    Sweet.

  9. #9
    Join Date
    May 2009
    Beans
    2

    Re: [Question] Patching the ath5k driver for injection

    Yeah, Injection Works out of the box so to speak, about 500 pps!

  10. #10
    Join Date
    Sep 2009
    Location
    TX
    Beans
    199
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: [Question] Patching the ath5k driver for injection

    I would also like to know if it HAS to be 2.6.30 ? I am using 2.6.28 and I don't want a dead kernel like the poster before me thanks in advance!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •