Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 476a9e09 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Johannes Berg
Browse files

iwlwifi: ignore 0-length PHY DB sections



This can happen during development but can cause problems,
WARN (once) and go on.

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: default avatarGuy Cohen <guy.cohen@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0742a75a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -413,6 +413,9 @@ static int iwl_phy_db_send_all_channel_groups(
		if (!entry)
		if (!entry)
			return -EINVAL;
			return -EINVAL;


		if (WARN_ON_ONCE(!entry->size))
			continue;

		/* Send the requested PHY DB section */
		/* Send the requested PHY DB section */
		err = iwl_send_phy_db_cmd(phy_db,
		err = iwl_send_phy_db_cmd(phy_db,
					  type,
					  type,