Remove unused assignment from Country element generation

This looks confusing and can cause warnings from static analyzers.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2023-12-17 12:17:18 +02:00
parent 33b5fc0763
commit da8a38fecb

View file

@ -239,12 +239,10 @@ static u8 * hostapd_fill_subband_triplets(struct hostapd_data *hapd, u8 *pos,
continue; /* can use same entry */
}
if (start && prev) {
if (start && prev)
pos = hostapd_eid_country_add(hapd, pos, end,
chan_spacing,
start, prev);
start = NULL;
}
/* Start new group */
start = prev = chan;