~vicamo/ubuntu/+source/backport-iwlwifi-dkms/+git/backport-iwlwifi-dkms:upstream

Last commit made on 2023-10-10
Get this branch:
git clone -b upstream https://git.launchpad.net/~vicamo/ubuntu/+source/backport-iwlwifi-dkms/+git/backport-iwlwifi-dkms
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Recent commits

6d87648... by Johannes Berg

[BUGFIX] wifi: mac80211: export kunit symbols into kunit namespace

These should go into the EXPORTED_FOR_KUNIT_TESTING namespace, the
easiest way to achieve that is to use EXPORT_SYMBOL_IF_KUNIT().

type=bugfix
fixes=Icfd062970b448c2706540e6cc817cf87d38c744c
ticket=none

Change-Id: I4bfaae5556a71ded201ff9d2366ef9715c6089c2
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/71951
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Reviewed-by: Berg, Benjamin <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: 9e6823c882c0ed8485dc828fec4df74a02282dea

b8601a1... by Ilan Peer <email address hidden>

[BUGFIX] wifi: iwlwifi: mvm: Do not warn if valid link pair was not found

It is possible that though multiple links are enabled we cannot enabled
EMLSR enable more than a single link, e.g., all valid links are on the
same band etc. Thus, do not warn in case no valid link pair is found.

type=bugfix
ticket=none
fixes=I6600bd16551d75e2bf520d8d0add525568a9f85f

Signed-off-by: Ilan Peer <email address hidden>
Change-Id: I7cfe78c94c3d15c4c744bccadd8f187e43594932
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/76162
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
Tested-by: iil_jenkins <email address hidden>
x-iwlwifi-stack-dev: 992f1758be00668b4417f9460054f85d6dcbbb3e

10ed99d... by Johannes Berg

[BUGFIX] wifi: mac80211: fix BA session teardown race

As previously reported by Alexander, whose commit 69403bad97aa
("wifi: mac80211: sdata can be NULL during AMPDU start") I'm
reverting as part of this commit, there's a race between station
destruction and aggregation setup, where the aggregation setup
can happen while the station is being removed and queue the work
after ieee80211_sta_tear_down_BA_sessions() has already run in
__sta_info_destroy_part1(), and thus the worker will run with a
now freed station. In his case, this manifested in a NULL sdata
pointer, but really there's no guarantee whatsoever.

The real issue seems to be that it's possible at all to have a
situation where this occurs - we want to stop the BA sessions
when doing _part1, but we cannot be sure, and WLAN_STA_BLOCK_BA
isn't necessarily effective since we don't know that the setup
isn't concurrently running and already got past the check.

Simply call ieee80211_sta_tear_down_BA_sessions() again in the
second part of station destruction, since at that point really
nothing else can hold a reference to the station any more.

Also revert the sdata checks since those are just misleading at
this point.

type=bugfix
ticket=none
fixes=unknown

Change-Id: I205a557b06a27f58afe3880f4db43d554210c88d
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/71833
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: c327329c7b9e34e7fb7c58fda9de6b3b0ff2c653

ebd9d87... by Johannes Berg

wifi: mac80211: update some locking documentation

With the locking rework, more functions need to be called
with the wiphy mutex held. Document that, and for that use
the "Context" description that shows up more nicely in the
generated documentation.

type=feature
ticket=none

Change-Id: I8c9e030ddd78e07c99dd21fe1d5156555390f92e
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/76735
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: 722f64167a372c73d9614d7362639fff58ee9335

5a44a92... by Johannes Berg

wifi: iwlwifi: mvm: d3: avoid intermediate/early mutex unlock

Now with the mac80211 locking model changed, we no longer can
cause any bad dependencies here between mvm->mutex and other
mutexes in mac80211, so we no longer need to drop the mutex
early or even temporarily. Clean this up.

type=cleanup
ticket=none

Change-Id: I7e3b8e806b6d50e88ba0c26767da8261806eb9c7
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/76734
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: 2704ff57807429756ab29f7e383f049700f3d777

680afd3... by Johannes Berg

[BUGFIX] wifi: iwlwifi: mvm: send TX path flush in rfkill

If we want to drop packets, that's surely a good thing to
do when we want to enter rfkill. Send this command despite
rfkill so we can successfully clean up everything, we need
to handle it separately since it has CMD_WANT_SKB, so it's
not going to automatically return success when in rfkill.

type=bugfix
ticket=jira:WIFI-271494
fixes=I1601aad2eb2cc83f6f73b8ca52be57bb9fd626ab

Change-Id: Ibe5e9560359ccc0fba60c35e01de285c376748a2
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/75810
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
Tested-by: iil_jenkins <email address hidden>
x-iwlwifi-stack-dev: aa5ae9732f92d68ef891247a33f93c695b3b14c4

cf2bb80... by Gregory Greenman <email address hidden>

wifi: iwlwifi: fw: increase fw_version string size

In reality 64 bytes are enough to hold fw version string,
but some compilers can complain that output may be truncated
when building this string with snprintf.
Increase the size to avoid this sort of warnings.

type=cleanup
ticket=none

Signed-off-by: Gregory Greenman <email address hidden>
Change-Id: Idced2e8d63c492872edcde1a3ce2cdd6cc0f8eb7
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/76738
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
x-iwlwifi-stack-dev: 806cc05e1be58134a4fbdbd1439ba9ffa6ce4236

41e354f... by Dmitry Antipov <email address hidden>

wifi: iwlwifi: mvm: drop NULL pointer check in iwl_mvm_tzone_set_trip_temp()

Since 'tz_device' is an in-place member of 'struct iwl_mvm', it can't
be NULL and so relevant check may be dropped. Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

type=cleanup
ticket=none

Change-Id: I8aa31e60ec9106c340cc9652f123d6783c1342f5
Signed-off-by: Dmitry Antipov <email address hidden>
Signed-off-by: Gregory Greenman <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/76205
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
x-iwlwifi-stack-dev: 0106cce5ad0c413269ffbf4360262ecccc4843ef

00a7593... by Johannes Berg

[BUGFIX] wifi: mac80211: fix potential NULL-deref

We might actually get sdata as NULL here if the decode
somehow fails, hence the check. Don't get sdata->local
before the check, but since we only need it once, just
remove the variable entirely.

type=bugfix
fixes=If8330b2c9441b5cb28f64d4814182207e89c5de2
ticket=none

Change-Id: I2e4f0ae460e2fa9bcd1757f838b38ac4aa752336
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/71511
automatic-review: iil_jenkins <email address hidden>
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: 733f6d61564b8b3bb740b1c947a554515982d593

7bffe13... by Johannes Berg

wifi: cfg80211: add BSS usage reporting

Sometimes there may be reasons for which a BSS that's
actually found in scan cannot be used to connect to,
for example a nonprimary link of an NSTR mobile AP MLD
cannot be used for normal direct connections to it.

Not indicating these to userspace as we do now of course
avoids being able to connect to them, but it's better if
they're shown to userspace and it can make an appropriate
decision, without e.g. doing an additional ML probe.

Thus add an indication of what a BSS can be used for,
currently "normal" and "MLD link", including a reason
bitmap for it being not usable.

The latter can be extended later for certain BSSes if there
are other reasons they cannot be used.

type=feature
ticket=none

Change-Id: I9f70ca9f1440565ad9a5207d0f4d00a20cca67e7
Signed-off-by: Johannes Berg <email address hidden>
Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/71792
tested: iil_jenkins <email address hidden>
Tested-by: iil_jenkins <email address hidden>
Reviewed-by: Peer, Ilan <email address hidden>
Reviewed-by: Greenman, Gregory <email address hidden>
x-iwlwifi-stack-dev: 9e01a2490b106d42cbf7a6bfaecb30a4bc122fa5