]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Isolate ath9k_use_chanctx module parameter
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Fri, 22 Aug 2014 15:09:31 +0000 (20:39 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:41:58 +0000 (14:41 -0400)
commitc0d9b32417f5d6040229ad96c24a116a4d8f8a0e
treeac1e66701d168d034b592c641fe9fdb8afe35dd5
parentb891c5c12cdc36c1beb85ef715e8115dcc95c6c0
ath9k: Isolate ath9k_use_chanctx module parameter

This patch ensures that the module parameter "use_chanctx" is
visible only when CONFIG_ATH9K_CHANNEL_CONTEXT is selected.
Also register the channel context callbacks with mac80211 only
when it is explicitly enabled and compile them out of the driver
when CONFIG_ATH9K_CHANNEL_CONTEXT is not selected.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/channel.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/recv.c