Extract driver from kernel tree and apply patches to it

Hi
I am trying to "enhance" a driver, fix it more or less, by applying a patches to it I found at aircrack-ng.org.
So what I would like to do is:
1) Extract the source code from the kernel tree for this particular driver
2) Update the old patch to match the modern code.
3) Make a PKGBUILD for it and share it with other through the AUR.
So far:
1) I dont know how to do it
2) I found the patch and I think I know which lines need to be updated
3) Let us make #1 and #2 first and I ll see what I will do about the package and how it should be named, because it should not be in conflict with the stock module
I reached this point because I am so frustrated with my rtl8187b based usb wireless card and the only way to avoid those frequent disconnects is by either using ndiswrapper (last resort) or by trying the patches found at aircrack-ng.org. I don't know anything about coding, so I cannot write something new, perhaps by updating the patches, I could actually achieve something. Maybe until it gets fixed upstream.
Last edited by twilight0 (2011-11-17 17:20:12)

Why not use the patched compat-wireless drivers in the AUR? 
http://aur.archlinux.org/packages.php?ID=41472
They use the aircrack-ng patchset.

Similar Messages

  • How do I extract email from a form and send the PDF to that user?

    How do I extract email from a form and send the PDF to that user?

    here you can add email to send to, CC, Subject, and body message
    var oDoc = event.target;
                        oDoc.mailDoc({
                                                                bUI: false,
                                                                cTo: "Agency Contact Email",
                                                                cCC: "",
                                                                cSubject: "Write your title here,
                                                                cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme"

  • How to extract data from generic view and function module

    hi experts,
    can anybody give me the steps to extract data from generic view and  functon modules.
    thanks and regards
    venkat

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    https://websmp103.sap-ag.de/~sapidb/011000358700007535452002
    Hope it Helps
    Chetan
    @CP..

  • Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    I currently have a 2009 Macbook and am wanting to upgrade to a new Macbook Pro.  I have upgraded my hard drive in the macbook to a 500gb and have a duel boot with Windows 7 installed with Boot Camp along with other software that I do not want to lose.  Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    A much better solution is to hook your two Mac together and the first time you start the new Mac and it asks if you wish to recover data from another Mac, answer yes. This will invoke Setup Assitant which will do the job for you but intelligently.
    I know because I just used Setup Assitant. It worked like  a charm.
    Allan

  • Where can I find the Stickies database (content). I recovered my hard drive from Time machine and need to load old data.

    Where can I find the Stickies database (content) in OS 10.8 and above. I recovered my hard drive from Time machine and it loaded the app but not the content.

    How to Recover StickiesDatabase From Time Machine

  • Networking a firewire hard drive from a Mac and access the drive from a PC

    I'm trying to network a firewire hard drive from my Mac and access that hard drive from a Windows XP PC. I can see the main internal hard drive but I cannot see the firewire hard drive. Does anybody have a solution or work around?
    Many thanks,
    Roy

    Thanks SO MUCH! Not only does it work, BUT IT IS FREE!!!!
    See, I have two firewire (external) HDs, connected to a Mac, connected to a PC, connected to a USB external HD... now I can share files from the USB HD to the firewire HDs!
    Gotta love technology!
    Matthew

  • Extract data from database tables and download in pdf and csv

    extract data from database tables and download in pdf and csv
    hi how can i re-write my old form procedure in adf java. the procedure used to extract data from diffirent table and dowload the data in pdf and csv.am not downloading image, i what to extract data from diffirent tables in my database and download that data in pdf and csv. i would like to write this in java adf.i just what direction am not asking anyone to do my work this is my learning curve
    the form code is
    function merge_header3 return varchar2 is
    begin
         return '~FACILITY DESCRIPTION~ACCOUNT NO~BRANCH CODE~BANK REF NO.~P/P/ AMOUNT~Postal Address 1~Postal Address 2~Box Postal Code~Dep. Date~Month~BANK NAME~BRANCH NAME~ACCOUNT TYPE~DESCRIPTION~OBJECTIVE DESCRIPTION';
    end;
    procedure download_file (i_pbat integer) is
      dir varchar2(80);
      file_name1 varchar2(80);
      file_name2 varchar2(80);
      appl_code varchar2(80);
      fil1 client_text_io.file_type;
      fil2 client_text_io.file_type;
      dat varchar2(1000);
      DATA VARCHAR2(1000);
      bvspro varchar2(100);
      ssch   varchar2(100);
      bvspro_total number(20,2);
      ssch_total   number(20,2);
      grand_total  number(20,2);
      cnt    integer;
      cursor pbat is
           select *
           from sms_payment_batches
           where id = i_pbat
      cursor pay  (pb_id integer) is
           select *
           from sms_payment_vw
           where pbat_id = pb_id
           order by subsidy ASC,programme,beneficiary_name
      cursor cgref (low varchar2) is
           select *
           from cg_ref_codes
           where rv_domain ='SMS'
           and rv_low_value = low
      success boolean;     
      begin  
           set_application_property(cursor_style,'busy');
           appl_code := sms_global.ref_code('SMS','APP_CODE','SMS',0);
        dir       := sms_global.ref_code('SMS','PAY_DIR','c:\sms\batch_payments',0);
             success := webutil_file.create_directory(dir);
         if webutil_file.file_is_directory(dir) then
             null;
    --         message ('directory exists');
        else
    --                  message ('create directory ');
             success := webutil_file.create_directory(dir);
    --         if success then        message ('directory exists');    end if;
        end if;     
        for c_pbat in pbat loop
             file_name1 := dir ||'\' || appl_code||c_pbat.batch_number||'-'||to_char(c_pbat.batch_dt,'yyyymmdd')||'pay.txt';
             file_name2 := dir ||'\' || appl_code||c_pbat.batch_number||'-'||to_char(c_pbat.batch_dt,'yyyymmdd')||'merge.txt';
    --message('create files ');
    --         fil1  := client_text_io.fopen (file_name1,'W');
    --         fil2  := client_text_io.fopen (file_name2,'W');
        fil1  := client_text_io.fopen (file_name1,'W','');
        fil2  := client_text_io.fopen (file_name2,'W','');
                   dat :=                       'FROM ACCOUNT NUMBER'
                                                                ||'~'||'FROM ACCOUNT DESCRIPTION'
                                                                ||'~'||'MY STATEMENT DESCRIPTION'
                                                                ||'~'||'BENEFICIARY ACCOUNT NUMBER'
                                                                ||'~'||'BENEFICIARY SUB ACCOUNT NUMBER'        
                                                                ||'~'||'BENEFICIARY BRANCH CODE'
                                                                ||'~'||'BENEFICIARY NAME'
                                                                ||'~'||'BENEFICIARY STATEMENT DESCRIPTION'
                                                                ||'~'||'AMOUNT';
             --     client_text_io.put_line(fil1,dat);
             bvspro:= null;
             ssch  := null;
             cnt := 0;     
             dat := '~'||lpad('~',16,'~');
             for c_pay in pay(c_pbat.id) loop
    --message('cpay loop ' || cnt);              
               if bvspro is null then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(1,c_pay.programme,dat,'~');     
               client_text_io.put_line(fil2,dat);
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
                     ssch := c_pay.subsidy;
                     grand_total := 0;
                     bvspro_total := 0;
                     ssch_total := 0;
               end if;
               if bvspro <> c_pay.programme then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,ssch_total,dat,'~');
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,bvspro_total,dat,'~');
               dat := utility.put_field(1,'Total:' || bvspro,dat,'~');
                     client_text_io.put_line(fil2,dat);
                     dat := lpad('~',16,'~');
               client_text_io.put_line(fil2,dat);
                     dat := utility.put_field(1,c_pay.programme,dat,'~');     
               client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
                     ssch := c_pay.subsidy;
                     bvspro_total := 0;
                     ssch_total := 0;
                     cnt :=0;
             end if;                           
               if ssch <> c_pay.subsidy then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,ssch_total,dat,'~');
                     dat := lpad('~',16,'~');
               client_text_io.put_line(fil2,dat);
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     ssch := c_pay.subsidy;
                     ssch_total := 0;
                     cnt :=0;
             end if;                           
            bvspro_total := bvspro_total + c_pay.amount;
            ssch_total   := ssch_total   + c_pay.amount;              
                  grand_total  := grand_total  + c_pay.amount;              
            cnt := cnt +1;
    --message('bfore write file 2 ' );              
            client_text_io.put_line(fil2
                                   ,cnt
                            ||'~'|| c_pay.beneficiary_name
                                                                ||'~'||c_pay.BENEFICIARY_ACCOUNT_NUMBER ||''            
                                                                ||'~'||c_pay.BRANCH_CODE             ||''           
                                                                ||'~'|| c_pay.BENEFICIARY_STATEMENT_DESC            
                                                                ||'~'|| c_pay.AMOUNT                                
                            ||'~'|| c_pay.address_line1
                            ||'~'|| c_pay.address_line2
                                                    ||'~'|| c_pay.postal_code
                                                    ||'~'|| TO_CHAR(c_pay.deposit_date,'DD-Mon-YYYY')
                                                    ||'~'|| c_pay.month
                                                    ||'~'|| c_pay.bank
                                                    ||'~'|| c_pay.bank_branch
                                                    ||'~'|| c_pay.account_type
                                                    ||'~'|| c_pay.subsidy
                                                    ||'~'|| c_pay.programme)
                  DATA :=                                  c_pay.FROM_ACCOUNT_NUMBER                   
                                                                ||'~'||c_pay.FROM_ACCOUNT_DESCR                    
                                                                ||'~'||c_pay.MY_STATEMENT_DESCR                    
                                                                ||'~'||c_pay.BENEFICIARY_ACCOUNT_NUMBER
                                                                ||'~'
                                                                ||'~'||c_pay.BRANCH_CODE            
                                                                ||'~'||c_pay.BENEFICIARY_NAME                      
                                                                ||'~'||c_pay.BENEFICIARY_STATEMENT_DESC            
                                                                ||'~'||c_pay.AMOUNT;                                
            DATA := REPLACE(DATA, ',' , ' ' );
            DATA := REPLACE(DATA, '~' , ',' );
    --message (cnt ||' ' || data);       
    --message('bfore write file 1 ' );              
                  client_text_io.put_line(fil1, data);
             end loop;
    --message ('end of write');         
                 dat := lpad('~',16,'~');
                 dat := utility.put_field(6,ssch_total,dat,'~');
                 dat := lpad('~',16,'~');
           dat := utility.put_field(1,'Total:' || bvspro,dat,'~');
                 dat := utility.put_field(5,bvspro_total,dat,'~');
              client_text_io.put_line(fil2,dat);
              dat := lpad('~',16,'~');
           client_text_io.put_line(fil2,dat);
           dat := utility.put_field(1,'Grand Total:' ,dat,'~');
                 dat := utility.put_field(5,grand_total,dat,'~');
              client_text_io.put_line(fil2,dat);
             -- close file
    for i in 1..50 loop  
           if substr(i,-1) = 0 then
                 message ('flush ' || i);
           end if;                 
                  client_text_io.put_line(fil1, lpad(' ',2000));
                  client_text_io.put_line(fil2, lpad(' ',2000));
                  client_text_io.put_line(fil1, lpad(' ',2000));
                  client_text_io.put_line(fil2, lpad(' ',2000));
    end loop;
             client_text_io.fclose(fil1);
             client_text_io.fclose(fil2);
        end loop;
       set_application_property(cursor_style,'default');
        exception
             when others then
                  message(sqlcode ||' ' ||sqlerrm);
       end download_file;    i try this but this code onlydownload image not data from database tables
        public void downloadImage(FacesContext facesContext, OutputStream outputStream)
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
            if (attr == null)
                return;
            // the value is a BlobDomain data type
            BlobDomain blob = (BlobDomain) attr.getInputValue();
            try
            {   // copy the data from the BlobDomain to the output stream
                IOUtils.copy(blob.getInputStream(), outputStream);
                // cloase the blob to release the recources
                blob.closeInputStream();
                // flush the output stream
                outputStream.flush();
            catch (IOException e)
                // handle errors
                e.printStackTrace();
                FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
            }

    You should ask your forum in the ADF-forum.

  • I am not able to transfer emails from outlook 2007 in Windows 8 to outlook 2011 in Mac.  I export .pst file to my hard drive from win 8 and then import in outlook 11 in mac, the folders including subfolders are created but there are hardly one email

    i am not able to transfer emails from outlook 2007 in Windows 8 to outlook 2011 in Mac.  I export .pst file to my hard drive from win 8 and then import in outlook 11 in mac, the folders including subfolders are created but there are hardly one email.  Please help

    Post your question in the MS Mac forums since it's their software you're having issues with:
    http://answers.microsoft.com/en-us/mac

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • Is it possible in java to extract audio from video file and ...

    Hi,
    Is there any API in java for creating DVD video from Normal TV and extract audio from video file and convert MP3 to WMA file. What about java Media Framework and Java 3D API?
    If it is notpossible in java which will be the next option. Vc++?
    Please help me.
    Thanking in advance.
    From,
    Vinod A

    lol
    If all you want is to create a backup of some file you can do:public class Foo
        public static void main(String[] args) {
            Foo f = new Foo();
            f.createBackup("something.xls");
        public void createBackup(String inFile) {
            FileInputStream in = null;
            FileOutputStream out = null;
            try {
                in = new FileInputStream(inFile);
                out = new FileOutputStream(inFile + ".bak");
                int read;
                while ((read = in.read()) > -1) {
                    out.write(read);
                out.flush();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
                if (in != null) {
                    try {
                        in.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                if (out != null) {
                    try {
                        out.close();
                    } catch (IOException e) {
                        e.printStackTrace();
    }

  • How do I remove one failing hard drive from raid set and replace with new one

    Last Friday apparently one of my raid drives started failing.
    As I mentioned on this forum I started getting continous beeping.
    I was finally able to get the raid working at a degraded level.  I ordered a replacement hard drive which is arriving today.
    (In the meantime I made twice daily backups of my work.....)
    Below was the message I got from the browser based raid software:
    Blahblah 09    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 10    1000.2GB     Free                 SamSung HD103SJ
    Blahblah 11    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 12    1000.2GB   RaidSet Member SamSung HD103SJ
    (See this earlier thread if you wish!)
    http://forums.adobe.com/thread/727867?tstart=0
    At one point when I did the checked the browser interface I saw the message Failed and Degraded
    As I said, I was able to work over the weekend on the degraded system.
    This morning I got the beeping again and did the rescue and now I am running a "full raid" without the notice that one raid was "Free".
    In any case, the new hard drive is arriving today.
    What steps should I take to incorporate the new drive into the raid system.
    I have one OS drive
    and 4 tb raid drives.   One needs to be replaced with the new one that I am getting today.
    Thanks
    Rowby

    Harm,
    Regarding your comment:
    Re: How do I remove one failing hard drive from raid set and replace with new one
    Please tell me how to read the serial number from an individual drive rather easily, without un-installing them:
    If you select the proper drive to change out, you only need to remove one drive and look at its serial number...
    Step 1: Identify bad drive serial number using Areca's tools
    Step 2: Turn off the computer
    Step 3: Remove what you think is the bad drive based on following your numbered cable method, marked hot-swap bays, whatever
    Step 4: Verify that the serial number matches the "bad drive" serial number from step 1; if it does great, proceed; if it does not match, go back to step 3
    Step 5: Change out the CORRECT drive - that's the bottom line for this whole procedure
    Cheers,
    Jim

  • Changing a parameter in Kernel Config and applying

    Hi,
    due to https://bbs.archlinux.org/viewtopic.php?id=168801 issue, I wanted to follow the fix explained here : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665493
    and actually on Arch Linux :
    ]# zcat /proc/config.gz | grep CONFIG_HOTPLUG_PCI_ACPI
    CONFIG_HOTPLUG_PCI_ACPI=y
    CONFIG_HOTPLUG_PCI_ACPI_IBM=m
    So basically I want to set CONFIG_HOTPLUG_PCI_ACPI to m and apply the configuration.
    What's a safe way to do that?
    thanks.

    Thanks Karol ,
    while I'm going through the recompilation process , is there any chance to choose the version with ABSROOT in order to skip also the broadcom bug? https://bbs.archlinux.org/viewtopic.php?id=168177
    And I was interested if *before* going through the hole thing I can somehow make use of :
    ls /usr/src/linux-3.0.93-1-lts/
    Documentation  Kconfig    Makefile  Module.symvers  arch    block  crypto  drivers    fs  include  init  kernel  lib    mm  net  samples  scripts  security  sound  usr  virt
    If I can generate the images and choose to boot from either kernel when logging in.
    Big Thanks.

  • DISM Command to retrieve updates from software distribution and apply to wim file

    I'm following
    this guide about slipstreaming updates into a wim file. What im attempting to is what the author outlines in step 2, namely pulling updates from the software distribution folder on a pc that has had the image applied to it and then patched to current. The
    trouble I'm running into is around the command. namely this section DISM
    /image:C:\Mount
    /add-package /packagepath:”%U” Running this command produces a invalid path message. What should be happening is the previous commands
    are telling it to pull in any files name .cab from all of the directories, but this doesn't seem to be working. I can't define this as a static path as there are tons of sub-folders in this directory with the cab files. Am I just doing something wrong? how
    can I accomplish this?

    I'm still having trouble with this. For some reason, it is stripping the % sign. So I am seeing this when I run my batch file:
    /add-package /packagepath:"u"
    or
    /add-package /packagepath:"f"
    Any ideas?

  • Install RAC 11gR2 and Apply Patches with OUI New Software Updates Option

    Has anyone tried the installation with the New Software Updates Option?
    I will install 11gR2 RAC Grid and I plan to do the following steps:
    1) Install Oracle Grid Infrastructure Patchset 11.2.0.2
    2) Do all the configuration with OUI
    3) Create ASM disks
    4) Install Oracle Database 11.2.0.2 Software Only
    5) Apply Oracle Recommended Patches 11.2.0.2.2 (12311357) and 12431716. (ref. MOS doc [ID 756671.1])
    6) Create RAC Database (advanced option) with DBCA
    With these steps:
    Grid and ASM disks would be configured without the recommended patches, but the database will be created with the patches applied.
    I would not like to do a "Software only" install of GI and then apply the patches because later I would have to manually do all the configuration steps.
    If I use the OUI Software Updates Option to apply the patches, will OUI do all the patching and then let me configure GRID with OUI ?
    Quote from Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux - Part Number E17212-11:
    " Use the Software Updates feature to dynamically download and apply software updates as part of the Oracle Database installation. You can also download the updates separately using the downloadUpdates option and later apply them during the installation by providing the location where the updates are present."
    I could not find more detailed information about this feature on documentation and MOS .
    Thanks

    Hi,
    You can download Latest Updates And Patches Using using option -downloadUpdates
    ./runInstaller -downloadUpdatesYou can use this note:
    *How To Download The Latest Updates And Patches Using 11.2.0.2 OUI [ID 1295074.1]*
    Don't miss it ..
    *Error: INS-20704 While Installing 11.2.0.2 with "Use pre-downloaded software updates" Option [ID 1265270.1]*
    Note : Please make sure that user downloading the patches updates have the proper/correct permission to download the patch updates from MOS ( My Oracle Support).
    Do not use the /tmp/oraInstall* directories for the download location. Unpublished bug 9975999
    Documentation explaining ...
    4.5.1 Running Oracle Universal Installer
    Downloading Updates Before Installation
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/inst_task.htm#BABJGGJH
    Regards,
    Levi Pereira

Maybe you are looking for

  • How can I import passwords from old profile?

    I had problems with my laptop last week (not booting), and I managed to save some stuff from the hard drive before re-installing Windows. Now that I'm up and running again, I'm not sure how to import passwords since Firefox seems to have changed quit

  • Want to move 10.000 linked files to another HD!???

    Hi, i want to move my photos from an external HD to the internal imac HD. The photos are linked to the iPhoto library. After a simple drag an drop iPhoto is not able to find the Original file. Only one after another, and this is a boring job for 10.0

  • ITunes 10.4 and podcasts

    I downloaded iTunes 10.4 and now podcasts do not show up as an option under the Library (with Music, Apps, etc.)  Can someone help me figure out what's going on?  I downloaded it in Snow Leopard, and now in Lion, and the problem occurred in both vers

  • Error ocurred in the derivation rule

    Hi Guys I am trying to create a sales order. But having this error (error ocurred in the derivation rule) Msg no. K/111 How do I fix this please. Thanks

  • PDF download failing

    I keep getting a message that my PDF download has failed. I have reduced the size of the file from 25 .4 mb to 15.3 mb, tried everything  suggested on your help line including the use of a different browser and computer using windows 8.1 without succ