1 --- a/net80211/ieee80211_rate.c
2 +++ b/net80211/ieee80211_rate.c
3 @@ -100,8 +100,18 @@ struct ath_ratectrl *ieee80211_rate_atta
4 ieee80211_load_module(buf);
6 if (!ratectls[id].attach) {
7 - printk(KERN_ERR "Error loading module \"%s\"\n", buf);
9 + /* pick the first available rate control module */
10 + printk(KERN_INFO "Rate control module \"%s\" not available\n", buf);
11 + for (id = 0; id < IEEE80211_RATE_MAX - 1; id++) {
12 + if (ratectls[id].attach)
15 + if (!ratectls[id].attach) {
16 + printk(KERN_ERR "No rate control module available");
19 + printk(KERN_INFO "Using \"%s\" instead.\n", module_names[id]);
23 ctl = ratectls[id].attach(sc);