miaoqing@xxxxxxxxxxxxxx writes: > From: Miaoqing Pan <miaoqing@xxxxxxxxxxxxxx> > > btcoex duty cyle allows user to balance the performance > between WLAN and BT. > > Signed-off-by: Miaoqing Pan <miaoqing@xxxxxxxxxxxxxx> [...] > --- a/drivers/net/wireless/ath/ath9k/init.c > +++ b/drivers/net/wireless/ath/ath9k/init.c > @@ -73,6 +73,12 @@ struct ath9k_eeprom_ctx { > > #endif /* CONFIG_ATH9K_CHANNEL_CONTEXT */ > > +#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT > +static int ath9k_btcoex_duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE; > +module_param_named(btcoex_duty_cycle, ath9k_btcoex_duty_cycle, int, 0444); > +MODULE_PARM_DESC(btcoex_duty_cycle, "BT coexistence duty cycle"); > +#endif I don't think module parameters are really meant for providing protocol settings like this, especially as these would be global for all radios. nl80211 (if used in production) or debugfs (if used only in testing) are much better choises. -- Kalle Valo