提交 476a9e09 编写于 作者: E Emmanuel Grumbach 提交者: Johannes Berg

iwlwifi: ignore 0-length PHY DB sections

This can happen during development but can cause problems,
WARN (once) and go on.
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: NGuy Cohen <guy.cohen@intel.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 0742a75a
......@@ -413,6 +413,9 @@ static int iwl_phy_db_send_all_channel_groups(
if (!entry)
return -EINVAL;
if (WARN_ON_ONCE(!entry->size))
continue;
/* Send the requested PHY DB section */
err = iwl_send_phy_db_cmd(phy_db,
type,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册