#114: Binary hal support fort the ar531x based SOCs using ath_ahb bus
-------------------------------+--------------------------------------------
      Reporter:  jirif         |       Owner:  mrenzmann    
          Type:  enhancement   |      Status:  closed       
      Priority:  major         |   Milestone:  version 0.9.1
     Component:  madwifi: HAL  |     Version:  trunk        
    Resolution:  fixed         |    Keywords:               
Patch_attached:  0             |  
-------------------------------+--------------------------------------------
Comment (by Eric):

 I already made changes for madwifi but still got Oops!
 Belows are my patchs:
 --- madwifi-ng-r1796-20061110.old/ath/if_ath_ahb.c      Wed Sep 20
 16:45:13 2006
 +++ madwifi-ng-r1796-20061110.new/ath/if_ath_ahb.c      Mon Nov 13
 22:49:21 2006
 @@ -283,7 +283,7 @@
         if (dev->irq)
                 free_irq(dev->irq, dev);
         sysType = get_system_type();
 -       if (!strcmp(sysType, "Atheros AR5315"))
 +       if ((!strcmp(sysType, "Atheros AR5315")) || (!strcmp(sysType,
 "Atheros AR531X_COBRA")))
                 devid = (u_int16_t) (sysRegRead(AR5315_SREV) &
                         (AR5315_REV_MAJ_M | AR5315_REV_MIN_M));
         else
 @@ -388,7 +388,7 @@
         u_int16_t devid, radioMask;
         const char *sysType;
         sysType = get_system_type();
 -       if (!strcmp(sysType,"Atheros AR5315")) {
 +       if ((!strcmp(sysType,"Atheros AR5315")) || (!strcmp(sysType,
 "Atheros AR531X_COBRA"))) {
                 devid = (u_int16_t) (sysRegRead(AR5315_SREV) &
                         (AR5315_REV_MAJ_M | AR5315_REV_MIN_M));
                 if ((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ)
 diff -urN madwifi-0.9.2.old/ath/if_ath_ahb.c
 madwifi-0.9.2.new/ath/if_ath_ahb.c
 --- madwifi-0.9.2.old/ath/if_ath_ahb.c  Mon May 22 12:39:55 2006
 +++ madwifi-0.9.2.new/ath/if_ath_ahb.c  Mon Nov 13 14:06:15 2006
 @@ -55,8 +55,8 @@
          * more than 500KB.
          */
         dataFound = 0;
 -       for (bd_config = (char *)0xbffff000;
 -            bd_config > (char *)0xbff80000;
 +       for (bd_config = (char *)0xa87f0000;
 +            bd_config > (char *)0xa8000000;
              bd_config -= 0x1000) {
                 if ( *(int *)bd_config == AR531X_BD_MAGIC) {
                         dataFound = 1;
 @@ -84,8 +84,8 @@
          * at a time until we find non-0xffffffff.
          */
         dataFound = 0;
 -       for (radio_config = ((char *) ar5312_boardConfig) + 0x1000;
 -            radio_config < (char *)0xbffff000;
 +       for (radio_config = ((char *) ar5312_boardConfig) + 0xf8;
 +            radio_config < (char *)0xa8800000;
              radio_config += 0x1000) {
                 if (*(int *)radio_config != 0xffffffff) {
                         dataFound = 1;
 @@ -93,15 +93,15 @@
                 }
         }

 -       if (!dataFound) { /* AR2316 relocates radio config to new location
 */
 +       if (!dataFound) { /* Non-AR2316 relocates radio config to new
 location */
             dataFound = 0;
 -           for (radio_config = ((char *) ar5312_boardConfig) + 0xf8;
 -                        radio_config < (char *)0xbffff0f8;
 -                        radio_config += 0x1000) {
 -                       if (*(int *)radio_config != 0xffffffff) {
 -                               dataFound = 1;
 -                               break;
 -                       }
 +           for (radio_config = ((char *) ar5312_boardConfig) + 0x1000;
 +                radio_config < (char *)0xa8800000;
 +                radio_config += 0x1000) {
 +               if (*(int *)radio_config != 0xffffffff) {
 +                   dataFound = 1;
 +                   break;
 +               }
             }
         }

-- 
Ticket URL: <http://madwifi.org/ticket/114>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to