Changeset 2096

Show
Ignore:
Timestamp:
02/08/07 02:49:11 (2 years ago)
Author:
proski
Message:

Don't check if rate control module is loaded successfully

This can cause misleading messages with bogus error numbers. All we
care about is whether the rate control algorithm is available.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/net80211/ieee80211_rate.c

    r1977 r2096  
    8282{ 
    8383        int id; 
    84         int err; 
    8584        char buf[64]; 
    8685        struct ath_ratectrl *ctl; 
     
    9796        } 
    9897 
    99         err = ieee80211_load_module(buf); 
    100         if (err || !ratectls[id].attach) { 
    101                 printk(KERN_ERR "Error %d loading module \"%s\"\n", 
    102                        err, buf); 
     98        if (!ratectls[id].attach) 
     99                ieee80211_load_module(buf); 
     100 
     101        if (!ratectls[id].attach) { 
     102                printk(KERN_ERR "Error loading module \"%s\"\n", buf); 
    103103                return NULL; 
    104104        }