kernel/802_11: Fix panic when the desired ratectl algorithm is unavailable.
authorSascha Wildner <saw@online.de>
Sat, 22 Mar 2014 17:44:28 +0000 (18:44 +0100)
committerSascha Wildner <saw@online.de>
Sat, 22 Mar 2014 19:17:23 +0000 (20:17 +0100)
commit168783520f968823dd6e673c8c56ab86228b1bd9
tree37724b3a36661bd0247846104ce3f68bafde7db3
parentec606c3295505d9a30b076a3e168954204d7d6f7
kernel/802_11: Fix panic when the desired ratectl algorithm is unavailable.

Set the default to NONE. When a driver calls ieee80211_ratectl_init(), try
to use AMRR etc. if NONE is selected. Drivers may still select other
algorithms using ieee80211_ratectl_set() prior to calling _init().

Due to our broken ieee80211_load_module(), we do not currently autoload
the desired ratectl algorithm like FreeBSD does. Instead, a message about
manually loading the module will be printed (see ieee80211_dragonfly.c).

Reported-by: profmakx
Taken-from:  FreeBSD
sys/conf/files
sys/netproto/802_11/ieee80211_ratectl.h
sys/netproto/802_11/wlan/Makefile
sys/netproto/802_11/wlan/ieee80211_ratectl.c
sys/netproto/802_11/wlan/ieee80211_ratectl_none.c