2 Your current kernels configuration (.config and linux/autoconf.h)
3 are always respected when compiling external modules. Because
4 of this if you are using an old kernel which preferred the
5 PID rate control algorithm we cannot force it to use minstrel
6 instead. Minstrel is now the default rate control algorithm
7 and we want you to use it. To let you use it we redefine here
8 the CONFIG_MAC80211_RC_DEFAULT to CONFIG_COMPAT_MAC80211_RC_DEFAULT
9 and define CONFIG_COMPAT_MAC80211_RC_DEFAULT on config.mk.
10 Through the compat autoconf we then get it also defined there
13 --- a/net/mac80211/rate.c
14 +++ b/net/mac80211/rate.c
15 @@ -22,7 +22,7 @@ struct rate_control_alg {
16 static LIST_HEAD(rate_ctrl_algs);
17 static DEFINE_MUTEX(rate_ctrl_mutex);
19 -static char *ieee80211_default_rc_algo = CONFIG_MAC80211_RC_DEFAULT;
20 +static char *ieee80211_default_rc_algo = CONFIG_COMPAT_MAC80211_RC_DEFAULT;
21 module_param(ieee80211_default_rc_algo, charp, 0644);
22 MODULE_PARM_DESC(ieee80211_default_rc_algo,
23 "Default rate control algorithm for mac80211 to use");
24 @@ -117,8 +117,8 @@ ieee80211_rate_control_ops_get(const cha
25 ops = ieee80211_try_rate_control_ops_get(ieee80211_default_rc_algo);
27 /* try built-in one if specific alg requested but not found */
28 - if (!ops && strlen(CONFIG_MAC80211_RC_DEFAULT))
29 - ops = ieee80211_try_rate_control_ops_get(CONFIG_MAC80211_RC_DEFAULT);
30 + if (!ops && strlen(CONFIG_COMPAT_MAC80211_RC_DEFAULT))
31 + ops = ieee80211_try_rate_control_ops_get(CONFIG_COMPAT_MAC80211_RC_DEFAULT);