Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1906: madwifi-trunk-r3562-kernel_2.4.patch

File madwifi-trunk-r3562-kernel_2.4.patch, 1.5 kB (added by nenad@panline.net, 11 years ago)

quick hack to enable compilation on 2.4 kernels

  • madwifi-trunk-r3562-20080423/ath/if_ath.c

    old new  
    5757#include <linux/random.h> 
    5858#include <linux/delay.h> 
    5959#include <linux/cache.h> 
    60 #include <linux/bitmap.h> 
    6160#include <linux/bitops.h> 
    6261#include <linux/types.h> 
    6362#include <linux/sysctl.h> 
     
    1295212951                dd = descdma[i]; 
    1295312952                if (dd->dd_bufptr) { 
    1295412953                        printk("Analyzing %s DMA buffers...\n", dd->dd_name); 
    12955                         dd_bufs_found = kzalloc(BITS_TO_LONGS(dd->dd_nbuf) *  
     12954                        dd_bufs_found = kmalloc(BITS_TO_LONGS(dd->dd_nbuf) *  
    1295612955                                                sizeof(unsigned long), GFP_KERNEL); 
     12956                        memset(dd_bufs_found, 0, BITS_TO_LONGS(dd->dd_nbuf) *  
     12957                                                sizeof(unsigned long)); 
    1295712958                        if(dd == &sc->sc_txdma) { 
    1295812959                                ath_scanbufs_in_buflist_locked(sc, dd, dd_bufs_found,  
    1295912960                                                               &sc->sc_txbuf, "free list"); 
  • madwifi-trunk-r3562-20080423/include/compat.h

    old new  
    186186#define DEV_ATH CTL_UNNUMBERED 
    187187#endif 
    188188 
     189#ifndef INITIAL_JIFFIES 
     190# define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ)) 
     191#endif 
     192 
    189193#endif /* __KERNEL__ */ 
    190194 
    191195#endif /* _ATH_COMPAT_H_ */