]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Indicate Barker Preamble Mode in ERP IE also based on local configuration
authorJouni Malinen <j@w1.fi>
Sun, 5 Sep 2010 10:11:42 +0000 (13:11 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 5 Sep 2010 10:11:42 +0000 (13:11 +0300)
While this is not strictly speaking required based on dynamic
configuration (i.e., dot11ShortPreambleOptionImplemented is static
value based on implementation, not runtime configuration), it is better
to follow local configuration parameter for short preamble in addition
to the associated station capabilities.

src/ap/beacon.c

index 9091c2f1f79db9b734e4413ef386d37ca6cc63f3..8769fcac4065edb36ea7b71abdb2653187bee888 100644 (file)
@@ -57,7 +57,8 @@ static u8 ieee802_11_erp_info(struct hostapd_data *hapd)
                }
                break;
        }
-       if (hapd->iface->num_sta_no_short_preamble > 0)
+       if (hapd->iface->num_sta_no_short_preamble > 0 ||
+           hapd->iconf->preamble == LONG_PREAMBLE)
                erp |= ERP_INFO_BARKER_PREAMBLE_MODE;
 
        return erp;