File tree Expand file tree Collapse file tree
drivers/net/wireless/ath/ath11k Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: BSD-3-Clause-Clear
22/*
33 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4- * Copyright (c) 2021-2025 Qualcomm Innovation Center , Inc. All rights reserved .
4+ * Copyright (c) Qualcomm Technologies , Inc. and/or its subsidiaries .
55 */
66#include <linux/rtnetlink.h>
77
@@ -926,8 +926,11 @@ int ath11k_reg_handle_chan_list(struct ath11k_base *ab,
926926 */
927927 if (ab -> default_regd [pdev_idx ] && !ab -> new_regd [pdev_idx ] &&
928928 !memcmp ((char * )ab -> default_regd [pdev_idx ]-> alpha2 ,
929- (char * )reg_info -> alpha2 , 2 ))
930- goto retfail ;
929+ (char * )reg_info -> alpha2 , 2 ) &&
930+ power_type == IEEE80211_REG_UNSET_AP ) {
931+ ath11k_reg_reset_info (reg_info );
932+ return 0 ;
933+ }
931934
932935 /* Intersect new rules with default regd if a new country setting was
933936 * requested, i.e a default regd was already set during initialization
You can’t perform that action at this time.
0 commit comments