]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused assignment from Country element generation
authorJouni Malinen <j@w1.fi>
Sun, 17 Dec 2023 10:17:18 +0000 (12:17 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Dec 2023 10:17:43 +0000 (12:17 +0200)
This looks confusing and can cause warnings from static analyzers.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/beacon.c

index 935ffd25ef31bd6816a077a54b1f3d0ec53c8e9d..3588030fbe56fb46fcf2e27fdaa3682d18d3af81 100644 (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;