wifi: iwlwifi: mvm: Fix incorrect usage of scan API
authorIlan Peer <ilan.peer@intel.com>
Tue, 26 Sep 2023 13:55:50 +0000 (16:55 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 Sep 2023 09:46:30 +0000 (11:46 +0200)
commit22061bfc57fe08c77141dc876b4af75603c4d61d
treef82b0b9da01f059105eb208f5ec27bc6274ed45d
parentaaba3cd33fc9593a858beeee419c0e6671ee9551
wifi: iwlwifi: mvm: Fix incorrect usage of scan API

The support for using link ID in the scan request API was only
added in version 16. However, the code wrongly enabled this
API usage also for older versions. Fix it.

Reported-by: Antoine Beaupré <anarcat@debian.org>
Fixes: e98b23d0d7b8 ("wifi: iwlwifi: mvm: Add support for SCAN API version 16")
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230926165546.086e635fbbe6.Ia660f35ca0b1079f2c2ea92fd8d14d8101a89d03@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c