Commit 2793068
committed
wifi: ath11k: avoid bit operation on key flags
JIRA: https://issues.redhat.com/browse/RHEL-114889
commit 9c78e74
Author: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Date: Fri Oct 3 14:51:58 2025 +0530
wifi: ath11k: avoid bit operation on key flags
Bitwise operations with WMI_KEY_PAIRWISE (defined as 0) are ineffective
and misleading. This results in pairwise key validations added in
commit 97acb02 ("wifi: ath11k: fix group data packet drops
during rekey") to always evaluate false and clear key commands for
pairwise keys are not honored.
Since firmware supports overwriting the new key without explicitly
clearing the previous one, there is no visible impact currently.
However, to restore consistency with the previous behavior and improve
clarity, replace bitwise operations with direct assignments and
comparisons for key flags.
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1
Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.41
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-wireless/aLlaetkalDvWcB7b@stanley.mountain
Fixes: 97acb02 ("wifi: ath11k: fix group data packet drops during rekey")
Signed-off-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20251003092158.1080637-1-rameshkumar.sundaram@oss.qualcomm.com
[update copyright per current guidance]
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>1 parent 3384158 commit 2793068
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
4417 | 4417 | | |
4418 | 4418 | | |
4419 | 4419 | | |
4420 | | - | |
| 4420 | + | |
4421 | 4421 | | |
4422 | | - | |
| 4422 | + | |
4423 | 4423 | | |
4424 | 4424 | | |
4425 | 4425 | | |
| |||
4456 | 4456 | | |
4457 | 4457 | | |
4458 | 4458 | | |
4459 | | - | |
| 4459 | + | |
4460 | 4460 | | |
4461 | 4461 | | |
4462 | 4462 | | |
| |||
4470 | 4470 | | |
4471 | 4471 | | |
4472 | 4472 | | |
4473 | | - | |
| 4473 | + | |
4474 | 4474 | | |
4475 | 4475 | | |
4476 | 4476 | | |
| |||
0 commit comments