iwlwifi: mvm: Move unused phy's to a default channel
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Sun, 4 Mar 2018 18:06:29 +0000 (20:06 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Mar 2018 08:50:38 +0000 (10:50 +0200)
commit9f4ef1d70f05ebb7f0755545c05ea383be0eeb0f
tree463e9d95df7b48889ccb96ef069bf7f4bbc7eb9a
parent4a6d2e525b43eba5870ea7e360f59aa65de00705
iwlwifi: mvm: Move unused phy's to a default channel

When immediate quiet bit is set in CSA, the entire channel is blocked
by the firmware. It is expected that all the MACs will evacuate the
channel and the phy will be eventually either moved or removed.

Currently, the phy context is just unreferenced and thus, the quiet
bit is kept set and it will be impossible to TX on this phy, if we
will need to reuse it in the future.  This can be seen when doing a
channel switch with mode=1 (quiet) twice from channel X to Y and then
back to channel X.

Fix that, by moving the phy context to a default channel when not
referenced anymore.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c