summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAyala Beker <ayala.beker@intel.com>2024-03-13 23:43:29 +0200
committeriwlwifi publisher <>2024-04-17 13:41:14 +0000
commitdbdb660d5b59fd4ff09f14ffece6858f1c631e47 (patch)
treeda6f653c871168e86b718af7b18ed2c4469777c9
parenta6f14576359f6ca6ec029d28d2137f0f6d9da7eb (diff)
downloadbackport-iwlwifi-dbdb660d5b59fd4ff09f14ffece6858f1c631e47.tar.gz
[BUGFIX] wifi: mac80211: don't select link ID if not provided in scan request
If scan request doesn't include a link ID to be used for TSF reporting, don't select it as it might become inactive before scan is actually started by the driver. Instead, let the driver select one of the active links. type=bugfix ticket=jira:WIFI-393745 fixes=Iae9605cbb7f9d52e00ce98260b3559a34cf18341 Change-Id: Ic28ed9a611432387b7f85e9ca9a97a4ce34a6e0f Signed-off-by: Ayala Beker <ayala.beker@intel.com> Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/98979 automatic-review: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> tested: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com> Tested-by: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> (cherry picked from commit 53296f3a02f851cc2e6d6b2fecb98926fc7f4983) Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/99843 Reviewed-by: Golan Ben Ami <golan.ben.ami@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com> PerCI-Ready: Golan Ben Ami <golan.ben.ami@intel.com> x-iwlwifi-stack-dev: 1f212343a388a77bc844fe5f451e26d2d0684779
-rw-r--r--net/mac80211/scan.c16
-rw-r--r--versions2
2 files changed, 5 insertions, 13 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 4ff3e28685..c7c944f3a2 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -704,19 +704,11 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
return -EBUSY;
/* For an MLO connection, if a link ID was specified, validate that it
- * is indeed active. If no link ID was specified, select one of the
- * active links.
+ * is indeed active.
*/
- if (ieee80211_vif_is_mld(&sdata->vif)) {
- if (req->tsf_report_link_id >= 0) {
- if (!(sdata->vif.active_links &
- BIT(req->tsf_report_link_id)))
- return -EINVAL;
- } else {
- req->tsf_report_link_id =
- __ffs(sdata->vif.active_links);
- }
- }
+ if (ieee80211_vif_is_mld(&sdata->vif) && req->tsf_report_link_id >= 0 &&
+ !(sdata->vif.active_links & BIT(req->tsf_report_link_id)))
+ return -EINVAL;
if (!__ieee80211_can_leave_ch(sdata))
return -EBUSY;
diff --git a/versions b/versions
index dfb769fd50..02f2533aef 100644
--- a/versions
+++ b/versions
@@ -2,5 +2,5 @@ BACKPORTS_VERSION="(see git)"
BACKPORTED_KERNEL_VERSION="(see git)"
BACKPORTED_KERNEL_NAME="iwlwifi"
BACKPORTS_BUILD_TSTAMP=__DATE__ \" \" __TIME__
-BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:release/core87:12044:08977015"
+BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:release/core87:12045:1f212343"
BACKPORTS_BRANCH_TSTAMP="Apr 17 2024 13:11:40"