Changeset 7958


Ignore:
Timestamp:
2007-07-13T10:23:22+02:00 (11 years ago)
Author:
nbd
Message:

fix madwifi unload/reload on SoC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/madwifi/patches/120-soc_fix.patch

    r7929 r7958  
    11Index: madwifi-ng-r2568-20070710/ath/if_ath_ahb.c 
    22=================================================================== 
    3 --- madwifi-ng-r2568-20070710.orig/ath/if_ath_ahb.c     2007-07-11 22:59:38.860063056 +0200 
    4 +++ madwifi-ng-r2568-20070710/ath/if_ath_ahb.c  2007-07-11 22:59:42.668280075 +0200 
     3--- madwifi-ng-r2568-20070710.orig/ath/if_ath_ahb.c     2007-07-13 10:20:14.978836242 +0200 
     4+++ madwifi-ng-r2568-20070710/ath/if_ath_ahb.c  2007-07-13 10:21:25.106832611 +0200 
    55@@ -275,11 +275,10 @@ 
    66  
     
    1616  
    1717        if (sc == NULL) 
    18 @@ -289,13 +288,16 @@ 
     18@@ -289,13 +288,17 @@ 
    1919        ath_detach(dev); 
    2020        if (dev->irq) 
     
    2323-       if (!strcmp(sysType, "Atheros AR5315")) 
    2424+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 
    25 +       devid = (u32) config->tag; 
     25+       devid = sc->aps_sc.devid; 
     26+       config->tag = (unsigned long) devid; 
    2627+#else 
    2728+       if (!strcmp(get_system_type(), "Atheros AR5315")) 
     
    3536        ahb_disable_wmac(devid, wlanNum); 
    3637        free_netdev(dev); 
    37 @@ -401,7 +403,7 @@ 
     38@@ -401,7 +404,7 @@ 
    3839  
    3940 static int ahb_wmac_remove(struct platform_device *pdev) 
Note: See TracChangeset for help on using the changeset viewer.