iwlwifi: mvm: Do not use full SSIDs in 6GHz scan
authorIlan Peer <ilan.peer@intel.com>
Mon, 2 Aug 2021 14:09:42 +0000 (17:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:18 +0000 (13:42 +0200)
commit722c1de4bcfb5c2efb52bc48e7db581d2cecc095
tree2f6235bd7127fae4e4a5e9c0a0ba7a1e5edff54c
parent4dce40093d67f3c8fe7b6bf6ad3cbdf70e7de2a3
iwlwifi: mvm: Do not use full SSIDs in 6GHz scan

[ Upstream commit deedf9b97cd4ef45da476c9bdd2a5f3276053956 ]

The scan request processing populated the direct SSIDs
in the FW scan request command also for 6GHz scan, which is not
needed and might result in unexpected behavior.

Fix the code to add the direct SSIDs only in case the scan
is not a 6GHz scan.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210802170640.f465937c7bbf.Ic11a1659ddda850c3ec1b1afbe9e2b9577ac1800@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c