[PATCH ath-next 2/2] wifi: ath12k: Introduce check against zero for ahvif->key_cipher in ath12k_mac_op_tx()
Vasanthakumar Thiagarajan
vasanthakumar.thiagarajan at oss.qualcomm.com
Wed Apr 9 00:28:31 PDT 2025
On 4/3/2025 1:52 PM, Aaradhana Sahu wrote:
> Currently, ahvif->key_cipher is compared with the enum value
> (WMI_CIPHER_NONE) inside ath12k_mac_op_tx(). However, ahvif->key_cipher is
> set using the macro value WLAN_CIPHER_SUITE_XXXX which seems inconsistent.
>
> To improve code consistency and readability, introduce check against zero
> for ahvif->key_cipher instead of comparing it with the enum
> (WMI_CIPHER_NONE).
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00209-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Aaradhana Sahu <aaradhana.sahu at oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan at oss.qualcomm.com>
More information about the ath12k
mailing list