diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/mac.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath11k/mac.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 106e2530b64e..0e41b5a91d66 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1,7 +1,7 @@  // SPDX-License-Identifier: BSD-3-Clause-Clear  /*   * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.   */  #include <net/mac80211.h> @@ -4417,9 +4417,9 @@ static int ath11k_mac_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,  	}  	if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE) -		flags |= WMI_KEY_PAIRWISE; +		flags = WMI_KEY_PAIRWISE;  	else -		flags |= WMI_KEY_GROUP; +		flags = WMI_KEY_GROUP;  	ath11k_dbg(ar->ab, ATH11K_DBG_MAC,  		   "%s for peer %pM on vdev %d flags 0x%X, type = %d, num_sta %d\n", @@ -4456,7 +4456,7 @@ static int ath11k_mac_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,  	is_ap_with_no_sta = (vif->type == NL80211_IFTYPE_AP &&  			     !arvif->num_stations); -	if ((flags & WMI_KEY_PAIRWISE) || cmd == SET_KEY || is_ap_with_no_sta) { +	if (flags == WMI_KEY_PAIRWISE || cmd == SET_KEY || is_ap_with_no_sta) {  		ret = ath11k_install_key(arvif, key, cmd, peer_addr, flags);  		if (ret) {  			ath11k_warn(ab, "ath11k_install_key failed (%d)\n", ret); @@ -4470,7 +4470,7 @@ static int ath11k_mac_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,  			goto exit;  		} -		if ((flags & WMI_KEY_GROUP) && cmd == SET_KEY && is_ap_with_no_sta) +		if (flags == WMI_KEY_GROUP && cmd == SET_KEY && is_ap_with_no_sta)  			arvif->reinstall_group_keys = true;  	}  | 
