Commit 897d885
committed
wifi: rtw89: purge obsoleted scan events with software sequence number
JIRA: https://issues.redhat.com/browse/RHEL-114889
commit f100038
Author: Ping-Ke Shih <[email protected]>
Date: Tue Jul 15 11:52:58 2025 +0800
wifi: rtw89: purge obsoleted scan events with software sequence number
The queued and obsoleted scan events can be wrongly treated as events of
new scan request, causing unexpected scan result. Attach a software
sequence number to scan request and its corresponding events. When a new
scan request is acknowledged by firmware, purge the scan events if its
sequence number is not belong to current request.
Normal case:
mac80211 event work event BH
------------- ---------- --------
scan req #1 ---->o
|
<----o <...........................o
o
|
<--------------------------+
ieee80211_scan_completed()
Abnormal case (late event work):
mac80211 event work event BH
------------- ---------- --------
scan req #1 ---->o
|
<----o <...........................o
o #1
scan cancel #2 ->o
|
<----o <...........................o
o #2
| (patch to avoid this)
scan req #3 ---->o |
| |
<----o <..........|................o
| o #3
<--------------------------+
ieee80211_scan_completed()
Signed-off-by: Ping-Ke Shih <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jose Ignacio Tornos Martinez <[email protected]>1 parent b211650 commit 897d885
6 files changed
+68
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5574 | 5574 | | |
5575 | 5575 | | |
5576 | 5576 | | |
| 5577 | + | |
5577 | 5578 | | |
5578 | 5579 | | |
5579 | 5580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6759 | 6759 | | |
6760 | 6760 | | |
6761 | 6761 | | |
| 6762 | + | |
| 6763 | + | |
| 6764 | + | |
| 6765 | + | |
| 6766 | + | |
| 6767 | + | |
| 6768 | + | |
| 6769 | + | |
| 6770 | + | |
| 6771 | + | |
| 6772 | + | |
| 6773 | + | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
| 6779 | + | |
| 6780 | + | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
| 6785 | + | |
| 6786 | + | |
| 6787 | + | |
| 6788 | + | |
| 6789 | + | |
6762 | 6790 | | |
6763 | 6791 | | |
6764 | 6792 | | |
| |||
8052 | 8080 | | |
8053 | 8081 | | |
8054 | 8082 | | |
8055 | | - | |
| 8083 | + | |
| 8084 | + | |
8056 | 8085 | | |
8057 | 8086 | | |
8058 | 8087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
| 3573 | + | |
| 3574 | + | |
3573 | 3575 | | |
3574 | 3576 | | |
3575 | 3577 | | |
| |||
4755 | 4757 | | |
4756 | 4758 | | |
4757 | 4759 | | |
| 4760 | + | |
4758 | 4761 | | |
4759 | 4762 | | |
4760 | 4763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5165 | 5165 | | |
5166 | 5166 | | |
5167 | 5167 | | |
| 5168 | + | |
5168 | 5169 | | |
5169 | 5170 | | |
5170 | 5171 | | |
| |||
5207 | 5208 | | |
5208 | 5209 | | |
5209 | 5210 | | |
| 5211 | + | |
5210 | 5212 | | |
5211 | 5213 | | |
5212 | 5214 | | |
| 5215 | + | |
5213 | 5216 | | |
5214 | 5217 | | |
5215 | 5218 | | |
| |||
5706 | 5709 | | |
5707 | 5710 | | |
5708 | 5711 | | |
| 5712 | + | |
| 5713 | + | |
5709 | 5714 | | |
5710 | 5715 | | |
5711 | 5716 | | |
5712 | 5717 | | |
| 5718 | + | |
| 5719 | + | |
| 5720 | + | |
5713 | 5721 | | |
5714 | 5722 | | |
5715 | 5723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
1583 | 1584 | | |
1584 | 1585 | | |
1585 | 1586 | | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
1586 | 1611 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | | - | |
| 1492 | + | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
| |||
0 commit comments