wifi: iwlwifi: mvm: fix the PHY context resolution for p2p device
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 11 Oct 2023 10:07:26 +0000 (13:07 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 10:26:28 +0000 (12:26 +0200)
commit34cc3a4a49a6908790234e87cde14cde1a1c5f91
tree136659626a55ccd6e1096a39813ea93f81359ceb
parenta32a84948e3b1bb9d76bb198e20c616c4b7810d7
wifi: iwlwifi: mvm: fix the PHY context resolution for p2p device

We seem to have an issue in case we had a BSS and a P2P device on
channel 1 and then, the P2P device gets an ROC on channel 6. We would
change the channel of the PHY context to channel 6 even if the BSS was
using that same PHY context.

Revamp that code and don't try to change a PHY context, it doesn't mean
much for the firmware anyway. Just remove it and allocate a new one.
This makes the logic easier to follow.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231011130030.4bc8b90d7be0.I1232dca3fe007362ec0ae0cf1d96217f2544e0d2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c