summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-10-19 18:49:26 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-10-19 18:49:26 +0000
commit3160add3b2a4a0adc16e0eac909f3a8395bc1e3c (patch)
tree33f777815db8c2eb73f826a9b1aaacb61bf26baa /sys/modules
parent3a7013e945403bf38121c6383653847e7109746f (diff)
downloadFreeBSD-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/modules')
-rw-r--r--sys/modules/wlan/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/wlan/Makefile b/sys/modules/wlan/Makefile
index 34a4f0d..682aab3 100644
--- a/sys/modules/wlan/Makefile
+++ b/sys/modules/wlan/Makefile
@@ -9,7 +9,7 @@ SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c \
ieee80211_mesh.c ieee80211_node.c ieee80211_output.c ieee80211_phy.c \
ieee80211_power.c ieee80211_proto.c ieee80211_scan.c \
ieee80211_scan_sta.c ieee80211_radiotap.c ieee80211_ratectl.c \
- ieee80211_regdomain.c \
+ ieee80211_ratectl_none.c ieee80211_regdomain.c \
ieee80211_ht.c ieee80211_hwmp.c ieee80211_adhoc.c ieee80211_hostap.c \
ieee80211_monitor.c ieee80211_sta.c ieee80211_wds.c ieee80211_ddb.c
SRCS+= bus_if.h device_if.h opt_inet.h opt_inet6.h opt_ipx.h opt_wlan.h \
OpenPOWER on IntegriCloud