Changeset 1457

Show
Ignore:
Timestamp:
02/27/06 07:21:24 (3 years ago)
Author:
jbicket
Message:

more debugging info for ticket #287

Files:

Legend:

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

    r1456 r1457  
    373373        unsigned average_tx_time; 
    374374 
     375        if (sn->num_rates <= 0) { 
     376                printk(KERN_WARNING "%s: no rates for %s?\n", 
     377                       dev_info,  
     378                       ether_sprintf(an->an_node.ni_macaddr)); 
     379                return; 
     380        } 
     381 
    375382        mrr = sc->sc_mrretry && !(ic->ic_flags & IEEE80211_F_USEPROT) && ENABLE_MRR; 
    376383        size_bin = size_to_bin(frameLen); 
     
    460467        } 
    461468 
    462         KASSERT(ndx >= 0 && ndx < sn->num_rates, ("ndx is %d", ndx)); 
     469        KASSERT(ndx >= 0 && ndx < sn->num_rates,  
     470                ("%s: bad ndx (%d/%d) for %s?\n", 
     471                 dev_info, ndx, sn->num_rates,  
     472                 ether_sprintf(an->an_node.ni_macaddr))); 
     473                 
    463474 
    464475        *rix = sn->rates[ndx].rix;