diff mbox series

[06/12] wiphy: use a 16 bit tag for extended IEs

Message ID 20220719185544.456727-6-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [01/12] scan: add colocated scan flag | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood July 19, 2022, 6:55 p.m. UTC
If an extended IE is needed a uint8_t tag would overflow.
---
 src/wiphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/wiphy.c b/src/wiphy.c
index 22305d5d..d3cbe73d 100644
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -811,7 +811,7 @@  int wiphy_estimate_data_rate(struct wiphy *wiphy,
 	ie_tlv_iter_init(&iter, ies, ies_len);
 
 	while (ie_tlv_iter_next(&iter)) {
-		uint8_t tag = ie_tlv_iter_get_tag(&iter);
+		uint16_t tag = ie_tlv_iter_get_tag(&iter);
 
 		switch (tag) {
 		case IE_TYPE_SUPPORTED_RATES: