From: Jouni Malinen Date: Sun, 5 Sep 2010 10:11:42 +0000 (+0300) Subject: Indicate Barker Preamble Mode in ERP IE also based on local configuration X-Git-Tag: hostap-1-bp~1197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0fad21014923a9b7b36ebeebb623f3cbb44e076;p=thirdparty%2Fhostap.git Indicate Barker Preamble Mode in ERP IE also based on local configuration 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. --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 9091c2f1f..8769fcac4 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -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;