Ticket #1033: adhoc_beacons_fix.diff

File adhoc_beacons_fix.diff, 0.6 kB (added by tjalling.hattink@ti-wmc.nl, 2 years ago)

Patch for fixing beacon transmissions in ad-hoc mode after ibss merge.

  • if_ath.c

    old new  
    44474447                ath_hal_intrset(ah, 0); 
    44484448                if (nexttbtt == intval) 
    44494449                        intval |= HAL_BEACON_RESET_TSF; 
     4450                else 
     4451                { 
     4452                        /* Wait a while before sending beacons again. When we start 
     4453                         * too early the hardware/HAL becomes confused and doesn't 
     4454                         * transmit beacons at all for quite a while. 
     4455                         */ 
     4456                        if (intval) 
     4457                                nexttbtt = roundup((nexttbtt + 250), intval); 
     4458                        else 
     4459                                nexttbtt += 250; 
     4460                } 
    44504461                if (ic->ic_opmode == IEEE80211_M_IBSS) { 
    44514462                        /* 
    44524463                         * In IBSS mode enable the beacon timers but only