iwlwifi: mvm: BT Coex - make the primary / secondary pick traffic aware
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 9 Dec 2014 15:08:41 +0000 (17:08 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Apr 2018 07:57:16 +0000 (10:57 +0300)
commitbde1492d4a15ae37e1388a6f5a7972afb7ca32e3
treee0ce8d4b3f93edcc0ac31ee63430237540b79266
parent85207c66a2f091c005b98fc4976c8daf297b56e7
iwlwifi: mvm: BT Coex - make the primary / secondary pick traffic aware

The primary channel is the channel that will be untouched by BT. The
secondary channel might be touched by BT.  Hence, we want the primary
to be the most active channel.  To do so, use the TCM infrastructure.

Since the BT keeps sending notifications, we can rely on them to
trigger the check. Every 10 seconds, we will check what is the most
active context and chose the right primary.

We need to wait 10 seconds before we modify the settings because
frequent changes in these settings can confuse BT.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/coex.c