Unverified Commit 7c42e37b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 43699e52 75fce7db
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1751,6 +1751,11 @@ static int pn533_start_poll(struct nfc_dev *nfc_dev,
	}

	pn533_poll_create_mod_list(dev, im_protocols, tm_protocols);
	if (!dev->poll_mod_count) {
		nfc_err(dev->dev,
			"Poll mod list is empty\n");
		return -EINVAL;
	}

	/* Do not always start polling from the same modulation */
	get_random_bytes(&rand_mod, sizeof(rand_mod));