Changeset 2650

Show
Ignore:
Timestamp:
08/11/07 02:35:05 (1 year ago)
Author:
nbd
Message:

fix 'bad ratekbps' errors in ad-hoc mode on .11a

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ath_rate/minstrel/minstrel.c

    r2648 r2650  
    673673 
    674674                for (x = 0; x < ni->ni_rates.rs_nrates; x++) { 
     675                        if (sn->rates[x].rix == 0xff) { 
     676                                DPRINTF(sc, "%s: %s ignore bogus rix at %d\n", 
     677                                        dev_info, __func__, x); 
     678                                continue; 
     679                        } 
     680 
    675681                        sn->rs_rateattempts     [x] = 0; 
    676682                        sn->rs_thisprob         [x] = 0; 
  • trunk/ath_rate/sample/sample.c

    r2547 r2650  
    897897 
    898898                for (x = 0; x < ni->ni_rates.rs_nrates; x++) { 
     899                        if (sn->rates[x].rix == 0xff) { 
     900                                DPRINTF(sc, ATH_DEBUG_RATE, "%s: %s ignore bogus rix at %u\n", 
     901                                        dev_info, __func__, x); 
     902                                continue; 
     903                        } 
    899904                        sn->stats[y][x].successive_failures = 0; 
    900905                        sn->stats[y][x].tries = 0;