File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
drivers/net/wireless/intel/iwlwifi Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2
2
/*
3
- * Copyright (C) 2012-2014, 2018-2024 Intel Corporation
3
+ * Copyright (C) 2012-2014, 2018-2025 Intel Corporation
4
4
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5
5
* Copyright (C) 2016-2017 Intel Deutschland GmbH
6
6
*/
@@ -754,7 +754,7 @@ struct iwl_lari_config_change_cmd_v10 {
754
754
* according to the BIOS definitions.
755
755
* For LARI cmd version 11 - bits 0:4 are supported.
756
756
* For LARI cmd version 12 - bits 0:6 are supported and bits 7:31 are
757
- * reserved. No need to mask out the reserved bits.
757
+ * reserved.
758
758
* @force_disable_channels_bitmap: Bitmap of disabled bands/channels.
759
759
* Each bit represents a set of channels in a specific band that should be
760
760
* disabled
@@ -787,6 +787,7 @@ struct iwl_lari_config_change_cmd {
787
787
/* Activate UNII-1 (5.2GHz) for World Wide */
788
788
#define ACTIVATE_5G2_IN_WW_MASK BIT(4)
789
789
#define CHAN_STATE_ACTIVE_BITMAP_CMD_V11 0x1F
790
+ #define CHAN_STATE_ACTIVE_BITMAP_CMD_V12 0x7F
790
791
791
792
/**
792
793
* struct iwl_pnvm_init_complete_ntfy - PNVM initialization complete
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ int iwl_fill_lari_config(struct iwl_fw_runtime *fwrt,
614
614
615
615
ret = iwl_bios_get_dsm (fwrt , DSM_FUNC_ACTIVATE_CHANNEL , & value );
616
616
if (!ret ) {
617
+ value &= CHAN_STATE_ACTIVE_BITMAP_CMD_V12 ;
617
618
if (cmd_ver < 8 )
618
619
value &= ~ACTIVATE_5G2_IN_WW_MASK ;
619
620
Original file line number Diff line number Diff line change @@ -251,8 +251,10 @@ void iwl_mld_configure_lari(struct iwl_mld *mld)
251
251
cpu_to_le32 (value &= DSM_UNII4_ALLOW_BITMAP );
252
252
253
253
ret = iwl_bios_get_dsm (fwrt , DSM_FUNC_ACTIVATE_CHANNEL , & value );
254
- if (!ret )
254
+ if (!ret ) {
255
+ value &= CHAN_STATE_ACTIVE_BITMAP_CMD_V12 ;
255
256
cmd .chan_state_active_bitmap = cpu_to_le32 (value );
257
+ }
256
258
257
259
ret = iwl_bios_get_dsm (fwrt , DSM_FUNC_ENABLE_6E , & value );
258
260
if (!ret )
You can’t perform that action at this time.
0 commit comments