<div>hi</div>
<div> </div>
<div>as write in the standart</div>
<div><font face="TimesNewRoman" size="2"><font face="TimesNewRoman" size="2">
<p align="left">When there are no NonERP STAs associated with the BSS and the ERP Information Element sender.s</p>
<p align="left">dot11ShortPreambleOptionImplemented MIB variable is set to true, then the Barker_Preamble_Mode bit</p>
<p align="left">may be set to 0. <strong>The Barker_Preamble_Mode bit shall be set to 1 by the ERP Information Element sender if</strong></p></font></font><font face="TimesNewRoman" size="2"><font face="TimesNewRoman" size="2">
<p align="left"><strong>one or more associated NonERP STAs are not short preamble capable as indicated in their Capability Information</strong></p>
<p align="left"><strong>field, or if the ERP Information Element senders dot11ShortPreambleOptionImplemented MIB</strong></p>
<p><strong>variable is set to false</strong></p>
<p> </p>
<p>in beacon.c :</p>
<p>static u8 ieee802_11_erp_info(struct hostapd_data *hapd)<br>{<br> u8 erp = 0;</p>
<p> if (hapd->iface->current_mode == NULL ||<br> hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)<br> return 0;</p>
<p> switch (hapd->iconf->cts_protection_type) {<br> case CTS_PROTECTION_FORCE_ENABLED:<br> erp |= ERP_INFO_NON_ERP_PRESENT | ERP_INFO_USE_PROTECTION;<br> break;<br> case CTS_PROTECTION_FORCE_DISABLED:<br> erp = 0;<br>
break;<br> case CTS_PROTECTION_AUTOMATIC:<br> if (hapd->iface->olbc)<br> erp |= ERP_INFO_USE_PROTECTION;<br> /* continue */<br> case CTS_PROTECTION_AUTOMATIC_NO_OLBC:<br> if (hapd->iface->num_sta_non_erp > 0) {<br>
erp |= ERP_INFO_NON_ERP_PRESENT |<br> ERP_INFO_USE_PROTECTION;<br> }<br> break;<br> }<br><strong> if (hapd->iface->num_sta_no_short_preamble > 0)<br> erp |= ERP_INFO_BARKER_PREAMBLE_MODE;</strong></p>
<p> return erp;<br>}</p>
<p>don't we need to sign barker bit also is th hostapd configure to long preamble ?</p>
<p>if not the hostapd set this bit just in case not short preamble station is associated</p>
<p> </p>
<p>thank</p>
<p>Ronit</p>
<p> </p>
<p> </p></font></font></div>