Skip to content

Commit cd49727

Browse files
AyalaBkregrumbach
authored andcommitted
iwlwifi: mvm: avoid to WARN about gscan capabilities
Gscan capabilities were updated with new capabilities supported by the device. Update GSCAN capabilities TLV and avoid to WARN if the firmware does not have the new capabilities. Signed-off-by: Ayala Beker <ayala.beker@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
1 parent d34475b commit cd49727

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-drv.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,11 +1060,18 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv,
10601060
return -EINVAL;
10611061
}
10621062

1063-
if (WARN(fw_has_capa(capa, IWL_UCODE_TLV_CAPA_GSCAN_SUPPORT) &&
1064-
!gscan_capa,
1065-
"GSCAN is supported but capabilities TLV is unavailable\n"))
1063+
/*
1064+
* If ucode advertises that it supports GSCAN but GSCAN
1065+
* capabilities TLV is not present, or if it has an old format,
1066+
* warn and continue without GSCAN.
1067+
*/
1068+
if (fw_has_capa(capa, IWL_UCODE_TLV_CAPA_GSCAN_SUPPORT) &&
1069+
!gscan_capa) {
1070+
IWL_DEBUG_INFO(drv,
1071+
"GSCAN is supported but capabilities TLV is unavailable\n");
10661072
__clear_bit((__force long)IWL_UCODE_TLV_CAPA_GSCAN_SUPPORT,
10671073
capa->_capa);
1074+
}
10681075

10691076
return 0;
10701077

0 commit comments

Comments
 (0)