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 #1270: patch-ticket-1270.diff

File patch-ticket-1270.diff, 3.6 kB (added by md.ahmad@airtightnetworks.net, 12 years ago)

The patch is created for the branch madwifi-hal-0.9.30.10-r2257

  • madwifi-hal-0.9.30.10-r2257-20070410/ath/if_ath.c

    old new  
    43554355{ 
    43564356#define TSF_TO_TU(_h,_l) \ 
    43574357        ((((u_int32_t)(_h)) << 22) | (((u_int32_t)(_l)) >> 10)) 
     4358#define DEFAULT_BEACON_INTERVAL 100 /*100 ms as default beacon interval*/ 
    43584359        struct ieee80211com *ic = &sc->sc_ic; 
    43594360        struct ath_hal *ah = sc->sc_ah; 
    43604361        struct ieee80211_node *ni; 
     
    43684369        /* extract tstamp from last beacon and convert to TU */ 
    43694370        nexttbtt = TSF_TO_TU(LE_READ_4(ni->ni_tstamp.data + 4), 
    43704371                             LE_READ_4(ni->ni_tstamp.data)); 
     4372        if(ni->ni_intval == 0) 
     4373                ni->ni_intval=DEFAULT_BEACON_INTERVAL; 
    43714374        /* XXX conditionalize multi-bss support? */ 
    43724375        if (ic->ic_opmode == IEEE80211_M_HOSTAP) { 
    43734376                /* 
  • madwifi-hal-0.9.30.10-r2257-20070410/ath/.if_ath.o.flags

    old new  
     1ifeq (-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h -include ./../include/compat.h -I./../include -I./.. -I./../ath_hal -I./../hal -I./../net80211 -DATH_PCI -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -fomit-frame-pointer -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1 -DOPT_AH_H=\"./../hal/public/i386-elf.opt_ah.h\" -nostdinc -iwithprefix include -DEXPORT_SYMTAB,$(strip $(subst $(comma),:,$(CFLAGS) $(EXTRA_CFLAGS_nostdinc) $(CFLAGS_if_ath.o) -DEXPORT_SYMTAB))) 
     2FILES_FLAGS_UP_TO_DATE += if_ath.o 
     3endif 
  • madwifi-hal-0.9.30.10-r2257-20070410/ath/.if_ath_pci.o.flags

    old new  
     1ifeq (-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h -include ./../include/compat.h -I./../include -I./.. -I./../ath_hal -I./../hal -I./../net80211 -DATH_PCI -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN -fomit-frame-pointer -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1 -DOPT_AH_H=\"./../hal/public/i386-elf.opt_ah.h\" -nostdinc -iwithprefix include -DEXPORT_SYMTAB,$(strip $(subst $(comma),:,$(CFLAGS) $(EXTRA_CFLAGS_nostdinc) $(CFLAGS_if_ath_pci.o) -DEXPORT_SYMTAB))) 
     2FILES_FLAGS_UP_TO_DATE += if_ath_pci.o 
     3endif