diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2010-10-19 18:49:26 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2010-10-19 18:49:26 +0000 |
commit | 3160add3b2a4a0adc16e0eac909f3a8395bc1e3c (patch) | |
tree | 33f777815db8c2eb73f826a9b1aaacb61bf26baa /sys/conf | |
parent | 3a7013e945403bf38121c6383653847e7109746f (diff) | |
download | FreeBSD-src-3160add3b2a4a0adc16e0eac909f3a8395bc1e3c.zip FreeBSD-src-3160add3b2a4a0adc16e0eac909f3a8395bc1e3c.tar.gz |
Fix an undefined behaviour if the desired ratectl algo is not available.
This can happen if the algos are built as modules but are not loaded. If
the selected ratectl algo is not available, try to load it (The load
module functions does nothing currently). Add a dummy ratectl algo which
always selects the first available rate. Use that one if the desired algo
is not available.
MFC after: 1 week
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files index c1bc03a..75f16e5 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -2453,6 +2453,7 @@ net80211/ieee80211_power.c optional wlan net80211/ieee80211_proto.c optional wlan net80211/ieee80211_radiotap.c optional wlan net80211/ieee80211_ratectl.c optional wlan +net80211/ieee80211_ratectl_none.c optional wlan net80211/ieee80211_regdomain.c optional wlan net80211/ieee80211_rssadapt.c optional wlan wlan_rssadapt net80211/ieee80211_scan.c optional wlan |